/* Variables - Hotsun Minimal Enterprise Edition */
:root {
    --primary: #C12026; 
    --primary-hover: #9c181e;
    --dark-text: #1A1A1A; 
    --gray-text: #4a4a4a; 
    --white: #FFFFFF;
    --off-white: #f5f7fa; 
    --dark-bg: #0A0A0A; 
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: var(--font-body); color: var(--gray-text); background: var(--white); line-height: 1.8; overflow-x: hidden; scroll-behavior: smooth; }
p { text-align: justify; margin-bottom: 1.5rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--dark-text); font-weight: 800; text-align: left;}
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Navegación Glassmorphism Responsiva */
header {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.03); transition: all 0.4s ease;
}
.header-content { display: flex; justify-content: space-between; align-items: center; height: 90px; transition: height 0.4s; }
.logo-img { height: 70px; width: auto; transition: transform 0.3s; z-index: 1001;}
.logo-img:hover { transform: scale(1.03); }

/* Menú Desktop */
.nav-menu { display: flex; }
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark-text); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Menú Hamburguesa (Oculto en Desktop) */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; z-index: 1001; }
.menu-toggle .bar { height: 3px; width: 25px; background-color: var(--dark-text); margin: 3px 0; transition: all 0.3s ease; }

/* Animación de "X" al abrir menú en celular */
.menu-toggle.open .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Botones Premium */
.btn-primary, .btn-outline {
    padding: 15px 32px; border-radius: 4px; font-weight: 800; font-family: var(--font-heading); text-decoration: none; 
    transition: all 0.3s ease; display: inline-block; text-transform: uppercase; letter-spacing: 1.5px; cursor: pointer; border: none; font-size: 0.9rem; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white) !important; box-shadow: 0 8px 20px rgba(193, 32, 38, 0.2); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 12px 25px rgba(193, 32, 38, 0.4); }
.btn-primary.large { padding: 18px 40px; font-size: 1.1rem; }
.full-width { width: 100%; margin-top: 20px; }

.btn-outline { background: transparent; color: var(--dark-text) !important; border: 2px solid var(--dark-text); }
.btn-outline:hover { background: var(--dark-text); color: var(--white) !important; }
.light-outline { border-color: rgba(255,255,255,0.3); color: var(--white) !important; }
.light-outline:hover { background: var(--white); color: var(--dark-bg) !important; }

/* Hero Section Dinámica (Carousel) */
.hero-carousel { height: 100vh; position: relative; overflow: hidden; }
.carousel-container { height: 100%; width: 100%; position: relative;}
.slide { 
    height: 100%; width: 100%; position: absolute; top: 0; left: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center;
}
.slide.active { opacity: 1; z-index: 1; }

/* Gradiente inteligente: Oscuro a la izquierda, transparente a la derecha */
.hero-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0) 100%); 
}
.hero-text { position: relative; z-index: 2; max-width: 800px; padding-top: 100px; pointer-events: none; }
.hero-text h1 { 
    font-size: 4.8rem; line-height: 1.05; margin-bottom: 1.5rem; font-weight: 900; color: var(--white); 
    text-shadow: 2px 4px 12px rgba(0,0,0,0.8); letter-spacing: -1px;
}
.hero-text h1 span { color: var(--primary); }
.hero-text p { 
    font-size: 1.35rem; margin-bottom: 2.5rem; color: #fdfdfd; font-weight: 500; text-align: left; 
    text-shadow: 1px 2px 8px rgba(0,0,0,0.9);
}

/* BOTÓN HERO: Efecto de pulso (glow) sin alterar su posición */
.hero-btn { 
    position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); 
    z-index: 10; font-family: var(--font-heading); pointer-events: auto;
}
.hero-btn:hover { background: var(--primary-hover); transform: translateX(-50%); }
.glow-effect { animation: pulseGlow 2.5s infinite; }
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(193, 32, 38, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(193, 32, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(193, 32, 38, 0); }
}

/* Barra de Contadores */
.stats-bar { background: var(--white); padding: 50px 0; border-bottom: 1px solid #eaeaea; position: relative; z-index: 3; box-shadow: 0 4px 20px rgba(0,0,0,0.02);}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; align-items: center;}
.stat-item { color: var(--dark-text); }
.stat-item .count { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 900; color: var(--primary); }
.stat-item .symbol { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--primary); }
.stat-item p { text-transform: uppercase; letter-spacing: 1px; font-weight: 700; font-size: 0.85rem; margin-top: 10px; color: var(--gray-text); text-align: center;}

/* Secciones Globales */
.info-section, .sinergia-section, .contacto-section { padding: 120px 0; background: var(--white); }
.off-white-bg { background: var(--off-white); }
.info-grid, .sinergia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.info-text h2, .sinergia-content h2, .contacto-info h2 { font-size: 3.2rem; margin-bottom: 2rem; line-height: 1.1; font-weight: 800;}
.red-text { color: var(--primary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 15px; display: block; font-weight: 700;}

/* Calculadora Técnica */
.simulador-section { padding: 120px 0; background: var(--white); }
.simulador-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6rem; align-items: center; }
.simulador-card { background: var(--dark-bg); padding: 50px; border-radius: 12px; border-top: 6px solid var(--primary); box-shadow: 0 20px 50px rgba(0,0,0,0.15); color: var(--white); }
.simulador-card h3 { color: var(--white); margin-bottom: 15px; font-size: 1.8rem; text-align: center; }
.input-group label { font-weight: 500; color: #888; font-size: 0.9rem; display: block; margin-bottom: 10px; text-align: left;}
.input-group input { width: 100%; padding: 18px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; font-size: 1.2rem; color: var(--white); transition: all 0.3s; font-family: var(--font-body); font-weight: bold;}
.input-group input:focus { border-color: var(--primary); outline: none; background: rgba(255,255,255,0.1); }
.resultado-oculto { display: none; margin-top: 30px; animation: fadeInDown 0.6s ease forwards; }
.resultado-oculto.activo { display: block; }
.resultado-datos { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; text-align: center; }
.cifra-roja { color: var(--primary); font-size: 3.5rem; margin: 5px 0; line-height: 1; font-weight: 900; text-align: center;}
.desc-paneles-text { color: #fff; font-size: 1rem; font-weight: 600; text-align: center;}
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* Galería */
.gallery-section { padding: 120px 0; background: var(--off-white); }
.section-title { text-align: center; margin-bottom: 5rem; }
.section-title h2 { font-size: 3rem; font-weight: 800; text-align: center;}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-img { width: 100%; height: 380px; object-fit: cover; border-radius: 8px; transition: transform 0.5s ease, box-shadow 0.5s ease; cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.gallery-img:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

/* Sinergia Lista Beneficios */
.lista-beneficios { list-style: none; margin: 2.5rem 0; }
.lista-beneficios li { margin-bottom: 1.5rem; font-size: 1.1rem; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 15px; color: var(--dark-text); font-weight: 500; text-align: left;}
.lista-beneficios span { color: var(--primary); margin-right: 12px; font-size: 1.3rem; font-weight: 900; vertical-align: middle;}
.dark-list li { color: var(--gray-text); border-color: rgba(0,0,0,0.08); }
.sinergia-img-container { position: relative; }
.badge-garantia { position: absolute; bottom: -40px; right: -40px; width: 170px; background: var(--white); padding: 12px; border-radius: 50%; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }

/* ========================================================= */
/* NUEVA SECCIÓN: PROCESO PASO A PASO */
/* ========================================================= */
.proceso-section { padding: 120px 0; background: var(--white); }
.proceso-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; margin-top: 4rem;}
.proceso-card { background: var(--off-white); padding: 50px 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: transform 0.3s, box-shadow 0.3s; border-bottom: 4px solid transparent; position: relative; z-index: 1;}
.proceso-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-bottom-color: var(--primary); }
.step-number { font-family: var(--font-heading); font-size: 5rem; color: var(--primary); font-weight: 900; opacity: 0.1; margin-bottom: -35px; line-height: 1; z-index: -1; position: relative;}
.proceso-card h3 { font-size: 1.4rem; margin-bottom: 15px; position: relative; z-index: 2;}

/* FAQ Accordion */
.faq-section { padding: 120px 0; background: var(--white); }
.faq-section.off-white-bg { background: var(--off-white); }
.faq-section.off-white-bg .faq-item { background: var(--white); }
.faq-section.off-white-bg .faq-answer { background: var(--white); }
.faq-accordion { max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; margin-top: 4rem; }
.faq-item { background: var(--off-white); border-radius: 8px; overflow: hidden; transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.03);}
.faq-item:hover { border-color: rgba(193, 32, 38, 0.1); box-shadow: 0 5px 15px rgba(0,0,0,0.05);}
.faq-question { width: 100%; text-align: left; padding: 25px 30px; background: none; border: none; font-size: 1.2rem; font-family: var(--font-heading); font-weight: 700; color: var(--dark-text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { font-size: 1.8rem; color: var(--primary); font-weight: 300; transition: transform 0.4s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease, padding 0.5s ease; background: var(--off-white); }
.faq-answer p { padding: 0 30px 25px 30px; font-size: 1.05rem; color: var(--gray-text); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-question { color: var(--primary); }

/* SECCIÓN CONTACTO Y MAPA */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: stretch; }
.contacto-detalles { margin: 2.5rem 0; display: flex; flex-direction: column; gap: 1.5rem; }
.detalle-item { display: flex; align-items: flex-start; gap: 15px; }
.detalle-icon { font-size: 1.8rem; background: rgba(193, 32, 38, 0.1); padding: 10px; border-radius: 8px; color: var(--primary); }
.detalle-item strong { color: var(--dark-text); font-size: 1.1rem; display: block; margin-bottom: 3px; font-family: var(--font-heading);}
.detalle-item p { margin-bottom: 0; color: var(--gray-text); }
.red-link { color: var(--primary); text-decoration: none; font-weight: bold; transition: color 0.3s;}
.red-link:hover { color: var(--primary-hover); text-decoration: underline;}
.contacto-mapa { border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.1); min-height: 400px; border-left: 8px solid var(--primary);}

/* Utilerías */
.img-responsive { width: 100%; height: auto; display: block; object-fit: cover; }
.shadow-elegant { border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.border-red { border-left: 10px solid var(--primary); }

/* Animaciones Reveal */
.reveal { opacity: 0; transform: translateY(60px); transition: all 0.9s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* WhatsApp Flotante Corporativo */
.whatsapp-float {
    position: fixed; width: 65px; height: 65px; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF;
    border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1000; transition: transform 0.3s; display: flex; justify-content: center; align-items: center;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.wa-icon { width: 38px; height: 38px; filter: brightness(0) invert(1); }

/* Footer */
.footer { background: #070707; color: rgba(255,255,255,0.8); text-align: center; padding: 5rem 0; border-top: 4px solid var(--primary); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.logo-footer { height: 80px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 20px;}

/* ========================================================= */
/* MEDIA QUERIES - RESPONSIVIDAD PERFECTA PARA TABLETS/MÓVIL */
/* ========================================================= */

@media screen and (max-width: 1024px) {
    .info-grid, .sinergia-grid, .simulador-grid, .contacto-grid, .proceso-grid { gap: 3rem; }
    .hero-text h1 { font-size: 3.8rem; }
    .stat-item .count { font-size: 3rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-img:nth-child(3) { grid-column: span 2; } 
    .contacto-mapa { min-height: 350px; }
}

@media screen and (max-width: 768px) {
    .info-section, .sinergia-section, .simulador-section, .gallery-section, .faq-section, .contacto-section, .proceso-section { padding: 80px 0; }
    .info-grid, .sinergia-grid, .simulador-grid, .contacto-grid, .proceso-grid { grid-template-columns: 1fr; gap: 3rem; }
    
    /* Menú Hamburguesa Perfeccionado */
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 90px; left: -100%; width: 100%; height: calc(100vh - 90px);
        background: rgba(255, 255, 255, 0.98); flex-direction: column; text-align: center; 
        padding: 2rem 0; transition: 0.4s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        overflow-y: auto; z-index: 999; display: flex;
    }
    .nav-menu.active { left: 0; }
    .nav-links { flex-direction: column; gap: 1.5rem; }
    
    /* Hero Section Mobile */
    .hero-text { padding-top: 60px; text-align: center; }
    .hero-text h1 { font-size: 2.8rem; text-shadow: 2px 4px 8px rgba(0,0,0,0.8); }
    .hero-text p { font-size: 1.1rem; text-align: center; }
    .hero-btn { width: 90%; font-size: 0.95rem; padding: 15px 20px; white-space: normal;}
    .hero-overlay { background: rgba(0,0,0,0.6); }

    /* Textos Mobile */
    .info-text h2, .sinergia-content h2, .section-title h2, .contacto-info h2 { font-size: 2.5rem; text-align: center;}
    .red-text { text-align: center; }
    .info-text p, .sinergia-content p, .lista-beneficios li, .contacto-info p { text-align: justify; }

    /* Contadores Mobile */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-item .count { font-size: 2.5rem; }
    .stat-item .symbol { font-size: 1.5rem; }

    /* Calculadora Mobile */
    .simulador-card { padding: 30px; }
    .cifra-roja { font-size: 3rem; }

    /* Galería Mobile */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-img { height: 280px; }
    .gallery-img:nth-child(3) { grid-column: span 1; } 

    /* Proceso Mobile */
    .proceso-card { padding: 40px 20px; }

    /* Contacto Mobile */
    .contacto-mapa { min-height: 300px; border-left: none; border-top: 8px solid var(--primary); }

    /* Flotantes Mobile */
    .badge-garantia { width: 110px; bottom: -15px; right: 10px; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; }
}

@media screen and (max-width: 480px) {
    .hero-text h1 { font-size: 2.4rem; }
    .stats-grid { grid-template-columns: 1fr; } 
    .btn-primary, .btn-outline { width: 100%; padding: 15px; font-size: 0.85rem;}
}