/* =================================== */
/* ===   ESTILOS GENERALES   === */
/* =================================== */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    background: #F4F4F4;
    min-height: 100vh;
}

/* =================================== */
/* ===   BARRA DE NAVEGACIÓN   === */
/* =================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to right, #005C97, #363795);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e9ecef;

}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #1A3D64;
}

.navbar-brand a {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #F4F4F4;
    text-decoration: none;
}

.brand-loan {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 1.8rem;
    position: relative;
    top: -2px;
    background-image: linear-gradient(45deg,
            #ffcc80,
            #e65100);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-links {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1A3D64;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #1D546C;
    flex-direction: column;
    align-items: center;
}

.navbar-links.is-active {
    display: flex;
}

.navbar-links li {
    width: 100%;
}

.navbar-links li a {
    display: block;
    text-align: center;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: #F4F4F4;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.navbar-links li a:hover {
    background-color: #1D546C;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #F4F4F4;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-icon.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-icon.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ============================================= */
/* ===   SECCIÓN HERO (PRINCIPAL)   === */
/* ============================================= */

.hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 1.5rem;
    position: static;
    min-height: 0;
}

.hero-text {
    flex: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    opacity: 0;
    animation: fadeInFromBottom 1s ease-out 0.3s forwards;
    background-color: transparent;
    box-shadow: none;
}

.hero-text h1 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-shadow: none;
    background-image: none;
    color: #1A3D64;
}

.hero-text p {
    font-size: 1.15rem;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    position: static;
    width: 100%;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    overflow: visible;
    animation: slideInFromLeft 1s ease-out forwards;
    opacity: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border: solid 1px #DDD;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    background-image: none;
    background-color: #1A3D64;
    color: #F4F4F4;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: pulseButton 1.5s ease-in-out 1s infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: #1D546C;
}

/* ============================================= */
/* ===    SECCIÓN SERVICIOS    === */
/* ============================================= */

.services {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem 1.5rem;
    max-width: 100%;
}

.services-intro {
    text-align: center;
}

.services h2 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    background-image: none;
    color: #1A3D64;
}

.slogan {
    font-size: 1.15rem;
    color: #555555;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.services-intro,
.services-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-feature {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    top: 0;
    background-image: none;
    animation: fadeInFromBottom 0.8s ease-out forwards;
    opacity: 0;
    transition: top 0.3s ease-out, box-shadow 0.3s ease-out;
}

.service-feature:hover {
    top: -8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.services .service-feature:not(:last-of-type)::after {
    display: none;
}

.service-feature-image,
.before-after-container {
    width: 100%;
    height: 250px;
    order: 1;
    overflow: hidden;
}

.service-feature-image {
    display: flex;
    align-items: center;
}

.before-after-container {
    display: flex;
}

.before-after-container .image-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.service-feature-image img,
.before-after-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.service-feature-text {
    padding: 1.5rem;
    text-align: center;
    order: 2;
    animation: none;
    opacity: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-feature-text h3 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    margin-top: 0;
    background-image: none;
    color: #1D546C;
}

.service-feature-text p {
    margin-top: 0.5rem;
    flex-grow: 1;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================= */
/* === SECCIÓN DIFERENCIADOR & ANTES/DESPUÉS === */
/* ============================================= */

.differentiator {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0 auto;
}

.differentiator h2 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    background-image: none;
    color: #1A3D64;
}

.differentiator-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.differentiator-text {
    background-color: transparent;
    box-shadow: none;
    padding: 2rem;
    text-align: center;
    animation: fadeInFromBottom 1s ease-out forwards;
    opacity: 0;
}

.differentiator-text p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
}

.differentiator-text h3 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    margin-top: 0;
    background-image: none;
    color: #1D546C;
}

.before-after-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: stretch;
}

.image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.image-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
}

/* ============================================= */
/* === ESTILOS DE ESCRITORIO (Responsive) === */
/* ============================================= */

@media (min-width: 768px) {

    .navbar {
        padding: 1rem 2.5rem;
    }

    .navbar-links {
        display: flex;
        position: static;
        flex-direction: row;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
    }

    .navbar-links.is-active {
        display: flex;
    }

    .navbar-links li a {
        padding: 0.5rem 0;
        border-bottom: 2px solid transparent;
        transition: color 0.3s ease, border-color 0.3s ease;
        color: #F4F4F4;
        font-size: 1.1rem;
    }

    .navbar-links li a:hover {
        color: #ffffff;
        border-bottom-color: #1D546C;
        background-color: transparent;
    }

    .menu-icon {
        display: none;
    }

    .menu-icon.is-active {
        display: none;
    }

    .hero {
        flex-direction: row;
        align-items: center;
        max-width: 1200px;
        margin: 2rem auto;
    }

    .hero-text {
        flex: 1;
        padding: 3rem 2.5rem;
        text-align: left;
    }

    .hero-image {
        flex: 1;
    }

    .hero-text h2 {
        font-size: 2.8rem;
    }

    .differentiator h2 {
        font-size: 2.8rem;
    }

    .differentiator-content {
        flex-direction: row;
        gap: 40px;
        align-items: stretch;
    }

    .differentiator-text {
        flex: 1;
        text-align: left;
    }

    .differentiator-images-wrapper {
        flex: 1;
    }
}

/* ============================================= */
/* ===   DEFINICIÓN DE ANIMACIONES   === */
/* ============================================= */

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseButton {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

@keyframes imageFadeInZoom {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes imageSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================= */
/* === ESTILOS DEL SLIDER (SPLIDE)   === */
/* ============================================= */

.splide__arrow {
    transition: transform 0.2s ease-out;
}

.splide__arrow:hover {
    transform: scale(1.5);
}

/* ============================================= */
/* ===    SECCIÓN CONTACTO    === */
/* ============================================= */
.contact {
    background: #ffffff;
    padding: 3rem 1.5rem;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.contact h2 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    background-image: none;
    color: #1A3D64;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info h3 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    margin-top: 0;
    color: #333;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

.info-item {
    margin-top: 1.5rem;
}

.info-item strong {
    display: block;
    color: #1A3D64;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.info-item a,
.info-item p {
    font-size: 1.1rem;
    color: #1D546C;
    text-decoration: none;
    margin: 0;
}

.info-item a:hover {
    text-decoration: underline;
}

.info-item p {
    color: #555;
}

.contact-local-image {
    width: 100%;
}

.contact-local-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.contact-map-wrapper {
    flex: 1;
    min-height: 350px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
    }

    .contact h2 {
        font-size: 2.8rem;
    }

    .contact-map-wrapper {
        min-height: 550px;
        align-self: stretch;
    }

    .contact-local-image img {
        height: 300px;
    }
}

/* ============================================= */
/* ===    FOOTER    === */
/* ============================================= */
.site-footer {
    background-color: #0C2B4E;
    color: #F4F4F4;
    padding: 0.7rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: text-decoration 0.3s ease;
}

.site-footer a:hover {
    text-decoration: underline;
}