/* ==========================================================================
   DISEÑO VISUAL PREMIUM - OK PISCINAS (COLORES CORPORATIVOS & HEADER MEJORADO)
   ========================================================================== */

/* Variables del Sistema de Diseño */
:root {
    /* Colores Corporativos */
    --primary: #066aab;          /* Azul Corporativo */
    --primary-light: #0f83cf;    /* Azul Corporativo Claro */
    --primary-dark: #044d7c;     /* Azul Corporativo Oscuro */
    --accent: #2db4e6;           /* Celeste/Cian Corporativo */
    --accent-light: #5bc5eb;     /* Celeste Claro */
    --accent-orange: #ffa944;    /* Naranja para acentos de énfasis */
    --accent-green: #25d366;     /* Verde WhatsApp */
    
    /* Neutros */
    --bg-light: #f4f8fa;         /* Gris azulado muy suave y limpio */
    --bg-white: #ffffff;
    --text-dark: #0a2d42;        /* Azul oscuro profundo para legibilidad de textos */
    --text-muted: #627b8a;       /* Gris azulado apagado para párrafos */
    --text-light: #e6f0f5;       /* Gris azulado muy claro */
    
    /* Tipografías */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Medidas y Bordes */
    --topbar-height: 40px;
    --header-height: 90px;
    --header-height-shrink: 75px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(6, 106, 171, 0.04), 0 2px 4px -1px rgba(6, 106, 171, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(6, 106, 171, 0.08), 0 8px 16px -6px rgba(6, 106, 171, 0.04);
    --shadow-lg: 0 20px 35px -5px rgba(6, 106, 171, 0.12), 0 12px 20px -8px rgba(6, 106, 171, 0.06);
    --shadow-glow: 0 0 20px rgba(45, 180, 230, 0.35);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Estilos Base y Reseteo
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height-shrink) + var(--topbar-height));
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}


/* Iconos grandes: solo en tarjetas de servicios y secciones informativas */
.service-icon .fas,
.service-icon .fab,
.feature-box-icon .fas,
.feature-box-icon .fab,
.price-features .fas,
.price-features .fab,
.accreditations-list .fas,
.accreditations-list .fab {
    font-size: 2em;
    line-height: inherit;
}


/* Contenedor estándar */
.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Secciones generales */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--bg-white);
}

.section-white {
    background-color: var(--bg-white);
}

/* Cabeceras de sección */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 20px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section-dark .section-subtitle {
    color: var(--text-light);
    opacity: 0.85;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Header y Barra de Navegación (MEJORADOS)
   ========================================================================== */
/* Estado inicial: header en el top de la página */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Top Bar de Información */
.header-topbar {
    height: var(--topbar-height);
    background-color: var(--primary);
    color: var(--bg-white);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-info {
    display: flex;
    gap: 1.5rem;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-item i {
    color: var(--accent);
}

.topbar-item a:hover {
    color: var(--accent);
}

.topbar-actions {
    display: flex;
    gap: 1.5rem;
}

.topbar-action-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
}

.topbar-action-link i {
    color: var(--accent);
}

.topbar-action-link:hover {
    color: var(--accent-light);
}

/* 2. Main Header (Sticky & Shrink) */
.main-header {
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid transparent;
}

/* Estado al hacer scroll: header compacto y destacado */
.header-wrapper.shrink {
    box-shadow: 0 4px 30px rgba(6, 106, 171, 0.18), 0 1px 0 rgba(6, 106, 171, 0.08);
}

.header-wrapper.shrink .main-header {
    height: var(--header-height-shrink);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--accent);
}

/* Ocultar barra superior en scroll */
.header-wrapper.shrink .header-topbar {
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.header-container {
    height: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 58px;
    object-fit: contain;
    transition: var(--transition);
}

.header-wrapper.shrink .header-logo {
    height: 46px;
}

/* Menú de Navegación */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    padding: 0.6rem 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:not(.btn-nav):hover {
    color: var(--primary-light);
}

.nav-link:not(.btn-nav):hover::after,
.nav-link.active:not(.btn-nav)::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

/* Botón especial en menú */
.btn-nav {
    background: var(--accent);
    color: var(--bg-white) !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--accent);
}

.btn-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-nav.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Botón menú móvil (hamburguesa) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Ajuste margen para compensar el header */
body {
    padding-top: calc(var(--header-height) + var(--topbar-height));
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.95) 0%, rgba(45, 180, 230, 0.8) 100%), 
                url('../assets/hero_bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}
.hero-content-centered {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-content-centered .hero-btns {
    justify-content: center;
}

.hero-content-centered .hero-text {
    margin-left: auto;
    margin-right: auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 169, 68, 0.2);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.hero-title span {
    color: var(--accent-orange);
}

.hero-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-logo-large {
    width: 320px;
    max-width: 90%;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3)) brightness(1.1);
    animation: floatImage 4s ease-in-out infinite;
}

/* ==========================================================================
   Sección Servicios (Cards)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(6, 106, 171, 0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(45, 180, 230, 0.2);
}

.service-card:hover::before {
    background: var(--accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(45, 180, 230, 0.08);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--bg-white);
    transform: scale(1.1) rotate(-3deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card:hover .card-link {
    color: var(--accent);
}

.service-card .card-link i {
    transition: var(--transition);
}

.service-card:hover .card-link i {
    transform: translateX(5px);
}

/* ==========================================================================
   Sección Nosotros & Estadísticas
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-visual:not(:has(.about-img-full)) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.about-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    object-fit: cover;
    height: 280px;
    width: 100%;
}

.about-img:nth-child(even) {
    transform: translateY(20px);
}

.about-visual:hover .about-img {
    transform: translateY(0);
}

.about-img-full {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px rgba(6, 106, 171, 0.12);
    border: 1px solid rgba(6, 106, 171, 0.08);
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.about-visual:hover .about-img-full {
    transform: translateY(-5px);
    box-shadow: 0 25px 55px rgba(6, 106, 171, 0.18);
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(6, 106, 171, 0.08);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================================
   Sección Clientes
   ========================================================================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.client-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(6, 106, 171, 0.06);
    transition: var(--transition);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.client-card:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* ==========================================================================
   Páginas Internas - Cabeceras
   ========================================================================== */
.page-hero {
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--bg-white);
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 50px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.9) 0%, rgba(45, 180, 230, 0.8) 100%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero.hero-mantenimiento { background-image: url('../assets/mantenimiento_bg.png'); }
.page-hero.hero-reparacion { background-image: url('../assets/reparacion_bg.png'); }
.page-hero.hero-ozono { background-image: url('../assets/ozono_bg.png'); }
.page-hero.hero-productos { background-image: url('../assets/productos_bg.png'); }
.page-hero.hero-normativa { background-image: url('../assets/normativa_bg.png'); }
.page-hero.hero-apoyo-social { background-image: url('../assets/apoyo_social_bg.png'); }
.page-hero.hero-contacto { background-image: url('../assets/contacto_bg.png'); }

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.breadcrumb {
    display: inline-flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--accent-orange);
}

/* Estilos de grids para páginas de servicios */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.feature-box {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(6, 106, 171, 0.03);
    text-align: center;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-box-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 169, 68, 0.1);
    color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1.5rem;
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Estructura de contenido Mantenimiento */
.pricing-block {
    margin-top: 3.5rem;
}

.pricing-block-header {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-block-header h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-block-header h3 i {
    color: var(--primary);
}

.pricing-block-header p {
    font-size: 1rem;
    color: var(--text-muted);
}

.single-card-grid {
    display: flex !important;
    justify-content: center;
    margin-top: 2rem !important;
}

.single-card-grid .price-card {
    max-width: 550px;
    width: 100%;
}

.price-feature-highlight {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: var(--primary);
    border-left: 3px solid var(--accent);
    margin-top: 0.5rem;
}

.price-feature-highlight i {
    color: var(--accent) !important;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.price-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 3.5rem 2rem 2.5rem;
    box-shadow: 0 12px 30px rgba(6, 106, 171, 0.06);
    border: 1px solid rgba(6, 106, 171, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(6, 106, 171, 0.14);
}

.price-card.featured {
    border: 2px solid var(--accent-orange);
}

.price-card.card-basic { border-top: 5px solid var(--accent-light); }
.price-card.card-eco { border-top: 5px solid var(--accent-orange); }
.price-card.card-norma { border-top: 5px solid var(--primary); }
.price-card.card-lab { border-top: 5px solid var(--text-dark); }

.price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: var(--bg-white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 800;
}

.price-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.price-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(6, 106, 171, 0.08);
    padding-bottom: 1rem;
}

.price-val span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.price-features li {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text-dark);
}

.price-features li i {
    margin-top: 0.2rem;
    font-size: 0.85rem;
}

.price-features li i.fa-check {
    color: #20b855;
}

.price-features li i.fa-info-circle {
    color: var(--text-muted);
}

.price-features li em {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Casos de reparación */
.case-studies {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.case-item {
    display: grid;
    grid-template-columns: 1.10fr 0.90fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.case-item.reverse {
    grid-template-columns: 0.90fr 1.10fr;
}

.case-visual img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.case-content h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.case-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Productos */
.products-tabs {
    margin-top: 4rem;
}

.product-category-section {
    margin-bottom: 4rem;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.product-category-section h3 {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-category-section h3 i {
    color: var(--accent);
}

.product-items-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-item {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--primary);
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-item i {
    color: var(--accent-orange);
}

/* ==========================================================================
   Sección Únete / Inscripción y Contacto
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
}

/* Información de contacto */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-image-wrapper {
    margin: 2.5rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(6, 106, 171, 0.1);
    border: 1px solid rgba(6, 106, 171, 0.08);
}

.contact-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.contact-image-wrapper:hover .contact-image {
    transform: scale(1.05);
}

/* Enlaces Sociales Destacados */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.social-btn.btn-whatsapp {
    background-color: var(--accent-green);
}

.social-btn.btn-whatsapp:hover {
    background-color: #20b855;
    transform: translateY(-2px);
}

.social-btn.btn-maps {
    background-color: var(--primary);
}

.social-btn.btn-maps:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Formulario */
.section-contacto {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.form-container {
    background: var(--bg-white);
    padding: 3.5rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(6, 106, 171, 0.12);
    border: 1px solid rgba(6, 106, 171, 0.08);
    border-top: 6px solid var(--primary);
    transition: var(--transition);
}

.form-container:hover {
    box-shadow: 0 35px 70px rgba(6, 106, 171, 0.18);
    transform: translateY(-4px);
}

.form-container h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-container p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(6, 106, 171, 0.12);
    background-color: #fafbfc;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-white);
    box-shadow: 0 0 10px rgba(45, 180, 230, 0.15);
}

textarea.form-control {
    height: 130px;
    resize: vertical;
}

/* Checkboxes */
.form-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
    user-select: none;
    transition: var(--transition);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-item:hover {
    color: var(--primary);
}

.form-btn-area {
    margin-top: 1.5rem;
    text-align: right;
}

.form-container button[type="submit"] {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(6, 106, 171, 0.25);
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.form-container button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 20px rgba(6, 106, 171, 0.35);
    transform: translateY(-2px);
}

.form-container button[type="submit"] i {
    font-size: 1.25rem;
}

/* ==========================================================================
   Sección Mapa / Ubicación
   ========================================================================== */
.map-section {
    height: 450px;
    width: 100%;
    position: relative;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding-top: 5rem;
    border-top: 5px solid var(--accent);
}

.footer-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(225, 231, 240, 0.7);
}

.footer-title {
    font-size: 1.15rem;
    color: var(--bg-white);
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(225, 231, 240, 0.7);
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.footer-contact-info li {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: rgba(225, 231, 240, 0.7);
}

.footer-contact-info li i {
    color: var(--accent);
    margin-top: 0.25rem;
}

.footer-contact-info li a {
    color: var(--bg-white);
    font-weight: 700;
}

.footer-contact-info li a:hover {
    color: var(--accent);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-socials .social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-socials .social-icon:hover {
    transform: translateY(-3px);
}

.footer-socials .social-icon.whatsapp:hover {
    background-color: var(--accent-green);
}

.footer-socials .social-icon.maps:hover {
    background-color: var(--accent);
}

/* Acreditaciones */
.accreditations-list li {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(225, 231, 240, 0.7);
}

.accreditations-list li i {
    color: var(--accent);
    margin-top: 0.25rem;
}

/* Subvencion */
.footer-subvencion {
    background-color: rgba(0, 8, 29, 0.8);
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subvencion-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(225, 231, 240, 0.55);
}

.subvencion-container i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

/* Footer Bottom */
.footer-bottom {
    background-color: rgba(0, 8, 29, 0.9);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(225, 231, 240, 0.45);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content .credits {
    color: rgba(225, 231, 240, 0.65);
}

.footer-legal-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(225, 231, 240, 0.55);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--accent);
}

.footer-legal-links span {
    color: rgba(225, 231, 240, 0.2);
}

/* ==========================================================================
   Animaciones & Efectos
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Intersection Observer Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Diseño Responsivo (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-title {
        font-size: 3rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .case-item, .case-item.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .page-hero {
        height: 380px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --header-height-shrink: 70px;
    }
    .section {
        padding: 4rem 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Responsive Menu Overlay */
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-white);
        transform: translateX(-100%);
        transition: var(--transition);
        border-top: 1px solid rgba(6, 106, 171, 0.08);
        padding: 3rem 1.5rem;
        z-index: 99;
    }
    
    .header-wrapper.shrink .main-nav {
        top: var(--header-height-shrink);
        height: calc(100vh - var(--header-height-shrink));
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.15rem;
        display: block;
        padding: 0.75rem 0;
    }
    
    .btn-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Toggle Hamburger Animation */
    .mobile-menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .form-container {
        padding: 2rem 1.5rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group-full {
        grid-column: span 1;
    }
    .stats-bar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    body {
        padding-top: var(--header-height);
    }
    
    .header-topbar {
        display: none;
    }
        .page-hero {
        height: 280px;
    }
}

/* ==========================================================================
   Sección de Clientes / Socios (Logos sobre fondo oscuro)
   ========================================================================== */
.clients-section {
    padding: 6rem 0;
    background-color: var(--primary-dark);
    background-image: url('../assets/clientes-bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
}

.clients-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 77, 124, 0.92) 0%, rgba(6, 106, 171, 0.88) 100%);
    pointer-events: none;
}

.clients-section .container {
    position: relative;
    z-index: 1;
}

.clients-section .section-tag::before {
    background-color: #7ec8e3;
}

.clients-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    backdrop-filter: blur(6px);
    transition: var(--transition);
    cursor: default;
}

.client-logo-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(45, 180, 230, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(45, 180, 230, 0.25);
}

.client-logo-item img {
    max-width: 160px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s ease;
    display: block;
    margin: 0 auto;
}

.client-logo-item:hover img {
    opacity: 1;
}

@media (max-width: 768px) {
    .clients-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .client-logo-item {
        padding: 1rem 1.25rem;
    }
    .client-logo-item img {
        max-width: 120px;
        max-height: 55px;
    }
}
