/* -------------------------------------------------------------
   ESTUDIO PINTO & ASOCIADOS - ESTILOS WEB PREMIUM OPTIMIZADOS
   Responsive móvil seguro: 0000 Reglas/08-RESPONSIVE-SIN-ROOMPER-DISENO.md
   Snippet reutilizable: 0000 Reglas/snippets/responsive-mobile-safe.css
------------------------------------------------------------- */

/* IMPORTACIÓN DE FUENTES */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* CONSTANTES Y SISTEMA DE DISEÑO */
:root {
    /* Paleta de Colores Jurídico-Inmobiliaria */
    --color-primary: #0F2747;       /* Azul Oscuro Principal */
    --color-primary-rgb: 15, 39, 71;
    --color-accent: #1D4ED8;        /* Azul Medio / Royal */
    --color-accent-rgb: 29, 78, 216;
    --color-accent-hover: #1E40AF;  /* Azul Medio Oscuro */
    --color-accent-light: #60A5FA;  /* Azul Claro de Acento */
    --color-text-main: #1E293B;     /* Gris Pizarra Oscuro (Cuerpo) */
    --color-text-muted: #64748B;    /* Gris Pizarra Suave (Secundario) */
    --color-bg-light: #F8FAFC;      /* Fondo General Claro */
    --color-bg-white: #FFFFFF;      /* Blanco Puro */
    --color-border: #E2E8F0;        /* Borde Gris Claro */
    --color-border-focus: #94A3B8;  /* Borde Gris Medio al enfocar */

    /* Tipografía */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Espaciados Modulares (Adaptativos) */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;  /* Base para móvil, cambia en media query */
    --space-xl: 5rem;  /* Base para móvil, cambia en media query */

    /* Sombras y Bordes */
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 28px;
    
    --shadow-subtle: 0 4px 20px -2px rgba(15, 39, 71, 0.02);
    --shadow-medium: 0 16px 36px -4px rgba(15, 39, 71, 0.06);
    --shadow-premium: 0 40px 80px -15px rgba(15, 39, 71, 0.09);

    /* Espaciado responsive (regla móvil) */
    --header-offset: calc(4rem + env(safe-area-inset-top, 0px));
    --section-gap: clamp(0.5rem, 1.8vh, 1.25rem);
    --hero-title-max-h: clamp(120px, 28vw, 220px);

    /* Transiciones Curvas Suaves (Out-Quart) */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 768px) {
    :root {
        --space-lg: 4.5rem;
        --space-xl: 9rem;
        --header-offset: calc(5.625rem + env(safe-area-inset-top, 0px));
    }
}

/* RESET GENERAL Y COMPORTAMIENTO BÁSICO */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: var(--header-offset);
    max-width: 100%;
    overflow-x: hidden; /* no usar clip: recorta position:fixed (MOB-007) */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.65;
    overflow-x: hidden;
    max-width: 100%;
    min-width: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CONTENEDOR ENVOLTURA PARA EVITAR DESBORDAMIENTO HORIZONTAL */
.page-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ACCESIBILIDAD Y ENFOQUE */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* TIPOGRAFÍA ESTRUCTURAL */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
}

p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ESTRUCTURAS COMUNES DE MAQUETACIÓN */
.container {
    width: 100%;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
    z-index: 2;
    min-width: 0;
}

@media (min-width: 768px) {
    .container {
        padding-right: 2rem;
        padding-left: 2rem;
    }
}

.section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
    position: relative;
    overflow: visible;
}

@media (min-width: 768px) {
    .section {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
}

/* TEXTOS Y TÍTULOS REFINADOS */
.text-center { text-align: center; }
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    font-weight: 800;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3.25rem;
    }
}

.section-desc {
    max-width: 700px;
    margin: 0 auto var(--space-md) auto;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

@media (min-width: 768px) {
    .section-desc {
        font-size: 1.125rem;
    }
}

/* BOTONES PREMIUM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    gap: 0.6rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(var(--color-primary-rgb), 0.25);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-white {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-subtle);
}

.btn-white:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* HEADER Y NAVEGACIÓN GLASSMORPHISM */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
    background-color: transparent;
    padding-top: env(safe-area-inset-top, 0px);
}

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(15, 39, 71, 0.08);
    box-shadow: var(--shadow-subtle);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 64px;
    transition: var(--transition-smooth);
}

.header .nav-container > nav,
.header .nav-container > .nav-btn,
.header .nav-container > .nav-toggle {
    align-self: center;
}

@media (min-width: 1024px) {
    .nav-container {
        height: 90px;
    }
}

.header-scrolled .nav-container {
    height: 60px;
}

@media (min-width: 1024px) {
    .header-scrolled .nav-container {
        height: 75px;
    }
}

@media (max-width: 1023px) {
    :root {
        --header-offset: calc(4rem + env(safe-area-inset-top, 0px));
    }

    .header {
        background-color: #ffffff;
        border-bottom: 1px solid rgba(15, 39, 71, 0.08);
        box-shadow: var(--shadow-subtle);
    }

    .header-scrolled {
        background-color: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-container,
    .header-scrolled .nav-container {
        height: 64px;
    }

    .header .logo {
        background-color: transparent;
        border-right: none;
        box-shadow: none;
        padding: 0.35rem;
    }

    .nav-toggle {
        padding: 0.45rem;
    }
}

.header .logo {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    aspect-ratio: 1;
    height: 100%;
    width: auto;
    margin-left: -1.5rem;
    margin-right: 0.35rem;
    padding: 0.45rem;
    background-color: #ffffff;
    border-right: 1px solid rgba(15, 39, 71, 0.07);
    box-shadow: 2px 0 12px -4px rgba(15, 39, 71, 0.06);
}

@media (min-width: 768px) {
    .header .logo {
        margin-left: -2rem;
        padding: 0.55rem;
        margin-right: 0.5rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: var(--border-radius-sm);
    object-fit: contain;
    transition: var(--transition-smooth);
}

.header .logo .logo-img--brand {
    height: 100%;
    width: 100%;
    max-width: none;
    border-radius: 0;
    object-fit: contain;
}

.logo-img--brand {
    height: clamp(36px, 9vw, 52px);
    width: auto;
    max-width: min(200px, 52vw);
    border-radius: 0;
}

.logo-img--footer {
    background: #ffffff;
    border-radius: var(--border-radius-sm);
    padding: 0.35rem 0.5rem;
    max-width: min(190px, 70vw);
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 1rem;
}

.contact-brand-logo {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 1.75rem;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-img {
        height: 48px;
    }

    .footer-logo-link .logo-img--brand {
        height: 52px;
        max-width: 220px;
    }

    .contact-brand-logo {
        margin-left: 0;
        margin-right: 0;
    }
}

.footer-logo-link .logo-img--brand {
    height: clamp(36px, 9vw, 52px);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    line-height: 1;
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 1.4rem;
    }
}

.logo-subtext {
    font-family: var(--font-body);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-accent);
    display: block;
    margin-top: 3px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .logo-subtext {
        font-size: 0.65rem;
    }
}

.nav-menu {
    display: none;
    list-style: none;
    align-items: center;
    gap: 2.75rem;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-btn {
    display: none;
}

@media (min-width: 1024px) {
    .nav-btn {
        display: inline-flex;
    }
}

/* MENÚ HAMBURGUESA MÓVIL (CORREGIDO PARA EVITAR DESBORDAMIENTO HORIZONTAL) */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    padding: 0.6rem;
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-bg-white);
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
    box-shadow: var(--shadow-premium);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: var(--space-md);
}

.mobile-menu-link {
    font-size: 1.65rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    color: var(--color-accent);
}

/* HERO SECTION CON IMAGEN DE FONDO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    
    /* Imagen y degradados desglosados */
    background-image: linear-gradient(to right, rgba(248, 250, 252, 0.98) 35%, rgba(248, 250, 252, 0.88) 65%, rgba(15, 39, 71, 0.15) 100%), 
                      url('../assets/img/hero-bg-premium.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    
    position: relative;
    overflow: hidden;
}

@media (max-width: 1023px) {
    .hero {
        min-height: auto;
        height: auto;
        align-items: flex-start;
        overflow-x: clip;
        overflow-y: visible;
        background-image: linear-gradient(to bottom, rgba(248, 250, 252, 0.99) 0%, rgba(248, 250, 252, 0.92) 60%, rgba(15, 39, 71, 0.18) 100%),
                          url('../assets/img/hero-bg-premium.png');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        padding-top: calc(var(--header-offset) + 0.35rem);
        padding-bottom: var(--space-sm);
    }

    .hero .container,
    .hero-grid,
    .hero-content,
    .hero-actions,
    .hero-cta-primary,
    .hero-cta-secondary,
    .hero-image-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero-grid {
        gap: 0.4rem;
    }

    .hero-actions {
        display: contents;
    }

    .hero-content {
        order: 1;
    }

    .hero-cta-primary {
        order: 2;
    }

    .hero-image-container {
        order: 3;
        margin-top: 0;
    }

    .hero-cta-secondary {
        order: 4;
    }

    .hero-cta-primary .btn,
    .hero-cta-secondary .btn {
        width: 100%;
        padding: 0.68rem 0.85rem;
        font-size: clamp(0.78rem, 2.8vw, 0.88rem);
        text-wrap: balance;
        line-height: 1.25;
        white-space: normal;
        text-align: center;
    }

    .hero-tag {
        margin-bottom: 0.35rem;
        padding: 0.35rem 0.9rem;
    }

    .hero-title {
        font-size: clamp(1.65rem, 6.5vw, 2rem);
        margin-bottom: 0.4rem;
        line-height: 1.16;
    }

    .hero-desc {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.35rem;
    }

    .hero-image-wrapper {
        max-height: min(255px, 38vh);
        aspect-ratio: 16 / 10;
    }

    .hero-img {
        max-height: min(255px, 38vh);
        object-fit: cover;
    }

    .hero-badge {
        display: none;
    }

    .hero-cta-secondary .btn-outline {
        border-color: rgba(255, 255, 255, 0.92);
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.12);
    }

    .hero-cta-secondary .btn-outline:hover {
        background-color: rgba(255, 255, 255, 0.22);
        border-color: #ffffff;
        color: #ffffff;
    }
}

@media (max-width: 768px) and (max-height: 740px) {
    :root {
        --hero-title-max-h: clamp(90px, 22vw, 160px);
        --section-gap: clamp(0.4rem, 1.4vh, 0.85rem);
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-desc {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .hero-image-wrapper,
    .hero-img {
        max-height: min(215px, 34vh);
    }

    .hero-image-wrapper {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 380px) {
    .hero-tag {
        letter-spacing: 0.1em;
        font-size: 0.68rem;
    }
}

.hero-bg-accent {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 1023px) {
    .hero-bg-accent {
        display: none;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 1023px) {
    .hero-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        grid-template-rows: auto auto;
        gap: var(--space-lg);
        align-items: start;
    }

    .hero-content {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-actions {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-image-container {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }
}

.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-tag {
    display: inline-block;
    padding: 0.45rem 1.25rem;
    background-color: rgba(29, 78, 216, 0.07);
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-size: 2.15rem;
    font-weight: 850;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
    letter-spacing: -0.03em;
}

@media (min-width: 480px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.25rem;
        line-height: 1.15;
    }
}

.hero-title span {
    font-style: italic;
    color: var(--color-accent);
    font-weight: 400;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    max-width: 600px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

@media (min-width: 768px) {
    .hero-desc {
        font-size: 1.2rem;
        line-height: 1.75;
    }
}

@media (min-width: 1024px) {
    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 1.25rem;
    }
}

.hero-image-container {
    position: relative;
    opacity: 0;
    transform: scale(0.97) translateY(20px);
    animation: heroImageFadeIn 1.4s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

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

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    aspect-ratio: 4 / 5;
    background-color: var(--color-border);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-img {
    transform: scale(1.04);
}

/* Borde interno elegante */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    pointer-events: none;
}

/* Tarjeta flotante de experiencia */
.hero-badge {
    position: absolute;
    bottom: 35px;
    left: -35px;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    padding: 1.5rem 2.25rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-premium);
    display: none;
    align-items: center;
    gap: 1.25rem;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .hero-badge {
        display: flex;
    }
}

.hero-badge-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent-light);
}

.hero-badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* SECCIÓN MARCAS / DIVISIONES JURÍDICAS */
.brands {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .brands {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
}

.brands .text-center {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .brands .text-center {
        margin-bottom: 2rem;
    }
}

.brands-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.brand-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

@media (min-width: 768px) {
    .brand-card {
        padding: 0;
    }
}

.brand-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent-light);
    box-shadow: var(--shadow-subtle);
    background-color: var(--color-bg-white);
}

.brand-card-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: auto;
    margin-bottom: 0.65rem;
}

.brand-card-tag {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.35rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.55rem 1.15rem;
    border-radius: 0;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.brand-card-tag--pinto {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
}

.brand-card-tag--rais {
    background: linear-gradient(135deg, #0F2747 0%, #1E3A5F 100%);
}

.brand-card-tag--tramix {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.brand-card-tag--fundacion {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
}

.brand-card-subtitle {
    font-family: var(--font-body);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
    font-weight: 700;
    display: block;
    line-height: 1.3;
    padding: 0.65rem 1.15rem 0;
}

.brand-card-desc {
    font-size: 0.875rem;
    margin-bottom: 0.85rem;
    flex-grow: 1;
    line-height: 1.55;
    padding: 0 1.15rem;
}

.brand-card-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding: 0.15rem 1.15rem 1rem;
}

.brand-card-link i {
    transition: var(--transition-smooth);
}

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

.brand-card:hover .brand-card-link i {
    transform: translateX(4px);
}

/* SECCIÓN NOSOTROS / EL EQUIPO (CON DEGRADADOS RADIALES SEGUROS EN LUGAR DE BLUR-SPOTS FLOTANTES) */
.about {
    background: radial-gradient(circle at 10% 20%, rgba(29, 78, 216, 0.02) 0%, transparent 60%), var(--color-bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 0.95fr 1.05fr;
        gap: var(--space-lg);
    }
}

.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .about-images {
        gap: 1.25rem;
    }
}

.about-image-wrapper {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    background-color: var(--color-border);
}

.about-image-wrapper-tall {
    grid-row: span 2;
    aspect-ratio: 1 / 1.55;
}

.about-image-wrapper-square {
    aspect-ratio: 1 / 1;
}

.about-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-images img:hover {
    transform: scale(1.05);
}

.about-content {
    padding-left: 0;
}

@media (min-width: 1024px) {
    .about-content {
        padding-left: var(--space-md);
    }
}

.about-subtitle {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

@media (min-width: 768px) {
    .about-subtitle {
        font-size: 1.85rem;
    }
}

.about-text {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    line-height: 1.75;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
}

@media (min-width: 640px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.about-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature-icon {
    color: var(--color-accent);
    font-size: 1.35rem;
    margin-top: 0.15rem;
}

.about-feature-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.about-feature-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* SECCIÓN SERVICIOS / EXPLORADOR INTERACTIVO */
.services {
    background: radial-gradient(circle at 90% 80%, rgba(29, 78, 216, 0.015) 0%, transparent 60%), var(--color-bg-white);
}

/* TABS DE CONTROL — móvil: 3 botones apilados (MOB-008) */
.services-tabs-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: var(--space-lg);
}

.services-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.tab-btn-label--mobile {
    display: inline;
}

.tab-btn-label--desktop {
    display: none;
}

.tab-btn {
    width: 100%;
    flex-shrink: 0;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: var(--border-radius-sm);
    text-align: center;
    line-height: 1.3;
}

.tab-btn:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-white);
    border-color: var(--color-accent-light);
}

.tab-btn.active {
    color: var(--color-bg-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 6px 14px -4px rgba(var(--color-primary-rgb), 0.25);
}

@media (min-width: 768px) {
    .services-tabs-wrap {
        margin-bottom: var(--space-lg);
    }

    .services-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.85rem;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 1.25rem;
    }

    .tab-btn-label--mobile {
        display: none;
    }

    .tab-btn-label--desktop {
        display: inline;
    }

    .tab-btn {
        width: auto;
        background: none;
        border: none;
        padding: 0.95rem 1.75rem;
        font-size: 0.95rem;
        text-align: center;
    }

    .tab-btn:hover {
        background-color: var(--color-bg-light);
        border-color: transparent;
    }

    .tab-btn.active {
        border-color: transparent;
    }
}

/* CONTENIDOS DE SERVICIOS CON TRANSICIÓN ANIMADA */
.services-content-wrapper {
    position: relative;
}

.services-pane {
    display: none;
    opacity: 0;
}

.services-pane.active {
    display: block;
    animation: tabFadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* INTRO DE CADA ESTUDIO */
.services-pane-intro {
    max-width: 800px;
    margin: 0 auto var(--space-md) auto;
    text-align: center;
}

.services-pane-title {
    font-size: 1.65rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .services-pane-title {
        font-size: 1.85rem;
    }
}

.services-pane-intro p {
    font-size: 1rem;
    color: var(--color-text-muted);
}

@media (min-width: 768px) {
    .services-pane-intro p {
        font-size: 1.05rem;
    }
}

/* GRILLA DE TARJETAS DE SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    transition: var(--transition-smooth);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 0.75rem;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-focus);
    box-shadow: var(--shadow-medium);
    background-color: var(--color-bg-white);
}

.service-card-icon {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.45rem;
    color: var(--color-accent);
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    align-self: start;
    padding-top: 0.1rem;
    flex-shrink: 0;
    line-height: 1;
}

.service-card-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--color-primary);
    line-height: 1.25;
    align-self: center;
    min-width: 0;
}

@media (min-width: 768px) {
    .service-card-title {
        font-size: 1.28rem;
    }
}

.service-card-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.85rem;
    flex-grow: 1;
}

.service-card-cta {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.service-card-cta i {
    transition: var(--transition-smooth);
}

.service-card-cta:hover {
    color: var(--color-accent-hover);
}

.service-card-cta:hover i {
    transform: translateX(4px);
}

/* SECCIÓN ATENCIÓN MIXTA (PRESENCIAL Y VIRTUAL) */
.attention-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #081628 100%);
    color: var(--color-bg-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.attention-banner h2, .attention-banner h3, .attention-banner p {
    color: var(--color-bg-white);
}

.attention-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: center;
}

@media (min-width: 1024px) {
    .attention-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--space-lg);
    }
}

.attention-content-pane {
    max-width: 620px;
}

.attention-tag {
    color: var(--color-accent-light);
}

.attention-title {
    font-size: 2.15rem;
    margin-bottom: var(--space-sm);
    font-weight: 800;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .attention-title {
        font-size: 2.5rem;
    }
}

.attention-desc {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .attention-desc {
        font-size: 1.15rem;
    }
}

.attention-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}

@media (min-width: 640px) {
    .attention-blocks {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}

.attention-block-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 0.85rem 1rem;
    transition: var(--transition-smooth);
}

@media (min-width: 768px) {
    .attention-block-card {
        padding: 0.9rem 1.05rem;
    }
}

.attention-block-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.attention-block-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
}

.attention-block-icon {
    font-size: 1.2rem;
    color: var(--color-accent-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.attention-block-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
}

.attention-block-desc {
    font-size: 0.82rem;
    opacity: 0.78;
    line-height: 1.45;
}

.attention-img-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    aspect-ratio: 4 / 3;
    background-color: var(--color-border);
}

.attention-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SECCIÓN FUNDACIÓN INICIAR */
.foundation {
    background: radial-gradient(circle at 10% 70%, rgba(29, 78, 216, 0.015) 0%, transparent 60%), var(--color-bg-light);
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .foundation {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
}

.foundation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .foundation-grid {
        grid-template-columns: 0.92fr 1.08fr;
        gap: 2rem;
        align-items: stretch;
    }
}

.foundation-image-col {
    position: relative;
}

@media (min-width: 1024px) {
    .foundation-image-col {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
}

.foundation-img-wrapper {
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    aspect-ratio: 4 / 3;
    background-color: var(--color-border);
}

@media (min-width: 1024px) {
    .foundation-img-wrapper {
        flex: 1;
        min-height: 0;
        height: 100%;
        aspect-ratio: auto;
    }
}

.foundation-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foundation-badge {
    position: absolute;
    bottom: -12px;
    right: -12px;
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    padding: 0.65rem 1rem;
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.foundation-content-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.foundation-content-col .section-tag {
    margin-bottom: 0.5rem;
}

.foundation-title {
    font-size: clamp(1.65rem, 3vw, 2rem);
    margin-bottom: 0.65rem;
}

.foundation-intro {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin-bottom: 0.85rem;
    max-width: 56ch;
}

.foundation-programs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: auto;
}

@media (min-width: 640px) {
    .foundation-programs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
}

.foundation-program-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    box-shadow: 0 1px 0 rgba(var(--color-primary-rgb), 0.04);
}

.foundation-program-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
    border-color: var(--color-accent-light);
}

.foundation-program-tag {
    display: flex;
    align-items: center;
    min-height: 2.65rem;
    padding: 0.65rem 0.9rem;
    font-family: var(--font-body);
    font-size: clamp(0.88rem, 2.4vw, 0.95rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 0;
}

.foundation-program-card:nth-child(1) .foundation-program-tag {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
}

.foundation-program-card:nth-child(2) .foundation-program-tag {
    background: linear-gradient(135deg, #0F2747 0%, #1E3A5F 100%);
}

.foundation-program-card:nth-child(3) .foundation-program-tag {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
}

.foundation-program-card:nth-child(4) .foundation-program-tag {
    background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%);
}

.foundation-program-desc {
    font-size: clamp(0.84rem, 2.2vw, 0.9rem);
    line-height: 1.6;
    color: var(--color-text-main);
    padding: 0.75rem 0.9rem 0.85rem;
    flex-grow: 1;
    margin: 0;
}

@media (min-width: 1024px) {
    .foundation-content-col {
        min-height: 100%;
    }

    .foundation-programs {
        flex: 1;
        min-height: 0;
        grid-template-rows: repeat(2, 1fr);
    }
}

/* SECCIÓN CONTACTO Y UBICACIÓN */
.contact {
    background: radial-gradient(circle at 80% 20%, rgba(29, 78, 216, 0.015) 0%, transparent 60%), var(--color-bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 0.85fr 1.15fr;
        gap: var(--space-lg);
    }
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .contact-details {
        gap: 1.75rem;
    }
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-info-icon {
    color: var(--color-accent);
    font-size: 1.35rem;
    margin-top: 0.15rem;
    width: 28px;
    display: flex;
    justify-content: center;
}

.contact-info-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.contact-info-value {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.contact-info-value a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-info-value a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.contact-map-wrapper {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-subtle);
    height: 270px;
    background-color: var(--color-bg-light);
}

.contact-map {
    width: 100%;
    height: 100%;
    border: 0;
}

/* FORMULARIO DE CONTACTO PREMIUM */
.contact-form-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-medium);
}

@media (min-width: 640px) {
    .contact-form-card {
        padding: 3rem 2.5rem;
    }
}

.contact-form-title {
    font-size: 1.65rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .contact-form-title {
        font-size: 1.85rem;
        margin-bottom: 1.75rem;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.form-group-full {
    grid-column: span 1;
}

@media (min-width: 640px) {
    .form-group-full {
        grid-column: span 2;
    }
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-white);
    color: var(--color-text-main);
    transition: var(--transition-smooth);
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

/* Validación interactiva visual */
.form-input:not(:placeholder-shown):valid,
.form-textarea:not(:placeholder-shown):valid {
    border-color: #10B981;
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

/* Botón WhatsApp flotante (regla 07) — ver MOB-007 en regla 08 */
.whatsapp-float {
    position: fixed;
    right: max(22px, env(safe-area-inset-right, 0px));
    bottom: max(22px, calc(22px + env(safe-area-inset-bottom, 0px)));
    z-index: 1500;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
}

.whatsapp-float:hover {
    transform: translateZ(0) translateY(-3px) scale(1.04);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
    color: #ffffff;
}

.whatsapp-float:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.whatsapp-float-icon {
    width: 30px;
    height: 30px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        right: max(16px, env(safe-area-inset-right, 0px));
        bottom: max(24px, calc(20px + env(safe-area-inset-bottom, 0px)));
        width: 54px;
        height: 54px;
    }

    .whatsapp-float-icon {
        width: 28px;
        height: 28px;
    }
}

/* SECCIÓN FOOTER */
.footer {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.4fr 0.9fr 1.3fr;
        gap: var(--space-lg);
    }
}

.footer-logo-col p {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 1.25rem;
    max-width: 340px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-bg-white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-link {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-link i {
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--color-accent-light);
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.footer-contact-icon {
    color: var(--color-accent-light);
    font-size: 1.15rem;
    margin-top: 0.2rem;
}

.footer-contact-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-legal-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.footer-legal-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-legal-link:hover {
    color: var(--color-accent-light);
}

.footer-credit {
    margin-top: 0;
    padding: 1.25rem 1rem 1.75rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: var(--transition-smooth);
}

.footer-credit a:hover {
    color: var(--color-accent-light);
}

/* ANIMACIONES CON ESTRATEGIA DE MEJORA PROGRESIVA (PROGRESSIVE ENHANCEMENT) */
/* Por defecto, los elementos son plenamente visibles. */
.reveal {
    opacity: 1;
    transform: none;
}

/* Solo si JavaScript se carga con éxito y soporta IntersectionObserver, se aplica el estado oculto inicial */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Al intersecar y activarse, se revelan */
.js-reveal .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Retardos de animación modulares */
.js-reveal .reveal.delay-100 { transition-delay: 100ms; }
.js-reveal .reveal.delay-200 { transition-delay: 200ms; }
.js-reveal .reveal.delay-300 { transition-delay: 300ms; }
.js-reveal .reveal.delay-400 { transition-delay: 400ms; }
.js-reveal .reveal.delay-500 { transition-delay: 500ms; }

/* ANIMACIONES KEYFRAMES COMPLEMENTARIOS */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(45px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
