/*
 * JVG Distribuidora Médica - Hoja de Estilos Principal v5.0 (Revisión de Paleta y Tipografía)
 * Paleta: #606060, #124972, #1c69af, #26a7be, #79cfd8
 * Fuente: Montserrat
 */

/* ==========================================================================
   1. Variables Globales y Configuración Base
   ========================================================================== */

:root {
    /* Paleta Principal (Cliente) */
    --primary-color: #1c69af;       /* Azul Principal */
    --secondary-color: #124972;     /* Azul Oscuro (Para fondos, hovers y títulos) */
    --accent-color: #26a7be;        /* Turquesa (Para acentos y llamadas a la acción) */
    --accent-color-light: #79cfd8;  /* Azul Claro/Cian (Para detalles sutiles y fondos) */
    
    /* Tonos Neutros y de Texto (Cliente) */
    --text-color: #606060;          /* Gris Principal (Para párrafos y texto general) */
    --text-color-headings: #124972; /* Azul Oscuro (Para todos los títulos, mayor impacto) */
    --text-color-light: #888;       /* Un gris más claro para texto secundario */

    /* Colores Base de UI */
    --background-dark: #124972;     /* Azul Oscuro (Header/Footer y secciones oscuras) */
    --text-on-dark: rgba(255, 255, 255, 0.9);
    --text-on-dark-strong: #FFFFFF;
    --background-light: #f8f9fa;    /* Un blanco hueso muy sutil */
    --background-subtle: #f2fafa;   /* Fondo muy claro con un toque de cian */
    --white: #ffffff;
    --border-color: #dee2e6;
    --form-border-focus: rgba(28, 105, 175, 0.5); /* Basado en el --primary-color */

    /* Tipografía (Unificada a Montserrat) */
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Layout y Espaciado (Sin cambios) */
    --container-width: 90%;
    --container-max-width: 1200px;
    --section-padding: 100px 0;
    --section-padding-sm: 80px 0;
    --header-height-desktop: 105px;
    --header-height-mobile: 80px;

    /* Estilos de UI (Sin cambios) */
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --card-hover-lift: translateY(-8px);
    --border-radius-sm: 5px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-pill: 50px;

    /* Colores Externos (Sin cambios) */
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #128C7E;
}

/* --- Estilos Base y Reset --- */
*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.7;
    box-sizing: border-box;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-weight: 400; /* Peso base para el cuerpo */
}

html, body {
    overflow-x: hidden;
}

main {
    padding-top: var(--header-height-desktop);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--secondary-color);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color-headings); /* Títulos ahora usan el azul oscuro */
    margin: 0 0 0.7em 0;
    font-weight: 700; /* Peso fuerte para títulos */
    line-height: 1.3;
}
h1 { font-size: 3em; font-weight: 800; }
h2 { font-size: 2.5em; position: relative; padding-bottom: 20px; margin-bottom: 30px; }
h3 { font-size: 1.6em; }
h4 { font-size: 1.4em; font-weight: 600; }

p {
    margin: 0 0 1em 0;
    color: var(--text-color); /* Párrafos usan el gris principal */
    font-size: 1.1em;
}
p.lead {
    font-size: 1.25em;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 25px;
}

/* Línea decorativa para títulos h2 con la nueva paleta */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); /* Degradado de azul a turquesa */
    border-radius: 2px;
}
/* Alineación a la izquierda para contextos específicos */
.text-left h2::after, .about-content h2::after, .contact-info h2::after {
    left: 0;
    transform: translateX(0);
}


/* ==========================================================================
   2. Clases de Utilidad
   ========================================================================== */
.container { width: var(--container-width); max-width: var(--container-max-width); margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.py-section { padding: var(--section-padding); }
.py-section-sm { padding: var(--section-padding-sm); }
.bg-light { background-color: var(--background-light); }
.bg-subtle { background-color: var(--background-subtle); } /* Fondo cian muy claro */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }


/* ==========================================================================
   3. Componentes Reutilizables (Botones, etc.)
   ========================================================================== */

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius-pill);
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.btn-primary { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.btn-primary:hover { background-color: var(--secondary-color); border-color: var(--secondary-color); }
.btn-light { background-color: var(--white); color: var(--primary-color); border-color: var(--white); }
.btn-light:hover { background-color: rgba(255, 255, 255, 0.9); color: var(--secondary-color); }
.btn-outline-light { background-color: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background-color: var(--white); color: var(--primary-color); }
.btn-large { padding: 15px 40px; font-size: 1.1em; }
.btn-small { padding: 8px 20px; font-size: 0.9em; }

/* --- Encabezado de Sección --- */
.section-header {
    max-width: 850px;
    margin: 0 auto 60px auto;
}
.section-header h2 {
    margin-bottom: 15px;
}
.section-header p {
    font-size: 1.2em;
    color: var(--text-color); /* Usar gris principal en lugar de gris claro */
    line-height: 1.6;
    margin-bottom: 0;
}


/* ==========================================================================
   4. Estructura Principal (Header, Main, Footer)
   ========================================================================== */

/* --- Header --- */
.header {
    background-color: var(--background-dark); /* Azul Oscuro */
    padding: 15px 0;
    height: var(--header-height-desktop);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
    transition: padding 0.3s ease, height 0.3s ease;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 70px; width: auto; transition: height 0.3s ease; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav ul li { margin-left: 35px; }
.nav ul li a {
    color: var(--text-on-dark);
    font-weight: 500;
    font-family: var(--font-heading);
    padding: 10px 0; 
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}
.nav ul li a:hover {
    color: var(--text-on-dark-strong);
    transform: translateY(-3px); 
}
.nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color); /* Turquesa para la línea activa */
    border-radius: 2px;
    transform: scaleX(0); 
    transform-origin: center; 
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav ul li a:hover::after,
.nav ul li a.active::after {
    transform: scaleX(1); 
}
.nav ul li a.active {
    color: var(--text-on-dark-strong);
    font-weight: 700;
}
.contact-header-btn { margin-left: 20px; }
.menu-toggle { display: none; font-size: 1.8em; color: var(--text-on-dark-strong); cursor: pointer; z-index: 1001; }

/* --- Footer --- */
.footer {
    background-color: var(--background-dark); /* Azul Oscuro */
    color: var(--text-on-dark);
    padding: 80px 0 30px;
    font-size: 0.95em;
    border-top: 4px solid var(--primary-color); /* Azul principal */
}
.footer .container { display: flex; flex-direction: column; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.footer-logo { flex: 1; min-width: 250px; max-width: 300px; }
.footer-logo img { height: 100px; width: auto; }
.footer-nav, .footer-contact { flex: 1; min-width: 200px; }
.footer h4 { color: var(--text-on-dark-strong); margin-bottom: 20px; font-size: 1.3em; font-weight: 600; font-family: var(--font-heading); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a, .footer-contact a { color: inherit; transition: color 0.3s ease; }
.footer-contact p { display: flex; align-items: flex-start; color: inherit; }
.footer-contact p i { margin-right: 15px; color: var(--accent-color); width: 20px; text-align: center; margin-top: 4px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--text-on-dark-strong); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; margin-top: 30px; text-align: center; }
.footer-bottom p { font-size: 0.9em; color: rgba(255, 255, 255, 0.7); margin: 0; }


/* ==========================================================================
   5. Secciones de Página (Revisadas con la nueva paleta)
   ========================================================================== */

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: calc(100vh - var(--header-height-desktop));
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height-desktop));
}
.hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background: url('../img/hero-bg.png') center/cover no-repeat;
}
.hero-background::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Gradiente con la nueva paleta */
    background: linear-gradient(45deg, rgba(18, 73, 114, 0.85), rgba(28, 105, 175, 0.75));
    z-index: 2;
}
.hero-section .container { position: relative; z-index: 3; }
.hero-content h1 { color: var(--white); font-size: 4em; margin-bottom: 20px; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-content h2 { color: rgba(255, 255, 255, 0.95); font-size: 2em; font-weight: 400; padding-bottom: 0; margin-bottom: 30px; text-shadow: 1px 1px 5px rgba(0,0,0,0.3); }
.hero-content h2::after { display: none; }
.hero-content p { font-size: 1.3em; color: var(--white); max-width: 900px; margin: 0 auto 40px auto; font-weight: 300; }
.hero-buttons-grid { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.hero-buttons-grid .btn { display: inline-flex; align-items: center; gap: 10px; }

/* --- About Section --- */
.about-section .container { display: flex; flex-wrap: wrap; align-items: center; gap: 60px; }
.about-image, .about-content { flex: 1; min-width: 300px; }
.about-image img { border-radius: var(--border-radius-lg); box-shadow: var(--hover-shadow); border: 8px solid var(--white); }
.about-image::before {
    content: '';
    position: absolute;
    top: -30px; left: -30px;
    width: 80%; height: 80%;
    /* Gradiente decorativo con la nueva paleta */
    background: linear-gradient(135deg, rgba(28, 105, 175, 0.1), rgba(38, 167, 190, 0.1));
    border-radius: var(--border-radius-lg);
    z-index: -1;
    transition: all 0.4s ease;
}
.about-section:hover .about-image::before { transform: rotate(-5deg) scale(1.05); }
.about-content h2 { font-size: 2.8em; }
.about-content h4 { color: var(--secondary-color); }

/* --- Productos Destacados (Elegante) --- */
.product-grid-elegant { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; }
.product-card-elegant {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.product-card-elegant:hover { transform: var(--card-hover-lift); box-shadow: var(--hover-shadow); }
.product-card-image { position: relative; height: 250px; background-color: var(--background-subtle); overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.product-card-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(28, 105, 175, 0.8), rgba(18, 73, 114, 0.5));
    display: flex; justify-content: center; align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.product-card-overlay i { font-size: 3.5em; color: var(--white); transform: scale(0.8); transition: transform 0.4s ease; }
.product-card-elegant:hover .product-card-overlay { opacity: 1; }
.product-card-elegant:hover .product-card-image img { transform: scale(1.1); }
.product-card-elegant:hover .product-card-overlay i { transform: scale(1); }
.product-card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-card-content h3 { color: var(--secondary-color); font-size: 1.5em; }
.product-card-content .btn { align-self: center; }

/* --- Carrusel de Clientes --- */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(var(--single-set-width)); }
}
.client-logos-section { padding-top: var(--section-padding-sm); padding-bottom: var(--section-padding-sm); }
.logo-carousel-container-fullwidth {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.logo-carousel-track { display: flex; width: var(--track-width); animation: scroll var(--animation-duration) linear infinite; }
.logo-carousel-container-fullwidth:hover .logo-carousel-track { animation-play-state: paused; }
.logo-slide { width: 320px; padding: 0 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.logo-slide img { height: 100px; object-fit: contain; filter: grayscale(100%) contrast(0.8); opacity: 0.65; transition: all 0.4s ease; }
.logo-slide:hover img { filter: grayscale(0%) contrast(1); opacity: 1; transform: scale(1.1); }

/* --- Sección de Contacto --- */
.contact-section .container { display: flex; flex-wrap: wrap; align-items: stretch; gap: 40px; }
.contact-info, .contact-map-form {
    flex: 1;
    min-width: 300px;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
}
.contact-info:hover, .contact-map-form:hover { box-shadow: var(--hover-shadow); }
.contact-info-dark {
    background: var(--background-dark);
    color: var(--text-on-dark);
}
.contact-info-dark h2 { color: var(--text-on-dark-strong); }
.contact-info-dark h2::after { background: linear-gradient(90deg, var(--white), var(--accent-color-light)); }
.contact-info-dark p, .contact-info-dark .contact-details p { color: var(--text-on-dark); }
.contact-info-dark .contact-details a { color: var(--accent-color-light); font-weight: 500; }
.contact-info-dark .contact-details a:hover { color: var(--white); text-decoration: underline; }
.contact-details p i.icon { color: var(--accent-color); font-size: 1.5em; width: 30px; text-align: center; margin-top: 4px; }
.contact-map-form { background-color: var(--white); border-top: 4px solid var(--primary-color); }
.contact-form h3 { font-size: 2.5em; text-align: left; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1.1em;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--background-subtle);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--form-border-focus);
    background-color: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form button { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }

/* Mensajes de Estado del Formulario */
.status-message {
    padding: 15px 25px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    display: none;
    max-width: 700px;
    margin: 40px auto 0 auto;
    box-shadow: var(--card-shadow);
    font-size: 1.1em;
    border-left: 5px solid;
}
.status-success { background-color: #d4edda; color: #155724; border-color: #28a745; }
.status-error { background-color: #f8d7da; color: #721c24; border-color: #dc3545; }


/* ==========================================================================
   6. Componentes Específicos
   ========================================================================== */

/* --- Grids de Beneficios (Misión/Visión) --- */
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
.benefit-item {
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    text-align: center;
    border-top: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    display: flex; flex-direction: column; align-items: center;
}
.benefit-item:hover { transform: var(--card-hover-lift); box-shadow: var(--hover-shadow); border-top-color: var(--primary-color); }
.benefit-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
    width: 90px; height: 90px;
    background-color: var(--background-subtle);
    border-radius: 50%;
    display: inline-flex; justify-content: center; align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}
.benefit-item:hover .benefit-icon { background-color: var(--primary-color); color: var(--white); }
.benefit-item h3 { font-size: 1.4em; margin-bottom: 15px; transition: color 0.3s ease; }
.benefit-item:hover h3 { color: var(--primary-color); }

/* --- Botón Flotante de WhatsApp (Sin cambios) --- */
.whatsapp-float {
    position: fixed;
    width: 60px; height: 60px;
    bottom: 30px; right: 30px;
    background-color: var(--whatsapp-green);
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 1020;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--whatsapp-green-dark);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

/* --- Sección Diferencial Comercial --- */
.diferencial-section { background-color: #fff; }
.diferencial-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}
.diferencial-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 30px;
}
.diferencial-content p { font-size: 17px; line-height: 1.7; margin-bottom: 1.5em; }
.diferencial-content p:last-of-type { margin-bottom: 0; }
.diferencial-content strong { color: var(--secondary-color); font-weight: 700; }
.diferencial-timeline { position: relative; padding-left: 45px; }
.diferencial-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-image: linear-gradient(to bottom, #cccccc 50%, transparent 50%);
    background-size: 2px 8px;
    background-repeat: repeat-y;
}
.stat-item { position: relative; margin-bottom: 40px; }
.stat-item:last-child { margin-bottom: 0; }
.stat-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 9px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color-light); /* Cian claro */
    z-index: 2;
}
.stat-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color-light); /* Cian claro */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.stat-value, .stat-value-small {
    margin: 0;
    padding: 0;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}
.stat-value { font-size: clamp(3.5rem, 8vw, 4.5rem); }
.stat-value-small { font-size: 1.5rem; font-weight: 600; }

/* --- Sección Entrega y Distribución --- */
.distribucion-final-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: stretch;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.distribucion-final-content {
    background-color: var(--accent-color); /* Turquesa */
    color: #fff;
    padding: 60px;
    overflow-wrap: break-word;
    word-wrap: break-word; 
}
.distribucion-final-content h2 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 25px 0;
    color: #fff;
}
.distribucion-final-content .decorator-line {
    height: 5px;
    width: 120px;
    background: var(--white);
    margin-bottom: 30px;
    border-radius: 5px;
}
.distribucion-final-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 1.5em;
    max-width: 550px;
    color: #fff;
}
.distribucion-final-content .icon-wrapper { display: flex; align-items: center; gap: 20px; margin-top: 40px; }
.distribucion-final-content .icon-wrapper .line { height: 2px; width: 80px; background-color: #fff; }
.distribucion-final-content .icon-wrapper i { font-size: 38px; line-height: 1; }
.distribucion-final-image-wrapper { display: flex; align-items: center; justify-content: center; padding: 40px; }
.distribucion-final-image-wrapper .image-card { background: #fff; padding: 10px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); border: 1px solid #f0f0f0; max-width: 100%; }
.distribucion-final-image-wrapper .image-card img { width: 100%; display: block; border-radius: 6px; }

/* ==========================================================================
   7. Media Queries (Diseño Responsivo)
   ========================================================================== */
@media (max-width: 992px) {
    main { padding-top: var(--header-height-mobile); }
    .header { height: var(--header-height-mobile); }
    .logo img { height: 50px; }
    
    /* ===== INICIO DE LA CORRECCIÓN ===== */
    .hero-section {
        /* Se anula el cálculo anterior para que no reste la altura del header */
        height: 100vh;
        /* Se añade padding superior igual a la altura del header móvil */
        padding-top: var(--header-height-mobile);
        /* Se anula el margen negativo */
        margin-top: 0;
        /* Se ajusta el box-sizing para que el padding no incremente la altura total */
        box-sizing: border-box; 
    }
    /* ===== FIN DE LA CORRECCIÓN ===== */

    h1 { font-size: 2.5em; }
    h2 { font-size: 2.2em; }
    .py-section { padding: var(--section-padding-sm); }
    .about-section .container { flex-direction: column; text-align: center; }
    .about-content { order: 2; }
    .about-image { order: 1; margin-bottom: 40px; }
    .about-image::before { left: 50%; top: -20px; transform: translateX(-50%); width: 90%; }
    .text-left h2::after, .about-content h2::after, .contact-info h2::after { left: 50%; transform: translateX(-50%); }
    .contact-section .container { flex-direction: column; }
    .diferencial-grid, .distribucion-final-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .contact-header-btn { display: none; }
    .nav {
        position: fixed;
        top: var(--header-height-mobile);
        left: 0; width: 100%;
        background-color: var(--background-dark);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav.active { max-height: 400px; }
    .nav ul { flex-direction: column; align-items: center; padding: 15px 0; }
    .nav ul li { margin: 8px 0; width: 90%; text-align: center; }
    .nav ul li a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); transform: none !important; }
    .nav ul li:last-child a { border-bottom: none; }
    .nav ul li a::after { display: none; }
    
    .hero-section {
        height: auto;
        min-height: 100vh;
    }

    .hero-content h1 { font-size: 2.5em; }
    .hero-content h2 { font-size: 1.4em; }
    .product-grid-elegant { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-contact p { justify-content: center; }
    .footer-logo { align-self: center; margin-bottom: 20px; }

    .distribucion-final-content {
        padding: 40px 25px; 
    }
    .distribucion-final-image-wrapper {
        padding: 25px; 
    }
    .distribucion-final-content h2 {
         font-size: 1.7rem; 
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.1em; }
    .hero-content h2 { font-size: 1.2em; }
    h2 { font-size: 1.6em; }
    .contact-info, .contact-map-form { padding: 30px 25px; }
    .contact-info h2, .contact-form h3 { font-size: 1.8em; }
}


/* ==================================================
   DISEÑOS DE PÁGINAS DE CATEGORÍA
   ================================================== */
/* --- Hero de Categoría --- */
.category-hero-premium {
    padding: 5rem 0;
    background: linear-gradient(45deg, rgba(18, 73, 114, 0.95), rgba(28, 105, 175, 0.9)), url('../img/background-texture.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
}
.category-hero-premium h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: none;
    position: relative;
    padding-bottom: 1.5rem;
}
.category-hero-premium h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--accent-color); /* Turquesa */
    border-radius: 2px;
}
.category-hero-premium .lead {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 750px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Listado de Productos --- */
.products-list-premium { background-color: var(--background-light); }
.back-link-wrapper { text-align: center; margin-bottom: 4rem; }
.back-to-products-link { font-weight: 600; }
.product-listing-area { display: flex; flex-direction: column; gap: 5rem; }
.product-card-premium {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(18, 73, 114, 0.08);
    padding: 2rem;
    overflow: hidden;
}
.product-image-premium {
    grid-column: span 12;
    background-color: var(--background-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    height: 400px;
}
.product-image-premium img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.product-card-premium:hover .product-image-premium img { transform: scale(1.04); }
.product-content-premium { grid-column: span 12; }
.product-title-premium { font-size: 2.2rem; }
.product-description-premium { font-size: 1.05rem; line-height: 1.8; margin-bottom: 2rem; }
.specifications-wrapper h4 { font-weight: 600; font-size: 1.1rem; margin-bottom: 1rem; }
.specifications-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.spec-item {
    display: flex;
    align-items: center;
    background: var(--background-subtle);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}
.spec-item i { font-size: 1.2rem; color: var(--primary-color); margin-right: 12px; width: 20px; text-align: center; }
.spec-item span { font-size: 0.95rem; font-weight: 500; color: var(--secondary-color); }
.cta-wrapper { margin-top: auto; }

/* Layout Asimétrico para Desktop */
@media (min-width: 992px) {
    .product-card-premium { padding: 3rem; gap: 4rem; }
    .product-image-premium { grid-column: span 5; }
    .product-content-premium { grid-column: span 7; }
    .product-card-premium.layout-right .product-image-premium { grid-column: 8 / span 5; }
    .product-card-premium.layout-right .product-content-premium { grid-column: 1 / span 7; grid-row: 1; }
    .product-card-premium.layout-full-width .product-content-premium { grid-column: 1 / -1; }
}

/* --- Sección Liderazgo y Expansión (Categorías) --- */
.liderazgo-section {
    background: var(--background-dark);
    color: #ffffff;
    text-align: center;
}
.liderazgo-section h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 60px;
    color: var(--accent-color-light); /* Cian claro */
}
.liderazgo-section h2 span {
    display: block;
    font-weight: 400;
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}
.liderazgo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; text-align: left; }
.liderazgo-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.liderazgo-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25); }
.liderazgo-icon { font-size: 48px; color: var(--accent-color); margin-bottom: 20px; }
.liderazgo-item h3 { font-size: 22px; font-weight: 600; margin-bottom: 15px; color: #ffffff; }
.liderazgo-item p { font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 768px) { .liderazgo-grid { grid-template-columns: 1fr; gap: 30px; } }

/* =================================================================
   NOTA: ESTILO ROJO ELEGANTE PARA PRODUCTO DESTACADO (INTENCIONAL)
   ================================================================= */
/* Se mantiene el diseño rojo para este componente específico, ya que
   su propósito es romper la paleta de colores principal para crear
   un punto focal de máximo impacto visual. Cambiarlo a los colores
   principales le restaría efectividad como elemento "destacado". */
.product-grid-elegant {
    /* La regla original se restablece aquí para que el grid funcione como antes */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.product-grid-elegant .featured-product-wrapper {
    /* Esto asegura que el item destacado ocupe todo el ancho si está solo en una fila */
    grid-column: 1 / -1;
}
.featured-product-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: var(--border-radius-lg);
    min-height: 420px;
    padding: 40px;
    overflow: visible;
    color: var(--white);
    margin-top: 60px;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.4);
    transition: box-shadow 0.4s ease;
}
.featured-product-wrapper:hover {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 1), 0 10px 40px rgba(220, 53, 69, 0.3);
}
.featured-product-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #2c3e50, #1B263B);
    border-radius: inherit;
    box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
    z-index: 1;
}
.featured-product-wrapper:hover .featured-product-background { transform: scale(1.02); }
.featured-product-content { position: relative; z-index: 3; flex: 0 0 55%; padding-left: 20px; text-align: left; }
.featured-product-image {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.featured-product-image img { max-width: 100%; height: auto; filter: drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.3)); }
.featured-product-wrapper:hover .featured-product-image { transform: translateY(-50%) scale(1.1) rotate(2deg); }
.featured-badge-rojo {
    display: inline-flex; align-items: center; gap: 8px;
    background-color: #c82333; color: var(--white);
    padding: 10px 20px; border-radius: var(--border-radius-pill);
    font-size: 0.9em; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(139, 26, 37, 0.4);
}
.featured-badge-rojo i { color: #ffc107; }
.featured-product-content h2 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.featured-product-content h2::after { display: none; }
.featured-product-content p { font-size: 1.15em; font-weight: 400; color: rgba(255, 255, 255, 0.85); line-height: 1.7; max-width: 450px; margin-bottom: 35px; }
.featured-product-content .btn-light { font-weight: 700; box-shadow: 0 8px 15px rgba(0,0,0,0.15); transform: translateY(0); transition: all 0.3s ease; }
.featured-product-content .btn-light:hover { background-color: var(--white); color: #c82333; transform: translateY(-5px) scale(1.05); box-shadow: 0 12px 25px rgba(0,0,0,0.25); }
.featured-product-content .btn-light i { margin-left: 10px; transition: transform 0.3s ease; }
.featured-product-content .btn-light:hover i { transform: translateX(5px); }

/* --- Responsividad del Producto Destacado --- */
@media (max-width: 992px) {
    .featured-product-wrapper { flex-direction: column; padding-top: 150px; min-height: 580px; text-align: center; margin-top: 0; }
    .featured-product-image { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 70%; max-width: 320px; right: auto; }
    .featured-product-content { flex: 1; padding: 0 20px 20px 20px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .featured-product-content h2 { font-size: 3rem; }
}
@media (max-width: 480px) {
    .featured-product-wrapper { min-height: 520px; padding-top: 120px; }
    .featured-product-image { top: -50px; width: 80%; }
    .featured-product-content h2 { font-size: 2.5rem; }
}

/* --- MEJORA UX: TARJETA DE PRODUCTO TOTALMENTE CLICABLE --- */
.product-card-link-wrapper {
    display: block; text-decoration: none; color: inherit;
    border-radius: var(--border-radius-lg); /* Igual que la tarjeta interna */
    transition: all 0.3s ease;
}
.product-card-link-wrapper:hover {
    box-shadow: var(--hover-shadow);
    transform: var(--card-hover-lift);
}
.product-card-link-wrapper .product-card-elegant { transition: none; }
.product-card-link-wrapper:hover .product-card-content .btn {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}
.product-card-content .btn { transition: all 0.3s ease; }