/* =========================================
   SISTEMA DE DISEÑO - CREDITARIA CORRELATIVA
   ========================================= */

:root {
    /* Paleta de Colores Institucional */
    --color-primary: #0A1E3F;
    /* Azul institucional Profundo */
    --color-primary-light: #153160;
    /* Azul más claro para hovers */
    --color-secondary: #00A650;
    /* Verde de acción (si aplica para validación, pero optaremos por algo más sobrio) */
    --color-accent: #C7A254;
    /* Oro suave / Champagne (toque lujoso High-End) */
    --color-accent-hover: #D4B46E;

    --color-text-dark: #1A202C;
    --color-text-gray: #4A5568;
    --color-text-light: #F7FAFC;
    --color-text-muted: #A0AEC0;

    --bg-color: #FAFAFA;
    /* Blanco roto suave para reducir fatiga visual */
    --bg-surface: #FFFFFF;
    --bg-slate: #2D3748;
    /* Gris pizarra */

    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Espaciado */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Efectos y Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(10, 30, 63, 0.15);
}

/* =========================================
   RESETS BÁSICOS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-gray);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 1.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 2rem; (ya no es necesario padding forzado si tenemos width: 90% centrado) */
}

/* =========================================
   BOTONES Y COMPONENTES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    /* Un poco de borde cuadrado denota más aspecto corporativo premium que muy redondeado */
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
    /* Asegurar que no tenga sombras innecesarias iniciales */
    transition: all var(--transition-base);
    /* Transición suave integral */
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    /* Llenado suave y sutil */
    color: var(--color-text-light);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* =========================================
   NAVEGACIÓN (HEADER)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-base);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
    /* Sombra degradada suavizada al 50% para visibilidad inicial sutil */
}

/* Estado al hacer scroll */
.navbar.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-img {
    height: 95px;
    width: auto;
    object-fit: contain;
    transition: filter var(--transition-base), transform var(--transition-base);
}

.logo-light {
    filter: brightness(1000%);
    /* Forza a blanco puro */
}

.navbar .logo-dark {
    display: none;
}

.navbar.scrolled .logo-light {
    display: none;
}

.navbar.scrolled .logo-dark {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    /* El espacio interior del menú  */
    margin-left: max(4rem, 10vw);
    /* Esto separará el logo del primer elemento del menú "Crédito Hipotecario" garantizando mínimo 4rem o el 10% del ancho de la pantalla */
    justify-content: flex-end;
    width: 100%;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    opacity: 0.9;
}

.navbar.scrolled .nav-link {
    color: var(--color-text-dark);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--color-text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 1;
}

/* Dropdowns del Header */
.dropdown {
    position: relative;
    display: inline-block;
    padding: 1.5rem 0;
    /* Aumenta el área de hover */
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--color-text-light);
    /* En navbar sin scroll el texto es blanco */
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.navbar.scrolled .arrow-down {
    border-top-color: var(--color-text-dark);
    /* En navbar con scroll el texto es negro */
}

.dropdown:hover .arrow-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--bg-surface);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1005;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--bg-surface);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    /* Usar fuente corporativa limpia para el submenu */
    font-weight: 500;
    color: var(--color-text-gray);
    position: relative;
    z-index: 2;
    /* Sobre el triángulo */
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(199, 162, 84, 0.05);
    /* Oro muy suave */
    color: var(--color-primary);
    padding-left: 2rem;
}

.nav-cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

/* Mobile Menu Button - Oculto en Desktop */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-light);
    position: absolute;
    left: 0;
    transition: var(--transition-base);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--color-primary);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 18px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
}


.hero-overlay-radial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Da profundidad y oscurece los bordes manteniendo el azul marino elegante */
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 30, 63, 0.85) 100%);
    pointer-events: none;
    /* Necesario para que el hover en Particles funcione */
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 80px;
    /* offset por el nav */
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-text-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    /* Mayor espaciado */
    font-size: 0.85rem;
    display: block;
    margin: 0 auto 2rem auto;
}

.hero h1 {
    color: var(--color-text-light);
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin: 0 auto 1.5rem auto;
    letter-spacing: 2px;
    /* Lujoso y minimalista */
    font-weight: 300;
    max-width: 80%;
}

.hero h1 strong {
    font-weight: 700;
}

.hero p {
    color: rgba(255, 255, 255, 0.7);
    /* Gris humo claro */
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    margin: 0 auto 3rem auto;
    max-width: 600px;
    font-weight: 300;
    line-height: 1.8;
}

.hero-actions {
    display: none;
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--color-text-light);
    animation: scrollDown 2s ease-in-out infinite;
}

/* =========================================
   ANIMACIONES
   ========================================= */
@keyframes slowZoomOut {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* Utilidades de Animación en carga */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeInAnim 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 1.2s;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInAnim {
    to {
        opacity: 1;
    }
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        /* Oculto por defecto en móvil para implementar menú dinámico en JS */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-overlay {
        background: linear-gradient(to bottom,
                rgba(10, 30, 63, 0.5) 0%,
                rgba(10, 30, 63, 0.8) 50%,
                rgba(10, 30, 63, 0.95) 100%);
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: 120px;
    }
}

/* =========================================
   UTILIDADES
   ========================================= */
.pd-y {
    padding: 6rem 0;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        /* Oculto por defecto en móvil para implementar menú dinámico en JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-soft);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-link {
        color: var(--color-text-dark);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        margin-top: 1rem;
        min-width: 100%;
        display: none;
        /* Oculto por defecto en móvil */
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        /* Se muestra al abrir en móvil */
        transform: none;
    }

    .nav-links {
        margin-left: 0;
    }

    .nav-cta {
        margin-top: 1rem;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        padding-bottom: 120px;
    }
}

@media (max-width: 768px) {
    .pd-y {
        padding: 4rem 0;
        /* Reduce los espacios verticales */
    }

    .hero h1 {
        font-size: clamp(2.4rem, 8vw, 3rem);
        /* Reducir h1 un ~20% */
    }

    .hero-text-box {
        padding: 0 1rem;
        /* Margen interno extra para móvil */
    }

    .logo-img,
    img {
        max-width: 100%;
        height: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .legal-links a {
        margin: 0 0.5rem;
    }
}

/* =========================================
   PÁGINA: NOSOTROS
   ========================================= */

.hero-page {
    position: relative;
    min-height: 80vh;
    /* Un poco menos que el index para dar paso rápido al contenido */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    overflow: hidden;
    color: var(--color-text-light);
    text-align: center;
}

.hero-page .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-page .page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -1px;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-page .hero-tagline {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 2rem;
}

.hero-page .hero-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.eyebrow-dark {
    font-family: var(--font-heading);
    color: var(--color-text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text .lead-text {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 2rem;
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Profiles Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    text-align: left;
}

.profile-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.profile-image {
    width: 100%;
    height: 400px;
    /* Placeholder portrait height */
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition-slow);
}

.profile-card:hover .profile-image img {
    transform: scale(1.03);
}

.profile-content {
    padding: 2.5rem;
}

.profile-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1.5rem;
}

.profile-divider {
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.profile-details p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.profile-details strong {
    color: var(--color-text-dark);
}

/* Philosophy */
.philosophy-box {
    position: relative;
    z-index: 10;
    text-align: center;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    text-align: left;
}

.phil-item {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.phil-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.phil-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(199, 162, 84, 0.15);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.phil-item h4 {
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.phil-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Utils Extras */
.bg-color {
    background-color: var(--bg-color);
}

.bg-surface {
    background-color: var(--bg-surface);
}

.relative-box {
    position: relative;
    overflow: hidden;
}

.mt-4 {
    margin-top: 4rem;
}

/* Responsive Nosotros */
@media (max-width: 992px) {
    .story-layout {
        grid-template-columns: 1fr;
    }

    .story-image {
        order: -1;
        /* Pasa la imagen arriba del texto en móviles */
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}


.text-center {
    text-align: center;
}

.text-light {
    color: var(--color-text-light);
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-slate {
    background-color: var(--color-primary-light);
    /* En lugar de slate, un azul muy oscuro premium */
}

h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.text-light .subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.eyebrow-dark {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* =========================================
   SECCIÓN SERVICIOS / PILARES
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--bg-surface);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    /* Ligeramente cuadrado para la sobriedad */
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(199, 162, 84, 0.1);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background-color: var(--color-accent);
    color: var(--bg-surface);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--color-text-gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.link-arrow {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.link-arrow .arrow {
    margin-left: 0.5rem;
    transition: var(--transition-fast);
}

.link-arrow:hover {
    color: var(--color-accent);
}

.link-arrow:hover .arrow {
    transform: translateX(5px);
}

/* =========================================
   SOCIOS / ALIANZAS (MARQUEE)
   ========================================= */
.partners-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Reducimos el padding y usamos mask-image para disolver los bordes sin depender del fondo */
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-marquee {
    display: flex;
    width: max-content;
}

.partners-marquee-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4rem;
    padding: 0 2rem;
    animation: scrollMarquee 90s linear infinite;
}

.partners-marquee-content img {
    height: 144px;
    /* Aumentado 50% de 96px */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: var(--transition-base);
}

.partners-marquee-content img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .partners-marquee-content {
        gap: 2.5rem;
    }

    .partners-marquee-content img {
        height: 108px;
        /* Aumentado 50% de 72px */
    }
}

/* =========================================
   SECCIÓN NOSOTROS (PREVIEW)
   ========================================= */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.check-list li svg {
    margin-right: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .about-preview {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* =========================================
   FOOTER CORPORATIVO
   ========================================= */
.footer {
    padding-top: 5rem;
    padding-bottom: 2rem;
    background-color: #061226;
    /* Aún más oscuro que el color-primary del hero */
    color: #C0C0C0;
    /* Silver / Light Gray */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-img {
    height: 72px;
    display: block;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: #C0C0C0;
    font-size: 0.95rem;
    max-width: 350px;
    line-height: 1.8;
}

.footer h4 {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: #C0C0C0;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
    transform: translateX(3px);
}

/* Localizado en sección FOOTER CORPORATIVO */
.contact-item {
    display: flex;
    align-items: center;
    /* Cambiado de flex-start para mejor alineación con iconos */
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    color: var(--color-text-light);
    /* Uso de variable consistente */
    font-size: 0.95rem;
}

.contact-item a {
    display: inline-block;
    /* Asegura que el área de clic y renderizado sea sólida */
    color: var(--color-text-light) !important;
    /* Force para evitar herencia de .text-light general */
    transition: var(--transition-base);
    line-height: 1.5;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--color-accent) !important;
    transform: translateX(3px);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--color-accent);
    /* Opcional: Resalta el icono en oro para guiar la vista */
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    border-radius: 50%;
}

.social-icon:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 1.5rem;
}

.legal-links a:hover {
    color: var(--color-text-light);
}

/* =========================================
   PÁGINA: AVISO DE PRIVACIDAD
   ========================================= */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-intro {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--color-text-dark);
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}

.legal-section p {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--color-text-gray);
    margin-bottom: 1.2rem;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.legal-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--color-text-gray);
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.legal-list li strong {
    color: var(--color-text-dark);
}

.legal-highlight {
    background-color: var(--bg-surface);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem 2rem;
    border-radius: 0 6px 6px 0;
    margin: 2rem 0;
}

.legal-highlight p {
    margin-bottom: 0;
    color: var(--color-text-dark);
    font-weight: 400;
}

.legal-highlight a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 3px;
}

.legal-highlight a:hover {
    color: var(--color-accent);
}

.legal-section a {
    color: var(--color-primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.legal-section a:hover {
    color: var(--color-accent);
}

.legal-date {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 0 0.5rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-highlight {
        padding: 1.2rem 1.5rem;
    }
}