/* ========================================
   GLOBAL GROUP ASOCIADOS
   Estilos Profesionales - Firma de Abogados
   Paleta: Azul corporativo / Gris elegante
   ======================================== */

/* Variables CSS */
:root {
    /* Colores principales */
    --color-primary: #1e3a5f;
    --color-primary-dark: #152a45;
    --color-primary-light: #2a4a73;
    --color-secondary: #4a6fa5;
    --color-accent: #c9a227;
    
    /* Grises */
    --color-gray-900: #1a1a2e;
    --color-gray-800: #2d2d44;
    --color-gray-700: #4a4a6a;
    --color-gray-600: #6b6b8a;
    --color-gray-500: #8a8aa8;
    --color-gray-400: #a8a8c4;
    --color-gray-300: #c8c8dc;
    --color-gray-200: #e2e2ee;
    --color-gray-100: #f0f0f8;
    --color-gray-50: #f8f8fc;
    
    /* Blancos */
    --color-white: #ffffff;
    --color-white-soft: #fafbfc;
    
    /* Tipografía */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Tamaños */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Espaciado */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Bordes */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --header-min-height: 88px; /* renombrado 2026-05-21: JS ya no sobreescribe */
    
    /* Transiciones */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* Reset y base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* scroll-behavior NO smooth: causaba scroll animado que parecia "se mueve sola" */
    scroll-behavior: auto;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: 960px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    gap: var(--space-2);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

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

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

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

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border: 2px solid var(--color-accent);
}

.btn-accent:hover {
    background-color: #b8941f;
    border-color: #b8941f;
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* Header */
/* Header NO sticky: se queda arriba y desaparece al hacer scroll
   Si quieres volverlo sticky, cambia "static" por "fixed". */
.header {
    position: static;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(30, 58, 95, 0.12);
    box-shadow: 0 4px 12px rgba(21, 42, 69, 0.06);
}

/* Las clases .scrolled se mantienen por compatibilidad pero no aplican
   ningún cambio visual porque el header ya no es sticky. */
.header.scrolled { box-shadow: 0 4px 12px rgba(21, 42, 69, 0.06); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-min-height);
    gap: var(--space-4);
    padding: var(--space-4) 0;
    /* transition removida 2026-05-21: combinada con var dinamica causaba
       el efecto visual de "scroll automatico" cuando el header crecia. */
    transition: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1 1 auto;
    min-width: 0;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 1rem + 0.8vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    max-width: 14ch;
    text-wrap: balance;
}

.logo-text span {
    display: block;
    font-size: var(--text-xs);
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 0.1rem;
}

/* Navegación */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 0 0 auto;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-700);
    position: relative;
    padding: var(--space-2) 0;
}

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

.nav-link:hover {
    color: var(--color-primary);
}

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

.nav-link.active {
    color: var(--color-primary);
}

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

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 220px;
    padding: var(--space-2) 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    margin-top: var(--space-2);
}

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

.dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    color: var(--color-gray-700);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--color-gray-50);
    color: var(--color-primary);
    padding-left: var(--space-6);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(30, 58, 95, 0.12);
    background: rgba(30, 58, 95, 0.04);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-base);
}

.menu-toggle.active {
    background: rgba(30, 58, 95, 0.08);
}

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

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

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

.nav .btn-primary {
    padding: 0.95rem 1.3rem !important;
    border-radius: 18px;
    font-size: 0.9rem !important;
    line-height: 1.1;
    text-align: left;
    white-space: normal;
    box-shadow: 0 14px 28px rgba(30, 58, 95, 0.16);
}

.nav .btn-primary i {
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-secondary) 100%);
    overflow: hidden;
    padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--space-2) var(--space-4);
    border-radius: 50px;
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: clamp(2.85rem, 2.1rem + 3.4vw, 5rem);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    line-height: 1.1;
    max-width: 13ch;
    text-wrap: balance;
}

.hero-title span {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 0.95rem + 0.75vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
    line-height: 1.7;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: var(--space-10);
}

.hero-buttons .btn {
    min-height: 60px;
    border-radius: 18px;
}

.hero-stats {
    position: relative;
    z-index: 2;
}

.hero-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
}

.stat-item {
    text-align: left;
    padding: var(--space-5);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.18);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-white);
    display: block;
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero Gallery (top of page) */
.hero-gallery {
    margin-top: 0;
    background: linear-gradient(180deg, #f8f9fc 0%, #eff3f8 100%);
    padding: var(--space-4) 0 var(--space-3);
}

/* Gallery Carousel (Cases) */
.gallery-carousel {
    position: relative;
    overflow: hidden;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2.4vw, 1.75rem);
}

.gallery-track {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    overflow-x: auto;
    /* scroll-snap-type removido: causaba snap vertical en mobile */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: clamp(1rem, 2.4vw, 1.75rem);
    padding-bottom: var(--space-2);
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    flex: 0 0 min(560px, calc(100vw - 132px));
    /* scroll-snap-align removido junto con scroll-snap-type del padre */
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform var(--transition-base);
    background: var(--color-primary-dark);
}

.gallery-card:hover {
    transform: scale(1.02);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    object-fit: cover;
}

.gallery-overlay {
    display: none;
}

.gallery-overlay h4 {
    color: var(--color-accent);
    font-size: clamp(1.15rem, 1rem + 0.55vw, 1.45rem);
    margin-bottom: var(--space-2);
}

.gallery-overlay p {
    font-size: clamp(0.84rem, 0.78rem + 0.18vw, 1rem);
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.4;
    max-width: 28ch;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(21, 42, 69, 0.84);
    color: var(--color-white);
    font-size: var(--text-base);
    cursor: pointer;
    z-index: 10;
    display: grid;
    place-items: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 36px rgba(21, 42, 69, 0.18);
}

.gallery-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.gallery-prev { left: clamp(0.4rem, 1.2vw, 0.8rem); }
.gallery-next { right: clamp(0.4rem, 1.2vw, 0.8rem); }

/* Section Styles */
.section {
    padding: var(--space-24) 0;
}

.section-alt {
    background-color: var(--color-gray-50);
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
}

.section-title {
    margin-bottom: var(--space-5);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    border: 1px solid var(--color-gray-200);
    position: relative;
    overflow: hidden;
}

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

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

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

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--color-white);
    font-size: var(--text-2xl);
}

.service-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.service-description {
    color: var(--color-gray-600);
    margin-bottom: var(--space-5);
    font-size: var(--text-base);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    transition: gap var(--transition-fast);
}

.service-link:hover {
    gap: var(--space-3);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    color: var(--color-accent);
    font-size: var(--text-3xl);
}

.feature-title {
    font-size: var(--text-lg);
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.feature-description {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* Trust Section */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-8);
    align-items: center;
    opacity: 0.6;
}

.trust-logo {
    text-align: center;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-gray-400);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.testimonial-card {
    background-color: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-gray-700);
    margin-bottom: var(--space-6);
    position: relative;
    padding-left: var(--space-6);
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    color: var(--color-accent);
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 600;
}

.testimonial-name {
    font-weight: 600;
    color: var(--color-primary);
}

.testimonial-role {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-16);
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.cta-title {
    font-size: var(--text-4xl);
    color: var(--color-white);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-400);
    padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand .logo-text {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.footer-brand p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-5);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

.footer-title {
    font-size: var(--text-base);
    color: var(--color-white);
    margin-bottom: var(--space-5);
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
}

.footer-contact i {
    color: var(--color-accent);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: var(--space-20) 0 var(--space-16);
    color: var(--color-white);
    text-align: center;
}

.page-title {
    font-size: var(--text-5xl);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.page-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.page-breadcrumb a:hover {
    color: var(--color-white);
}

.page-breadcrumb span {
    color: var(--color-accent);
}

/* Content Sections */
.content-section {
    padding: var(--space-16) 0;
}

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

.content-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.content-text h3 {
    margin-bottom: var(--space-4);
}

.content-text ul {
    margin: var(--space-5) 0;
}

.content-text li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
}

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

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.team-card {
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.team-photo {
    height: 280px;
    background: linear-gradient(135deg, var(--color-gray-300) 0%, var(--color-gray-400) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-5xl);
    color: var(--color-gray-500);
}

.team-info {
    padding: var(--space-5);
}

.team-name {
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
}

.team-role {
    font-size: var(--text-sm);
    color: var(--color-secondary);
    margin-bottom: var(--space-3);
}

.team-bio {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.blog-card {
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.blog-image {
    height: 220px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-4xl);
}

.blog-content {
    padding: var(--space-6);
}

.blog-meta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-title {
    color: var(--color-secondary);
}

.blog-excerpt {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    margin-bottom: var(--space-4);
}

.blog-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

.contact-info-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.contact-info-content p {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    margin: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-800);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    background-color: var(--color-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

/* Map Container */
.map-container {
    height: 400px;
    background-color: var(--color-gray-200);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-500);
    margin-top: var(--space-8);
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: var(--space-12) 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--color-gray-300);
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.process-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    margin: 0 auto var(--space-4);
}

.process-step-title {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
}

.process-step-desc {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    max-width: 200px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        gap: var(--space-3);
    }

    .nav .btn-primary {
        padding: 0.5rem 0.75rem;
        font-size: var(--text-xs);
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--space-6);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link {
        display: block;
        padding: var(--space-3) 0;
    }

    /* Dropdown funcional en móvil con tap */
    .dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: var(--space-2) 0 0 var(--space-6);
        margin-top: 0;
        display: none;
        min-width: unset;
        border-left: 2px solid var(--color-accent);
        background: transparent;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown .dropdown-item {
        padding: var(--space-2) var(--space-4);
        text-align: left;
        font-size: var(--text-sm);
    }

    .hero {
        padding: var(--space-10) 0 var(--space-12);
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-4);
    }

    .hero-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        position: static;
        margin-top: var(--space-10);
    }

    .hero-stats-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4);
    }

    .stat-item {
        flex: 0 0 calc(50% - var(--space-2));
    }

    .stat-number {
        font-size: var(--text-3xl);
    }

    .stat-label {
        font-size: var(--text-xs);
    }

    /* Hero gallery mobile */
    .hero-gallery {
        margin-top: 70px;
        padding: var(--space-4) 0 var(--space-3);
    }

    /* Gallery mobile */
    .gallery-card {
        flex: 0 0 90vw;
    }

    .gallery-btn {
        width: 36px;
        height: 36px;
        font-size: var(--text-sm);
    }

    .gallery-carousel {
        padding: 0 var(--space-3);
    }

    /* Secciones */
    .section {
        padding: var(--space-16) 0;
    }

    .section-header {
        margin-bottom: var(--space-10);
    }

    .section-title {
        font-size: var(--text-3xl);
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

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

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

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

    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-box {
        padding: var(--space-10) var(--space-6);
    }

    .cta-title {
        font-size: var(--text-3xl);
    }

    /* Page header */
    .page-header {
        padding: calc(80px + var(--space-12)) 0 var(--space-10);
    }

    .page-title {
        font-size: var(--text-3xl);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact {
        display: inline-block;
        text-align: left;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .process-steps {
        flex-direction: column;
        gap: var(--space-8);
    }

    .process-steps::before {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Map */
    .map-container {
        height: 250px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 380px) {
    .header-inner {
        height: 70px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }

    .logo-text {
        font-size: var(--text-base);
    }

    .nav .btn-primary {
        padding: 0.4rem 0.6rem;
        font-size: 0.65rem;
    }

    .nav-menu {
        top: 70px;
    }

    .hero {
        padding-top: 85px;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-badge {
        font-size: var(--text-xs);
    }

    .stat-number {
        font-size: var(--text-2xl);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .service-card {
        padding: var(--space-6);
    }

    .cta-box {
        padding: var(--space-8) var(--space-4);
    }

    .cta-title {
        font-size: var(--text-2xl);
    }

    .page-title {
        font-size: var(--text-2xl);
    }

    .container {
        padding: 0 var(--space-4);
    }
}

/* Responsive refinement overrides */
@media (max-width: 1024px) {
    .hero-title {
        max-width: 12ch;
    }

    .hero-stats-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    :root {
        --header-min-height: 78px;
    }

    .menu-toggle {
        display: inline-flex !important;
    }

    .header-inner {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .logo {
        gap: 0.75rem;
    }

    .logo-icon {
        width: 46px;
        height: 46px;
    }

    .logo-text {
        max-width: 10ch;
    }

    .nav {
        gap: 0.65rem;
    }

    .nav .btn-primary {
        padding: 0.85rem 0.95rem !important;
        font-size: 0.78rem !important;
        max-width: 8.6rem;
    }

    .nav-menu {
        position: fixed;
        top: 10px;
        left: 12px;
        right: 12px;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 1.1rem;
        border-radius: 24px;
        border: 1px solid rgba(30, 58, 95, 0.1);
        box-shadow: 0 28px 70px rgba(10, 22, 40, 0.16);
        transform: translateY(-16px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all var(--transition-base);
        z-index: 999;
        max-height: calc(100vh - 28px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
    }

    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.95rem 0;
        border-bottom: 1px solid rgba(30, 58, 95, 0.08);
        font-size: 1rem;
    }

    .dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0.35rem 0 0 1rem;
        margin-top: 0.2rem;
        display: none;
        min-width: unset;
        border-left: 2px solid var(--color-accent);
        background: transparent;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown .dropdown-item {
        padding: 0.55rem 0.9rem;
        text-align: left;
        font-size: var(--text-sm);
    }

    .hero {
        padding: 3rem 0 3.5rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2.5rem, 2rem + 4vw, 4rem);
        margin-bottom: var(--space-4);
        max-width: none;
    }

    .hero-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
        max-width: none;
    }

    .hero-buttons {
        justify-content: center;
        margin-bottom: var(--space-8);
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        position: static;
    }

    .hero-stats-inner {
        gap: var(--space-4);
    }

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

    .stat-number {
        font-size: var(--text-3xl);
    }

    .stat-label {
        font-size: var(--text-xs);
    }

    .hero-gallery {
        padding: 0.9rem 0 0.8rem;
    }

    .gallery-card {
        flex: 0 0 min(82vw, 480px);
    }

    .gallery-btn {
        width: 44px;
        height: 44px;
        font-size: var(--text-sm);
    }

    .gallery-carousel {
        padding: 0 0.9rem;
    }

    .page-header {
        padding: var(--space-12) 0 var(--space-10);
    }
}

@media (max-width: 640px) {
    :root {
        --header-min-height: 156px;
    }

    .container {
        padding: 0 1rem;
    }

    .header {
        background-color: #ffffff;
        border-bottom-color: rgba(30, 58, 95, 0.1);
        box-shadow: 0 14px 34px rgba(21, 42, 69, 0.1);
        backdrop-filter: none;
    }

    .header-inner {
        flex-wrap: wrap;
        align-items: center;
        row-gap: 0.85rem;
        padding: 0.85rem 0 0.8rem;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.65rem;
        overflow-x: auto;
        max-height: none;
        border-radius: 0;
        padding: 0 0 0.12rem;
        scroll-padding-inline: 1rem;
    }

    .nav-menu li {
        width: auto;
        flex: 0 0 auto;
    }

    .nav-menu .nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0.58rem 0.95rem;
        border: 1px solid rgba(30, 58, 95, 0.12);
        border-radius: 999px;
        background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
        font-size: 0.84rem;
        white-space: nowrap;
        box-shadow: 0 8px 20px rgba(21, 42, 69, 0.06);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .dropdown .dropdown-menu {
        display: none !important;
    }

    .nav .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: none !important;
    }

    .logo-text {
        font-size: 1.1rem;
        max-width: 8.5ch;
    }

    .logo-text span {
        display: none;
    }

    .hero-gallery {
        margin-top: 0.75rem;
        padding: 0.2rem 0 0.95rem;
    }

    .gallery-carousel {
        padding: 0 1rem;
    }

    .gallery-card {
        flex: 0 0 calc(100vw - 2rem);
        border-radius: 24px;
        box-shadow: 0 18px 36px rgba(21, 42, 69, 0.16);
    }

    .gallery-overlay {
        padding: 0.85rem 0.95rem;
        background: linear-gradient(180deg, transparent 0%, rgba(5, 13, 26, 0.58) 38%, rgba(5, 13, 26, 0.9) 100%);
    }

    .gallery-overlay h4 {
        font-size: 1rem;
        margin-bottom: 0.18rem;
    }

    .gallery-overlay p {
        font-size: 0.78rem;
        line-height: 1.28;
        max-width: 26ch;
    }

    .gallery-btn {
        width: 42px;
        height: 42px;
        background: rgba(30, 58, 95, 0.9);
    }

    .hero {
        padding: 3.15rem 0 3.75rem;
    }

    .hero-badge {
        max-width: 100%;
        margin-bottom: 1.4rem;
        font-size: 0.92rem;
    }

    .hero-title {
        font-size: clamp(2.35rem, 10.6vw, 3rem);
        line-height: 1.08;
        max-width: 11ch;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        max-width: 32ch;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 380px) {
    :root {
        --header-min-height: 148px;
    }

    .header-inner {
        min-height: var(--header-min-height);
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }

    .logo-text {
        font-size: 0.98rem;
        max-width: 7.5ch;
    }

    .nav .btn-primary {
        max-width: 7rem;
        padding: 0.68rem 0.7rem !important;
        font-size: 0.68rem !important;
    }

    .nav-menu {
        top: 8px;
    }

    .hero-gallery {
        margin-top: 0.65rem;
    }

    .hero {
        padding-top: 2.85rem;
    }

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

    .hero-badge {
        font-size: var(--text-xs);
    }

    .stat-number {
        font-size: var(--text-2xl);
    }

    .section-title {
        font-size: var(--text-2xl);
    }
}

/* Animations: NEUTRALIZADAS (2026-05-20).
   Antes: fadeInUp movia elementos +30px → 0 al hacer scroll, dando sensacion
   de "la pagina se mueve sola". Ahora solo fade de opacidad sin translate. */
@keyframes fadeInUp {
    from { opacity: 1; transform: none; }
    to   { opacity: 1; transform: none; }
}

.animate-fadeInUp {
    animation: none;
    opacity: 1 !important;
}

/* Utility Classes */
.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Floating WhatsApp Button */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.wa-float svg {
    fill: #fff;
}

@media (max-width: 768px) {
    .wa-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }

    .wa-float svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================================
   ANTI-CLS NUCLEAR (2026-05-20)
   Bloquear TODO movimiento automático de la página.
   El cliente reportó que la página "se baja sola" en múltiples
   usuarios. Esto previene scroll suave, animaciones, scroll-anchor
   y reserva espacio rígido para imágenes.
   ============================================================ */

html, body {
    scroll-behavior: auto !important;
    overflow-anchor: none !important;  /* clave: desactiva el ajuste automatico del scroll cuando cambia el layout */
}

*, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;  /* mantenemos solo hovers cortos */
    transition-delay: 0s !important;
}

/* Reservar aspect-ratio para CUALQUIER img dentro de gallery-card o banner */
img {
    max-width: 100%;
}

img[width][height] {
    height: auto;
    aspect-ratio: attr(width) / attr(height);  /* fallback si CSS no resuelve attr() */
}

.gallery-card,
.gallery-card img,
.banner,
.banner img,
.service-card img,
.team-card img,
.blog-card img {
    contain: layout style;
}

/* ============================================================
   FONT AWESOME — TAMAÑO FIJO PARA EVITAR LAYOUT SHIFT
   Aunque la fuente tarde en cargar, el espacio del icono ya está
   reservado y no se mueve nada cuando aparece el glyph real.
   ============================================================ */
.fa-icons-fixed-size,
.fas, .fab, .far, .fa-solid, .fa-brands, .fa-regular, [class^="fa-"], [class*=" fa-"] {
    display: inline-block;
    width: 1em;
    min-width: 1em;
    text-align: center;
    line-height: 1;
    vertical-align: -0.125em;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────────────────────────
   .about-grid — sección "Nuestra Historia" en /nosotros
   Texto a la izquierda + foto con caption a la derecha (desktop).
   En mobile colapsa a una sola columna (texto arriba, foto abajo).
   Reemplaza inline styles que bloqueaban el responsive.
   ───────────────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.about-grid__figure {
    margin: 0;
    text-align: center;
}

.about-grid__figure img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: block;
    margin: 0 auto;
}

.about-grid__figure figcaption {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-gray-700);
    line-height: 1.5;
}

.about-grid__figure figcaption .about-name {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: var(--text-base);
}

.about-grid__figure figcaption .about-role {
    display: block;
    margin-top: 2px;
    font-size: var(--text-xs);
    color: var(--color-gray-600);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .about-grid__figure {
        margin-top: var(--space-4);
    }
    .about-grid__figure img {
        max-width: 260px;
    }
}
