/* =========================================
   VARIABLES Y RESET BÁSICO
   ========================================= */
:root {
    /* Paleta Premium Moderna */
    --primary-color: #0B1B3D; /* Azul marino profundo */
    --accent-color: #2DA7DF; /* Azul eléctrico vibrante */
    --accent-hover: #0066FF; /* Azul intenso para hover */
    --text-color: #2D3748; /* Gris oscuro elegante */
    --text-light: #718096; /* Gris texto secundario */
    --bg-light: #F7FAFC; /* Fondo muy suave (casi blanco) */
    --white: #ffffff;
    
    /* Tipografías */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    
    /* Sombras Glass y Modernas */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px rgba(11, 27, 61, 0.08);
    --shadow-glow: 0 10px 25px rgba(45, 167, 223, 0.4);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-padding-top: 110px; /* Evita que la cabecera sticky tape el contenido al hacer click en enlaces */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.05rem;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

/* =========================================
   ANIMACIONES BÁSICAS
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   BOTONES
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-phone {
    padding: 10px 24px;
    font-size: 1.05rem;
}

.btn-large {
    padding: 15px 28px;
    font-size: 1.1rem;
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background: #f8f9fa;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 15px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    color: white;
}

/* =========================================
   CABECERA (HEADER STICKY + GLASS)
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 20px 0;
    background-color: transparent;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo img {
    max-width: 220px;
    height: auto;
    display: block;
    transition: transform var(--transition-fast), filter var(--transition-normal);
}

.logo:hover img {
    transform: scale(1.02);
}



.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-text {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-heading);
    transition: color var(--transition-normal);
}



.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color var(--transition-fast);
}

.main-nav a:hover {
    color: var(--accent-color);
}





.main-nav .dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 220px;
    list-style: none;
    padding: 10px 0 !important;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all var(--transition-fast);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

.main-nav .dropdown:hover .dropdown-menu,
    .main-nav .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 24px;
    color: var(--text-color) !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.dropdown-menu a:hover {
    background-color: rgba(45, 167, 223, 0.05);
    color: var(--accent-color) !important;
    padding-left: 30px;
}

/* =========================================
   SECCIÓN PRINCIPAL (HERO)
   ========================================= */
.hero {
    position: relative;
    padding: 170px 0 130px;
    background: linear-gradient(145deg, #050D1F 0%, #0B1B3D 45%, #0D2460 100%);
    color: #ffffff;
    overflow: hidden;
}

/* Malla geométrica de fondo suave */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 167, 223, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 167, 223, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
}

/* Orbe de luz superior derecha - Oculto en light mode */
.hero::after {
    display: block;
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 167, 223, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Orbe de luz inferior izquierda - Oculto en light mode */
.hero-bg-animated {
    display: block;
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 167, 223, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 60px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    max-width: 640px;
}

/* Imagen del técnico con efecto glow y marco */
.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255,255,255,0.08),
        0 0 80px rgba(45, 167, 223, 0.2);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(5, 13, 31, 0.5) 100%
    );
    z-index: 1;
    border-radius: 24px;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Etiqueta flotante sobre la imagen */
.hero-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    background: rgba(5, 13, 31, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 167, 223, 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
}

.hero-image-badge strong {
    color: #53c4f7;
    font-size: 1.2rem;
    display: block;
    line-height: 1;
}

.hero-image-badge span {
    font-size: 0.75rem;
    opacity: 0.7;
    display: block;
}

.hero-points {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    list-style: none;
    margin: 20px 0 35px 0;
    padding: 0;
    font-size: 0.97rem;
    font-weight: 500;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.hero h1 {
    font-size: 3.2rem;
    color: #ffffff;
    margin: 20px 0 24px;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.hero .highlight {
    font-weight: 800;
    color: var(--accent-color);
    display: inline;
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.65;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(45, 167, 223, 0.12);
    color: #7de0ff;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(45, 167, 223, 0.25);
    box-shadow: 0 0 20px rgba(45, 167, 223, 0.1);
    text-transform: none;
}

.hero::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.08), transparent);
}

.hero-shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 2;
}

.hero-shape-divider svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 60px;
}

.hero-shape-divider .shape-fill {
    fill: var(--bg-light);
}

/* =========================================
   CARRUSEL DE MARCAS
   ========================================= */
.marcas-section {
    padding: 60px 0 40px;
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 48px;
}

.slider-marcas {
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slider-marcas::before,
.slider-marcas::after {
    background: linear-gradient(to right, var(--bg-light) 0%, rgba(247,250,252,0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 150px;
    z-index: 2;
}

.slider-marcas::after { right: 0; top: 0; transform: rotateZ(180deg); }
.slider-marcas::before { left: 0; top: 0; }

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(200px * 30);
    align-items: center;
}

.slider-marcas:hover .slide-track { animation-play-state: paused; }

.slide {
    height: 100px;
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 25px;
}

.slide img {
    width: 130px;
    height: 45px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: filter var(--transition-normal), transform var(--transition-normal);
}

.slide img:hover {
    transform: scale(1.05);
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 15)); }
}

/* =========================================
   SECCIÓN DE SERVICIOS (GLASSMORPHISM)
   ========================================= */
.servicios-section {
    padding: 60px 0 100px;
    background-color: var(--white);
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
}

.glass-card:hover::before {
    opacity: 1;
}

.icono-servicio {
    color: var(--accent-color);
    margin-bottom: 24px;
    background-color: rgba(45, 167, 223, 0.1);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-left: auto;
    margin-right: auto;
    transition: all var(--transition-normal);
}

.glass-card:hover .icono-servicio {
    transform: scale(1.1) rotate(5deg);
}

.tarjeta-servicio h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.servicio-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.servicio-lista li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.servicio-lista li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.servicio-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    height: 100%;
}

.servicio-card-link:hover .glass-card {
    transform: translateY(-8px);
    border-color: rgba(45, 167, 223, 0.3);
}

.service-link-text {
    display: block;
    margin-top: auto;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.servicio-card-link:hover .service-link-text {
    color: var(--primary-color);
}

.glass-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.glass-card p {
    font-size: 1rem;
    color: var(--text-light);
}

/* =========================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================= */
.faq-section {
    background-color: var(--white);
    padding: 100px 0;
}

.faq-contenedor {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: #e2e8f0;
}

.faq-item summary {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 24px;
    cursor: pointer;
    position: relative;
    list-style: none;
    transition: background-color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232DA7DF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform var(--transition-normal);
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-respuesta {
    padding: 0 24px 24px;
}

.faq-respuesta p {
    color: var(--text-light);
    line-height: 1.7;
}

/* =========================================
   ZONAS DE SERVICIO
   ========================================= */
.zonas-servicio {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.grid-localidades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.col-localidad {
    background: var(--white);
    padding: 24px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.col-localidad:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(11, 27, 61, 0.12);
}

.col-localidad ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.col-localidad li {
    margin: 0;
    padding: 0;
    border: none;
    position: static;
}

.col-localidad li a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 1.03rem;
    color: var(--primary-color);
    text-decoration: none;
    background: rgba(45, 167, 223, 0.08);
    border-radius: 14px;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.col-localidad li a:hover,
.col-localidad li a:focus {
    color: var(--accent-color);
    background: rgba(45, 167, 223, 0.17);
    border-color: rgba(45, 167, 223, 0.25);
}

.col-localidad li strong { color: var(--primary-color); font-weight: 700; }

.aviso-zonas {
    text-align: center;
    margin-top: 40px;
    font-size: 1rem;
    color: var(--text-light);
    background: rgba(45, 167, 223, 0.05);
    padding: 16px;
    border-radius: 8px;
    border: 1px dashed rgba(45, 167, 223, 0.3);
}

/* =========================================
   CTA FINAL
   ========================================= */
.cta-final {
    position: relative;
    background: #f4f8fc;
    color: var(--text-color);
    padding: 100px 0;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    box-shadow: inset 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.cta-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(45, 167, 223, 0.2) 0%, transparent 40%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-final .cta-wrapper {
    align-items: center;
    width: fit-content;
    margin: 0 auto;
}

.cta-final h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cta-final p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    opacity: 1;
}

/* =========================================
   PIE DE PÁGINA (FOOTER)
   ========================================= */
.site-footer {
    background-color: #050E24;
    color: #A0AEC0;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    padding-bottom: 60px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1) opacity(0.9);
}

.brand-col p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-contacto p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-contacto a {
    color: var(--white);
    font-weight: 600;
}

.nota-legal {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 24px;
    line-height: 1.5;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* =========================================
   WHATSAPP FLOTANTE
   ========================================= */
.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.whatsapp-flotante:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* =========================================
   RESPONSIVE (MÓVILES Y TABLETS)
   ========================================= */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn .icon-close {
    display: none;
}

.mobile-menu-btn.open .icon-hamburger {
    display: none;
}

.mobile-menu-btn.open .icon-close {
    display: inline-flex;
}

@media (max-width: 992px) {
    .site-header {
        background-color: var(--white);
        box-shadow: var(--shadow-sm);
    }
    
    /* El logo siempre oscuro en mvil porque el fondo es blanco */
    
    
    /* La hamburguesa siempre oscura en mvil */
    
    
    .logo img {
        max-height: 40px; /* Reducir tamaño del logo en móvil */
        width: auto;
    }
    
    .header-contact {
        display: none; /* Ocultar el número fijo en cabecera para hacer espacio al logo y hamburguesa */
    }

    .header-container {
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-btn {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 0;
        z-index: 1000;
        border-top: 1px solid #edf2f7;
    }
    
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav > ul > li > a {
        color: var(--text-color) !important;
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid #edf2f7;
    }

    .main-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        display: none;
        background: #f8fafc;
    }
    
    .main-nav .dropdown:hover .dropdown-menu,
    .main-nav .dropdown:active .dropdown-menu {
        display: block;
    }

    .hero h1 {
    font-size: 3.2rem;
    color: #ffffff;
    margin: 20px 0 24px;
    letter-spacing: -1.5px;
    line-height: 1.15;
}
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-text {
        margin: 0 auto;
    }
    .hero-cta-group {
        justify-content: center;
    }
    .micro-benefits {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-header {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        padding: 15px 0;
        box-shadow: var(--shadow-sm);
    }
    
    .header-container { justify-content: space-between; align-items: center; }
    .contact-text { display: none; }
    
    .hero { padding: 140px 0 80px; }
    .hero h1 {
    font-size: 3.2rem;
    color: #ffffff;
    margin: 20px 0 24px;
    letter-spacing: -1.5px;
    line-height: 1.15;
}
    
    .section-title { font-size: 1.8rem; }
    
    .cta-final h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
    
    /* En mvil no hay hover, por lo que mostramos los logos a todo color */
    .slide img {
        filter: grayscale(0%) opacity(1);
    }
    
    .whatsapp-flotante {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-flotante svg { width: 28px; height: 28px; }
}

/* =========================================
   ANIMACIONES NATIVAS
   =========================================
@keyframes fadeInUpNative {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-load {
    animation: fadeInUpNative 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-load-delayed {
    opacity: 0;
    animation: fadeInUpNative 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

/* ==========================================================================
   Banner de Cookies
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show {
    bottom: 0;
}
.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 80%;
    color: rgba(255,255,255,0.9);
}
.cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
}
.cookie-banner button {
    padding: 10px 24px;
    font-size: 0.95rem;
    white-space: nowrap;
    margin-left: 20px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .cookie-banner p {
        max-width: 100%;
        margin-bottom: 15px;
    }
    .cookie-banner button {
        width: 100%;
        margin-left: 0;
    }
}
.cookie-buttons {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}
.cookie-banner button {
    margin-left: 0; /* Reset previous margin */
}
.btn-reject {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius);
    padding: 10px 24px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.btn-reject:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
@media (max-width: 768px) {
    .cookie-buttons {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        gap: 10px;
    }
}


/* ==========================================================================
   ASISTENTE PREDIAGNÓSTICO
   ========================================================================== */
.prediagnostico-section { padding: 80px 0; }
.prediagnostico-card {
    background: #f4f8fc;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    padding: 35px;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 20px;
    text-align: left;
}
.wizard-step { display: none; animation: fadeInUp 0.4s ease forwards; }
.wizard-step.active { display: block; }
.wizard-options { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 30px; text-align: left; }
.wizard-options.grid-3 { grid-template-columns: repeat(3, 1fr); }
.wizard-btn { 
    background: #f8fafc; border: 2px solid #e2e8f0; padding: 20px 24px; border-radius: 12px;
    font-size: 1.05rem; font-weight: 600; color: var(--primary-color); cursor: pointer;
    transition: all var(--transition-fast); text-align: center; display: block; width: 100%;
}
.wizard-btn:hover { border-color: var(--accent-color); color: var(--accent-color); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-back { background: transparent; border: none; color: var(--text-light); margin-top: 25px; cursor: pointer; text-decoration: underline; font-size: 0.95rem; font-family: var(--font-main); }
.resumen-box { background: rgba(255,255,255,0.5); border: 1px dashed var(--accent-color); padding: 20px; border-radius: 12px; margin: 25px auto; text-align: left; max-width: 400px; }
.resumen-box p { margin-bottom: 8px; color: var(--primary-color); }
.resumen-box p:last-child { margin-bottom: 0; }
@media (max-width: 576px) {
    .wizard-options, .wizard-options.grid-3 { grid-template-columns: 1fr; gap: 12px; }
    .prediagnostico-card {
    background: #f4f8fc;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    padding: 35px;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 20px;
    text-align: left;
}
    .wizard-btn { padding: 16px 20px; }
}

/* ==========================================================================
   BARRA STICKY MÓVIL
   ========================================================================== */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
    z-index: 9998; /* Just below cookie banner */
}
.mobile-sticky-bar a {
    flex: 1;
    text-align: center;
    padding: 16px 10px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
}
.ms-call {
    background: var(--accent-color);
    color: #fff;
    animation: callPulse 2.2s ease-out infinite;
}
.ms-call:hover {
    animation: none;
    background: #1a9fd4;
}
.ms-wa { background: #25D366; color: #fff; }

@media (max-width: 768px) {
    .mobile-sticky-bar { display: flex; }
    .whatsapp-flotante { display: none !important; }
    /* Ajustar el banner de cookies para que no tape la barra */
    .cookie-banner.show { bottom: 56px; }
}

/* ==========================================================================
   BLOQUES DE CONFIANZA Y RESEÑAS
   ========================================================================== */
.live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 167, 223, 0.1);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(45, 167, 223, 0.2);
}
.status-dot {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(37, 211, 102, 0.4);
    animation: pulseStatus 2s infinite;
}
@keyframes pulseStatus {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.reviews-section { padding: 80px 0; background: var(--bg-light); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.review-card { padding: 30px; }
.review-stars { color: #F6AD55; margin-bottom: 15px; display: flex; gap: 2px; }
.review-text { font-style: italic; color: var(--text-color); margin-bottom: 20px; line-height: 1.6; }
.review-author { display: flex; align-items: center; gap: 12px; }
.author-info h4 { font-size: 1rem; color: var(--primary-color); margin-bottom: 2px; }
.author-info span { font-size: 0.85rem; color: var(--text-light); }


/* Hero urgency line */
.hero-urgency {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 15px;
}

/* ============================================================
   HERO RESPONSIVE - Mejorado
   ============================================================ */
@media (max-width: 900px) {
    .hero { padding: 130px 0 100px; }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        letter-spacing: -1px;
        font-weight: 700;
    }
    .hero-image-wrapper { display: none; }
}

@media (max-width: 600px) {
    .hero { padding: 110px 0 80px; }
    .hero h1 {
        font-size: 2.4rem;
        line-height: 1.2;
        letter-spacing: -1px;
        font-weight: 700;
    }
    .hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.65;
}
    .micro-benefits { gap: 8px; }
    .hero-cta-group { flex-direction: column; align-items: stretch; }
    .hero-cta-group a { text-align: center; justify-content: center; }
}

/* ============================================================
   PULSO EN BOTÓN DE LLAMADA (hero CTA)
   ============================================================ */
@keyframes callPulse {
    0%   { box-shadow: 0 0 0 0 rgba(45, 167, 223, 0.55), var(--shadow-glow); }
    60%  { box-shadow: 0 0 0 12px rgba(45, 167, 223, 0), var(--shadow-glow); }
    100% { box-shadow: 0 0 0 0 rgba(45, 167, 223, 0), var(--shadow-glow); }
}

.hero .btn-primary.shadow-glow {
    animation: callPulse 2.2s ease-out infinite;
}

.hero .btn-primary.shadow-glow:hover {
    animation: none;
    transform: translateY(-2px);
    box-shadow: 0 0 0 0 transparent, var(--shadow-glow);
}

/* ============================================================
   AVATAR CIRCULAR DEL TECNICO - solo movil
   ============================================================ */
.hero-mobile-avatar {
    display: none; /* oculto en desktop */
}

@media (max-width: 900px) {
    .hero-mobile-avatar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 22px;
    }

    .hero-mobile-avatar img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        object-position: top center;
        border: 3px solid rgba(45, 167, 223, 0.7);
        box-shadow:
            0 0 0 6px rgba(45, 167, 223, 0.12),
            0 0 0 12px rgba(45, 167, 223, 0.05),
            0 12px 30px rgba(0, 0, 0, 0.4);
        flex-shrink: 0;
        animation: avatarGlow 3s ease-in-out infinite alternate;
    }

    @keyframes avatarGlow {
        0%   { box-shadow: 0 0 0 6px rgba(45,167,223,0.12), 0 0 0 12px rgba(45,167,223,0.05), 0 12px 30px rgba(0,0,0,0.4); }
        100% { box-shadow: 0 0 0 8px rgba(45,167,223,0.22), 0 0 0 16px rgba(45,167,223,0.08), 0 12px 30px rgba(0,0,0,0.4); }
    }

    .hero-mobile-avatar-badge {
        font-size: 0.82rem;
        font-weight: 600;
        color: #7de0ff;
        background: rgba(45, 167, 223, 0.1);
        border: 1px solid rgba(45, 167, 223, 0.25);
        border-radius: 50px;
        padding: 5px 14px;
        display: inline-block;
    }

    /* Ocultar el badge grande en movil */
    .hero-text > .badge {
        display: none;
    }

    /* Centrar el contenido del hero en movil */
    .hero-content {
        text-align: center;
    }

    .micro-benefits {
        align-items: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-urgency {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 15px;
}
}

/* Grid Marcas (Para pagina marcas.html) */
.grid-marcas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.marca-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border: 1px solid rgba(0,0,0,0.04);
    min-height: 100px;
}
.marca-card img {
    width: 110px;
    height: 35px;
    object-fit: contain;
    filter: grayscale(10%) contrast(1.1);
    transition: all var(--transition-fast);
}
.marca-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(45, 167, 223, 0.3);
}
.marca-card:hover img {
    filter: none;
    transform: scale(1.05);
}
.card-otra {
    flex-direction: column;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    border: 2px dashed rgba(45, 167, 223, 0.3);
}
.card-otra strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.card-otra span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cta-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
}
.hero-points {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}
.hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
}
.cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
@media (max-width: 600px) {
    .cta-wrapper {
        align-items: stretch;
        width: 100%;
    }
    .cta-wrapper .cta-note {
        text-align: center;
        margin-top: 10px;
    }
}
ul.hero-points, ul.micro-benefits {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
@media (max-width: 900px) {
    .hero-points, .micro-benefits {
        text-align: center;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
    .hero-points li, .micro-benefits li {
        justify-content: center;
        text-align: center;
        margin-bottom: 0;
        background: rgba(45, 167, 223, 0.06);
        border: 1px solid rgba(45, 167, 223, 0.15);
        padding: 6px 14px;
        border-radius: 30px;
        font-size: 0.95rem;
        font-weight: 500;
    }
    .hero-points li svg, .micro-benefits li svg {
        display: none;
    }
}
/* ============================================================
   WIZARD CONTACT FORM (Step 4)
   ============================================================ */
.contact-form-wizard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.wiz-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.wiz-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(45, 167, 223, 0.12);
}
.wiz-input::placeholder {
    color: #a0aec0;
}