/*
================================================================
ASOCIACIÓN SEVETH DAY | SISTEMA DE ESTILOS PRINCIPAL
Arquitectura CSS: Variables → Reset → Layout → Componentes → Utilidades
Metodología: BEM + Tailwind utility-first
Optimizado para: Core Web Vitals, accesibilidad WCAG 2.1
================================================================
*/

/* ================================================================
   1. CUSTOM PROPERTIES: Sistema de diseño centralizado
   Modificar estas variables actualiza toda la interfaz
================================================================ */
:root {
    /* Paleta cromática principal: naranja profesional */
    --color-brand-50:   #FFF4EC;
    --color-brand-100:  #FFE4CC;
    --color-brand-200:  #FFC799;
    --color-brand-300:  #FFA366;
    --color-brand-400:  #FF7E33;
    --color-brand-500:  #E8640A;  /* Color primario corporativo */
    --color-brand-600:  #C4520A;
    --color-brand-700:  #963D07;
    --color-brand-800:  #6D2C05;
    --color-brand-900:  #451B03;

    /* Escala de oscuros para fondos y texto */
    --color-midnight:       #0F0F1A;
    --color-midnight-light: #1C1C2E;
    --color-midnight-mid:   #252540;
    --color-midnight-card:  #2D2D44;

    /* Colores neutros */
    --color-white:     #FFFFFF;
    --color-off-white: #FFF8F3;  /* Blanco cálido que armoniza con naranja */
    --color-gray-50:   #F9FAFB;
    --color-gray-100:  #F3F4F6;
    --color-gray-400:  #9CA3AF;
    --color-gray-600:  #4B5563;
    --color-gray-800:  #1F2937;

    /* Gradientes corporativos */
    --gradient-brand:        linear-gradient(135deg, #E8640A 0%, #F5A623 60%, #FF9A3C 100%);
    --gradient-brand-dark:   linear-gradient(135deg, #C4520A 0%, #E8640A 100%);
    --gradient-brand-radial: radial-gradient(circle at 30% 50%, #E8640A 0%, #F5A623 100%);
    --gradient-dark:         linear-gradient(135deg, #0F0F1A 0%, #1C1C2E 50%, #252540 100%);
    --gradient-hero-overlay: linear-gradient(to bottom, rgba(15,15,26,0.75) 0%, rgba(232,100,10,0.35) 100%);
    --gradient-card-hover:   linear-gradient(135deg, rgba(232,100,10,0.05), rgba(245,166,35,0.08));

    /* Tipografía */
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Espaciado base para secciones */
    --section-padding-y: 5rem;

    /* Bordes y radios */
    --radius-sm:   0.375rem;
    --radius-md:   0.75rem;
    --radius-lg:   1.25rem;
    --radius-xl:   2rem;
    --radius-full: 9999px;

    /* Sombras corporativas */
    --shadow-brand:    0 10px 30px rgba(232, 100, 10, 0.3);
    --shadow-brand-lg: 0 20px 60px rgba(232, 100, 10, 0.4);
    --shadow-card:     0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-card-lg:  0 12px 48px rgba(0, 0, 0, 0.14);
    --shadow-dark:     0 10px 40px rgba(0, 0, 0, 0.4);

    /* Transiciones */
    --transition-fast:   all 0.2s ease;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Navbar dimensions: ajustado al logo de 72px + padding vertical */
    --navbar-height: 6rem;
    --topbar-height: 2.5rem;
}

/* ================================================================
   2. RESET Y BASE GLOBAL
================================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Scroll suave nativo: mejor rendimiento que JavaScript en navegadores modernos */
    scroll-behavior: smooth;
    /* Compensar altura del navbar fijo al navegar a anclas */
    scroll-padding-top: calc(var(--navbar-height) + var(--topbar-height));
}

body {
    font-family: var(--font-sans);
    color: var(--color-gray-800);
    background-color: var(--color-white);
    /* Previene scroll horizontal en móviles */
    overflow-x: hidden;
    /* Antialiasing para tipografía más nítida */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Accesibilidad: skip-navigation link */
.skip-nav {
    position: absolute;
    top: -100vh;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--color-brand-500);
    color: white;
    font-weight: 700;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: top 0.2s ease;
}
.skip-nav:focus {
    top: 0;
}

/* Enfoque accesible visible para navegación con teclado */
:focus-visible {
    outline: 3px solid var(--color-brand-500);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Gradient helper de texto: reutilizable en toda la UI */
.text-gradient-brand {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Padding estándar para todas las secciones */
.section-padding {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

/* ================================================================
   3. TOPBAR: Barra de información superior
================================================================ */

.topbar {
    background: var(--color-midnight-light);
    height: var(--topbar-height);
    overflow: hidden;
    transition: height 0.4s ease, opacity 0.4s ease;
}

/* Ocultar topbar al hacer scroll: clase añadida por JS */
.topbar.topbar--hidden {
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.social-topbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-full);
    color: #9CA3AF;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.social-topbar:hover {
    background: rgba(232, 100, 10, 0.2);
    color: var(--color-brand-400);
    transform: translateY(-1px);
}

/* ================================================================
   4. NAVBAR: Navegación principal sticky
================================================================ */

.navbar {
    /* Estado base: vidrio esmerilado (glassmorphism) siempre visible */
    background: rgba(10, 10, 22, 0.38);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    top: var(--topbar-height);
    transition: background-color 0.4s ease,
                border-color     0.4s ease,
                box-shadow       0.4s ease,
                backdrop-filter  0.4s ease,
                top              0.4s ease;
}

/* Estado al hacer scroll: vidrio más denso con sombra más pronunciada */
.navbar.navbar--scrolled {
    background: rgba(10, 10, 22, 0.80);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom-color: rgba(232, 100, 10, 0.25);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45),
                inset 0 -1px 0 rgba(232, 100, 10, 0.12);
    top: 0;
}

/* Ajuste cuando la topbar se oculta */
.navbar.navbar--no-topbar {
    top: 0;
}

/* Links del menú desktop */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    /* Blanco puro con ligera opacidad para máxima legibilidad sobre el glass */
    color: rgba(255, 255, 255, 0.90);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: var(--transition-normal);
    position: relative;
    /* Sombra de texto mínima para leer sobre cualquier fondo detrás del vidrio */
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Línea decorativa naranja bajo el link activo */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(232, 100, 10, 0.15);
    /* Borde glass sutil al hover */
    box-shadow: inset 0 0 0 1px rgba(232, 100, 10, 0.25);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Variante CTA del nav-link: "Contáctanos" resaltado con borde naranja */
.nav-link--cta {
    background: rgba(232, 100, 10, 0.15);
    border: 1.5px solid rgba(232, 100, 10, 0.45);
    color: white !important;
    border-radius: var(--radius-full) !important;
    padding: 0.4rem 1.1rem !important;
    font-weight: 600 !important;
    transition: var(--transition-normal);
}

.nav-link--cta::after {
    display: none; /* Sin línea inferior en este estilo de botón */
}

.nav-link--cta:hover {
    background: var(--color-brand-500) !important;
    border-color: var(--color-brand-500) !important;
    box-shadow: var(--shadow-brand) !important;
    transform: translateY(-1px);
}

/* ================================================================
   5. LOGO: Imagen corporativa en navbar y footer
================================================================ */

/* Logo en el navbar: tamaño visual prominente */
.navbar-logo {
    height: 4.5rem;      /* 72px — más visible y con presencia */
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
    filter: brightness(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    opacity: 0.88;
    transform: scale(1.04);
}

/* Logo en el footer: mismo tamaño que el navbar para coherencia */
.footer-logo {
    height: 4.25rem;     /* 68px */
    width: auto;
    max-width: 230px;
    object-fit: contain;
    display: block;
    filter: brightness(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
    transition: opacity 0.3s ease;
}

.footer__brand a:hover .footer-logo {
    opacity: 0.8;
}

/* ================================================================
   6. CTA BUTTONS: Sistema de botones corporativo
================================================================ */

/* Botón primario - naranja sólido */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: var(--gradient-brand);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-brand);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Efecto shimmer al hacer hover */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Botón primario pequeño para el navbar */
.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    background: var(--gradient-brand);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: var(--shadow-brand);
    transition: var(--transition-normal);
}

.btn-primary-sm:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand-lg);
    filter: brightness(1.1);
}

/* Botón de ancho completo para móvil */
.btn-primary-full {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-brand);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: var(--shadow-brand);
    transition: var(--transition-normal);
}

/* Botones del hero */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: var(--gradient-brand);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: var(--shadow-brand-lg);
    transition: var(--transition-normal);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 25px 70px rgba(232, 100, 10, 0.5);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.95rem 2.25rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-normal);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* Botón blanco para banners oscuros */
.btn-white {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    background: white;
    color: var(--color-brand-600);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition-normal);
}

.btn-white:hover {
    background: var(--color-brand-50);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Botón outline blanco */
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    background: transparent;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    transition: var(--transition-normal);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* ================================================================
   7. MENÚ MÓVIL: Hamburguesa y panel desplegable
================================================================ */

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2rem;
    height: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    transform-origin: center;
}

/* Animación X al abrir menú */
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Panel de menú móvil: mismo lenguaje visual glassmorphism */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 10, 22, 0.82);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-top: 1px solid rgba(232, 100, 10, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.mobile-menu--open {
    max-height: 28rem;
    opacity: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin: 0 0.5rem;
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    background: rgba(232, 100, 10, 0.12);
    color: white;
    padding-left: 2rem;
}

/* ================================================================
   8. HERO SLIDER: Sección de inicio a pantalla completa
================================================================ */

.hero-swiper {
    width: 100%;
    height: 100vh;
    min-height: 680px;
}

/* Cada slide es un panel de pantalla completa */
.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Fondos CSS diferenciados por slide (reemplazar con imágenes reales) */
.hero-slide--1 {
    background-image: url('../images/hero/slide-1.jpg');
    background-color: #1C1C2E;
    /* Fallback cuando la imagen no está disponible */
    background-image: linear-gradient(135deg, #0F0F1A 0%, #1C1C2E 40%, #252540 70%, #1A120A 100%);
}

.hero-slide--2 {
    background-image: url('../images/hero/slide-2.jpg');
    background-color: #1C1C2E;
    background-image: linear-gradient(135deg, #1A0D05 0%, #2D1A0A 40%, #3D2415 70%, #E8640A20 100%);
}

.hero-slide--3 {
    background-image: url('../images/hero/slide-3.jpg');
    background-color: #0F0F1A;
    background-image: linear-gradient(135deg, #0A0A15 0%, #151525 40%, #1C1C2E 70%, #0F1520 100%);
}

/* Overlay del slide: gradiente semitransparente sobre la imagen */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        rgba(15, 15, 26, 0.80) 0%,
        rgba(28, 28, 46, 0.60) 50%,
        rgba(232, 100, 10, 0.25) 100%
    );
    z-index: 1;
}

.hero-overlay--warm {
    background: linear-gradient(
        to bottom right,
        rgba(26, 13, 5, 0.85) 0%,
        rgba(45, 26, 10, 0.70) 50%,
        rgba(232, 100, 10, 0.30) 100%
    );
}

.hero-overlay--dark {
    background: linear-gradient(
        to right,
        rgba(10, 10, 21, 0.90) 0%,
        rgba(15, 15, 26, 0.75) 50%,
        rgba(232, 100, 10, 0.20) 100%
    );
}

/* Contenedor del texto del hero */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: calc(var(--navbar-height) + var(--topbar-height) + 2rem);
}

/* Wrapper de texto con animación de entrada */
.hero-text-wrapper {
    max-width: 700px;
}

.hero-text-wrapper--centered {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

/* Badge/etiqueta sobre el título */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.2rem;
    background: rgba(232, 100, 10, 0.2);
    border: 1px solid rgba(232, 100, 10, 0.4);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    color: var(--color-brand-300);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Título principal del hero */
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Subtítulo del hero */
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 2.5rem;
}

/* Fila de botones del hero */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Botones de navegación personalizados del Swiper */
.hero-swiper-next,
.hero-swiper-prev {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem !important;
    height: 3.5rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: white !important;
    transition: var(--transition-normal) !important;
    margin-top: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.hero-swiper-next::after,
.hero-swiper-prev::after {
    /* Ocultar la flecha default de Swiper */
    display: none !important;
}

.hero-swiper-next i,
.hero-swiper-prev i {
    font-size: 1rem;
}

.hero-swiper-next:hover,
.hero-swiper-prev:hover {
    background: var(--color-brand-500) !important;
    border-color: var(--color-brand-500) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

/* Paginación de puntos del hero */
.hero-pagination .swiper-pagination-bullet {
    width: 0.75rem;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--color-brand-500);
    width: 2rem;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(232, 100, 10, 0.6);
}

/* Indicador de scroll animado */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounceScroll 2.5s ease-in-out infinite;
}

.scroll-indicator__dot {
    width: 1.25rem;
    height: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-indicator__dot::after {
    content: '';
    position: absolute;
    top: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.3rem;
    height: 0.3rem;
    background: var(--color-brand-400);
    border-radius: var(--radius-full);
    animation: scrollDot 2s ease-in-out infinite;
}

.scroll-indicator__text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

@keyframes scrollDot {
    0%   { top: 0.25rem; opacity: 1; }
    80%  { top: 1rem;    opacity: 0; }
    100% { top: 0.25rem; opacity: 0; }
}

@keyframes bounceScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ================================================================
   9. SECCIÓN ESTADÍSTICAS: Contadores animados
================================================================ */

.stats-section {
    background: var(--gradient-brand);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* Decoración de fondo geométrica */
.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Separador vertical entre estadísticas */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-normal);
}

.stat-card:last-child {
    border-right: none;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.stat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.stat-icon {
    font-size: 1.5rem;
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: white;
    line-height: 1;
    font-family: var(--font-sans);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* ================================================================
   10. ENCABEZADOS DE SECCIÓN: Sistema unificado
================================================================ */

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.2rem;
    background: var(--color-brand-50);
    border: 1px solid var(--color-brand-200);
    border-radius: var(--radius-full);
    color: var(--color-brand-600);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.section-badge--light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
    color: var(--color-midnight-light);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-gray-600);
    line-height: 1.75;
}

/* ================================================================
   11. SERVICIOS: Grid de tarjetas de servicio
================================================================ */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tarjeta de servicio individual */
.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Línea decorativa naranja en hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-lg);
    border-color: var(--color-brand-100);
    background: linear-gradient(135deg, #fff 0%, var(--color-brand-50) 100%);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--color-brand-50);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-card__icon-wrap {
    background: var(--gradient-brand);
    transform: rotate(-5deg) scale(1.05);
}

.service-card__icon {
    font-size: 1.6rem;
    color: var(--color-brand-500);
    transition: var(--transition-normal);
}

.service-card:hover .service-card__icon {
    color: white;
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-midnight-light);
    margin-bottom: 0.75rem;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.5rem;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    color: var(--color-brand-500);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.service-card__link:hover {
    color: var(--color-brand-700);
    gap: 0.5rem;
}

/* ================================================================
   12. SOBRE NOSOTROS: Layout con imagen y contenido
================================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Contenedor visual con imágenes superpuestas */
.about-image-container {
    position: relative;
    height: 520px;
}

/* Imagen principal: ocupa 75% del ancho, alineada a la izquierda */
.about-image-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 76%;
    height: 84%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card-lg);
    background: var(--gradient-dark);
}

/* Foto real: mismo marco que el placeholder, recorte proporcional en todos los anchos */
.about-image-main__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Imagen secundaria superpuesta: en esquina inferior derecha */
.about-image-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 48%;
    height: 52%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    border: 4px solid white;
    background: var(--gradient-brand-dark);
}

/* Placeholder visible mientras no hay imagen real */
.about-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
}

.about-image-placeholder--sm {
    background: var(--gradient-brand-dark);
}

/* Tarjetas flotantes decorativas con estadísticas */
.about-floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-card-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

.about-floating-card--years {
    top: 15%;
    right: -5%;
    background: var(--gradient-brand);
    animation-delay: 0s;
}

.about-floating-card--families {
    bottom: 10%;
    left: -5%;
    animation-delay: 3s;
}

.about-floating-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.about-floating-card--families .about-floating-number {
    font-size: 1.4rem;
}

.about-floating-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.3;
    margin-top: 0.2rem;
}

.about-floating-card--families .about-floating-label {
    color: var(--color-gray-600);
}

/* Decoraciones geométricas de fondo */
.about-deco-circle {
    position: absolute;
    bottom: -3rem;
    left: -3rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: var(--color-brand-50);
    z-index: -1;
}

.about-deco-dots {
    position: absolute;
    top: -2rem;
    right: 20%;
    width: 8rem;
    height: 8rem;
    background-image: radial-gradient(circle, var(--color-brand-200) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    z-index: 0;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

/* Contenido textual de la sección nosotros */
.about-content {
    display: flex;
    flex-direction: column;
}

/* ================================================================
   13. TABS DE MISIÓN / VISIÓN / VALORES
================================================================ */

.about-tabs {
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-gray-100);
}

.about-tabs__nav {
    display: flex;
    border-bottom: 1px solid var(--color-gray-100);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.about-tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-600);
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition-normal);
}

.about-tab-btn.active,
.about-tab-btn:hover {
    color: var(--color-brand-500);
}

.about-tab-btn.active {
    border-bottom-color: var(--color-brand-500);
    background: white;
}

.about-tabs__content {
    padding: 1.5rem;
}

.about-tab-panel {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.75;
    animation: fadeInPanel 0.3s ease-out;
}

.about-tab-panel[hidden] {
    display: none;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
}

/* ================================================================
   14. CTA BANNER: Llamada a la acción principal
================================================================ */

.cta-banner {
    background: var(--gradient-dark);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decoración geométrica de fondo */
.cta-banner__deco {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(232, 100, 10, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(245, 166, 35, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-banner__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================================================================
   15. PROYECTOS: Grid con filtro de categorías
================================================================ */

.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--color-gray-200);
    background: white;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-brand-500);
    border-color: var(--color-brand-500);
    color: white;
    box-shadow: var(--shadow-brand);
    transform: translateY(-2px);
}

/* Grid de proyectos: 3 columnas en desktop */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tarjeta de proyecto */
.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-lg);
}

/* Área de imagen del proyecto */
.project-card__image {
    position: relative;
    height: 13rem;
    overflow: hidden;
}

/* Placeholders CSS que reemplazan imágenes reales */
.project-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.project-card__placeholder--1 {
    background: linear-gradient(135deg, #E8640A, #F5A623);
}

.project-card__placeholder--2 {
    background: linear-gradient(135deg, #1C1C2E, #2D2D44);
}

.project-card__placeholder--3 {
    background: linear-gradient(135deg, #0F4C25, #1A7A3A);
}

.project-card__placeholder--4 {
    background: linear-gradient(135deg, #4A1C6F, #7B2FBF);
}

.project-card:hover .project-card__placeholder {
    transform: scale(1.05);
}

/* Overlay de la imagen con botón de zoom */
.project-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 26, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.project-card:hover .project-card__overlay {
    background: rgba(15, 15, 26, 0.6);
}

.project-card__zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-brand-500);
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0.7);
    transition: var(--transition-normal);
    text-decoration: none;
}

.project-card:hover .project-card__zoom {
    opacity: 1;
    transform: scale(1);
}

/* Etiqueta de categoría sobre la imagen */
.project-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.875rem;
    background: var(--gradient-brand);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Cuerpo de la tarjeta de proyecto */
.project-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-midnight-light);
    margin-bottom: 0.6rem;
}

.project-card__desc {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1rem;
}

/* Metadatos: ubicación y beneficiarios */
.project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-100);
    font-size: 0.8rem;
    color: var(--color-gray-600);
    font-weight: 500;
}

/* Animación de salida/entrada en el filtro */
.project-card.is-hidden {
    display: none;
}

/* ================================================================
   16. TESTIMONIOS: Sección con fondo oscuro y carrusel
================================================================ */

.testimonios-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

/* Decoraciones de fondo abstractas */
.testimonios-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 60%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(232, 100, 10, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.testimonios-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 50%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(245, 166, 35, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Swiper de testimonios */
.testimonios-swiper {
    position: relative;
    z-index: 1;
}

/* Tarjeta de testimonio */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(232, 100, 10, 0.3);
    transform: translateY(-4px);
}

/* Estrellas de calificación */
.testimonial-card__stars {
    display: flex;
    gap: 0.25rem;
    color: #F5A623;
    font-size: 0.95rem;
}

/* Texto del testimonio */
.testimonial-card__text {
    font-style: normal;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    flex: 1;
}

/* Sección del autor */
.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Avatar con iniciales */
.testimonial-card__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-card__avatar--alt {
    background: linear-gradient(135deg, #4A1C6F, #7B2FBF);
}

.testimonial-card__avatar--3 {
    background: linear-gradient(135deg, #0F4C25, #1A7A3A);
}

.testimonial-card__initials {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.testimonial-card__name {
    display: block;
    font-weight: 700;
    color: white;
    font-style: normal;
    font-size: 0.95rem;
}

.testimonial-card__role {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.1rem;
}

/* Paginación de testimonios */
.testimonios-pagination {
    bottom: 0 !important;
}

.testimonios-pagination .swiper-pagination-bullet {
    width: 0.6rem;
    height: 0.6rem;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: var(--transition-normal);
}

.testimonios-pagination .swiper-pagination-bullet-active {
    background: var(--color-brand-500);
    width: 1.5rem;
    border-radius: var(--radius-full);
}

/* ================================================================
   17. CONTACTO: Formulario y datos institucionales
================================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--color-brand-50);
    border-radius: var(--radius-md);
    color: var(--color-brand-500);
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.contact-info-item:hover .contact-info-item__icon {
    background: var(--gradient-brand);
    color: white;
}

.contact-schedule {
    padding: 1.5rem;
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-brand-500);
}

/* Botones de redes sociales cuadrados */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    color: var(--color-gray-600);
    font-size: 1rem;
    transition: var(--transition-normal);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--gradient-brand);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

/* Formulario de contacto */
.contact-form-wrapper {
    background: var(--color-gray-50);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--color-gray-100);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-midnight-light);
}

.form-input {
    padding: 0.8rem 1.1rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--color-gray-800);
    background: white;
    transition: var(--transition-fast);
    width: 100%;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-brand-500);
    box-shadow: 0 0 0 3px rgba(232, 100, 10, 0.1);
}

.form-input.is-invalid {
    border-color: #EF4444;
}

.form-textarea {
    resize: vertical;
    min-height: 7rem;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
    padding-right: 2.5rem;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-gray-600);
    line-height: 1.5;
}

.form-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid var(--color-gray-300);
    border-radius: 0.25rem;
    margin-top: 0.1rem;
    accent-color: var(--color-brand-500);
    flex-shrink: 0;
    cursor: pointer;
}

.form-error {
    font-size: 0.8rem;
    color: #EF4444;
    min-height: 1.2em;
}

/* Feedback de envío del formulario */
.form-feedback {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.form-feedback--success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.form-feedback--error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Utility para ocultar elementos (usado por JS para toggle de feedback y loading) */
.hidden {
    display: none !important;
}

/* Menú desktop: oculto en móvil, visible como flex a partir de 1024px */
.nav-menu-desktop {
    display: none;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1024px) {
    .nav-menu-desktop {
        display: flex;
    }
}

/* ================================================================
   18. FOOTER
================================================================ */

.footer {
    background: var(--color-midnight);
}

.footer__main {
    padding: 5rem 0 3rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 640px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    }
}

.footer__col-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-brand-500);
    display: inline-block;
}

.footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
}

.footer-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
    padding: 0.15rem 0;
}

.footer-link:hover {
    color: var(--color-brand-400);
    padding-left: 0.25rem;
}

.footer__contact-col {}

.footer__address {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
}

/* Dirección física: mayor legibilidad en pie de página */
.footer-contact-item--address {
    font-size: 0.9375rem;
}

.footer__street {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
}

.footer__locality {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
}

.footer-link-light {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link-light:hover {
    color: var(--color-brand-400);
}

/* Iconos de redes sociales del footer */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-social:hover {
    background: var(--color-brand-500);
    color: white;
    transform: translateY(-3px);
}

/* Barra inferior del footer */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.5rem 0;
}

.footer__bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal-link:hover {
    color: var(--color-brand-400);
}

/* ================================================================
   19. BOTÓN VOLVER ARRIBA
================================================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 3rem;
    height: 3rem;
    background: var(--gradient-brand);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease,
                visibility 0.3s ease,
                transform 0.3s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    filter: brightness(1.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-brand-lg);
}

/* ================================================================
   20. ANIMACIONES GLOBALES
================================================================ */

/* Pulse ring para elementos de llamada a la acción */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: var(--color-brand-500);
    animation: pulseRing 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes pulseRing {
    0%   { transform: scale(0.9); opacity: 0.6; }
    70%  { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(0.9); opacity: 0; }
}

/* ================================================================
   21. RESPONSIVE: Ajustes específicos para móvil
================================================================ */

@media (max-width: 639px) {

    :root {
        --section-padding-y: 3.5rem;
        /* En móvil el navbar es menos alto: logo se adapta con max-height */
        --navbar-height: 5rem;
    }

    /* Logo en móvil: más pequeño para que quepa en la barra */
    .navbar-logo {
        height: 3.25rem;
        max-width: 170px;
    }

    .hero-swiper {
        height: 100svh;
        min-height: 600px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-swiper-next,
    .hero-swiper-prev {
        display: none !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.5rem 1rem;
    }

    .about-image-container {
        height: 400px;
    }

    .about-floating-card--years {
        right: 0;
        top: 5%;
    }

    .about-floating-card--families {
        left: 0;
        bottom: 5%;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

/* ================================================================
   22. ESTILOS DE IMPRESIÓN
   Oculta elementos no relevantes al imprimir la página
================================================================ */

@media print {
    .navbar,
    .topbar,
    .hero-swiper,
    .stats-section,
    .cta-banner,
    .back-to-top,
    .scroll-indicator,
    .contact-form {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: black;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
    }
}

/* ================================================================
   23. PREFERENCIA DE MOVIMIENTO REDUCIDO
   Respeta la preferencia del sistema operativo del usuario
================================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .about-floating-card {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
    }
}
