:root {
    --bg-dark: #070B14;
    --bg-card: #0F172A;
    --brand-blue: #1b3b86;
    --brand-green: #3eb465;
    --brand-cyan: #29c4a9;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Previene scroll horizontal indeseado */
}

/* Tipografía Fluida (clamp se adapta a la pantalla) */
h1 { font-family: var(--font-heading); color: var(--text-main); font-size: clamp(2.5rem, 5vw + 1rem, 4rem); line-height: 1.1; font-weight: 800; }
h2 { font-family: var(--font-heading); color: var(--text-main); font-size: clamp(2rem, 4vw + 0.5rem, 2.8rem); margin-bottom: 1rem; }
h3 { font-family: var(--font-heading); color: var(--text-main); }

h1 span, h2 span { 
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =================================================
   NAVEGACIÓN
================================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(7, 11, 20, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-img { height: 50px; }

/* Icono menú móvil */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.hamburger:hover { color: var(--brand-cyan); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--text-main); text-decoration: none;
    font-size: 0.95rem; font-weight: 500; transition: color 0.3s;
}
.nav-links a:hover { color: var(--brand-cyan); }

.btn-nav {
    border: 1px solid var(--brand-cyan);
    padding: 0.5rem 1.2rem; border-radius: 4px;
    color: var(--brand-cyan) !important;
}
.btn-nav:hover { background: rgba(41, 196, 169, 0.1); }

/* =================================================
   HERO SECTION
================================================= */
.hero {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; padding: 10rem 5% 6rem;
    align-items: center; min-height: 100vh;
}

.badge {
    display: inline-block; padding: 0.4rem 1rem;
    background: rgba(62, 180, 101, 0.1); color: var(--brand-green);
    border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    margin-bottom: 1.5rem; border: 1px solid rgba(62, 180, 101, 0.2);
}

.hero-content p { color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.1rem); margin: 1.5rem 0 2.5rem; }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
    color: #fff; padding: 0.8rem 2rem; border-radius: 6px;
    text-decoration: none; font-weight: 600; transition: transform 0.3s, box-shadow 0.3s;
    border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; justify-content: center;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(62, 180, 101, 0.2); }

.btn-secondary {
    background: rgba(255,255,255,0.05); color: #fff;
    padding: 0.8rem 2rem; border-radius: 6px; text-decoration: none;
    font-weight: 600; border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.hero-image { position: relative; text-align: center; }
.glow-circle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: clamp(200px, 40vw, 300px); height: clamp(200px, 40vw, 300px); border-radius: 50%;
    background: var(--brand-cyan); filter: blur(100px); opacity: 0.2; z-index: -1;
}
.hero-logo { width: 100%; max-width: 450px; animation: float 6s ease-in-out infinite; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* =================================================
   PRUEBA SOCIAL / TESTIMONIOS
================================================= */
.social-proof { padding: 5rem 5%; background: var(--bg-dark); }
.social-proof-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; max-width: 1000px; margin: 0 auto; 
}
.testimonial-card {
    background: var(--bg-card); padding: 2.5rem; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05); text-align: left;
    transition: transform 0.3s, border-color 0.3s;
}
.testimonial-card:hover { transform: translateY(-5px); border-color: var(--brand-cyan); }
.stars { color: #FBBF24; margin-bottom: 1rem; font-size: 1.1rem; }
.quote { color: var(--text-main); font-style: italic; margin-bottom: 1.5rem; line-height: 1.7; }
.client-info h4 { color: var(--brand-cyan); margin-bottom: 0.2rem; font-size: 1.1rem; }
.client-info span { color: var(--text-muted); font-size: 0.85rem; }

/* =================================================
   SERVICIOS
================================================= */
.services { padding: 5rem 5%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.service-card {
    background: var(--bg-card); padding: 2.5rem 2rem;
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, border-color 0.3s;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--brand-cyan); }
.service-icon {
    font-size: 2rem; color: var(--brand-cyan);
    background: rgba(41, 196, 169, 0.1); padding: 1rem;
    border-radius: 8px; margin-bottom: 1.5rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* =================================================
   SHOWCASE DE PLANTILLA
================================================= */
.showcase {
    padding: 5rem 5%; background: linear-gradient(180deg, var(--bg-dark), var(--bg-card));
    text-align: center;
}
.showcase > p { color: var(--text-muted); max-width: 700px; margin: 0 auto 3rem; }

.template-card {
    background: var(--bg-dark); max-width: 800px; margin: 0 auto;
    border-radius: 16px; border: 1px solid rgba(255,255,255,0.1);
    padding: clamp(2rem, 5vw, 3rem); text-align: left; position: relative; overflow: hidden;
}
.template-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--brand-green);
}
.template-tag {
    display: inline-block; background: var(--brand-blue); color: #fff;
    padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}
.template-info h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 1rem; }
.template-info p { color: var(--text-muted); margin-bottom: 2rem; max-width: 600px; }

/* =================================================
   LEAD MAGNET / CTA
================================================= */
.lead-magnet { padding: 6rem 5%; text-align: center; background: var(--bg-card); }
.lead-content { max-width: 800px; margin: 0 auto; }
.lead-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; }

.pulse { animation: pulseAnim 2s infinite; }
@keyframes pulseAnim {
    0% { box-shadow: 0 0 0 0 rgba(62, 180, 101, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(62, 180, 101, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 180, 101, 0); }
}

/* =================================================
   FOOTER
================================================= */
footer { padding: 4rem 5% 2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { height: 60px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-contact h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.footer-contact p { color: var(--text-muted); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* =================================================
   BOTÓN WHATSAPP
================================================= */
.float-wa {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; color: white; display: flex;
    align-items: center; justify-content: center; font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); text-decoration: none;
    transition: transform 0.3s;
}
.float-wa:hover { transform: scale(1.1); }

/* =================================================
   MODAL DE DESCARGA
================================================= */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(7, 11, 20, 0.8);
    backdrop-filter: blur(5px); align-items: center; justify-content: center;
}
.modal-content {
    background-color: var(--bg-card); padding: clamp(20px, 5vw, 40px); border-radius: 12px;
    width: 90%; max-width: 400px; position: relative; text-align: center;
    border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.close-modal {
    position: absolute; top: 15px; right: 20px; color: var(--text-muted);
    font-size: 28px; cursor: pointer; transition: color 0.3s;
}
.close-modal:hover { color: var(--brand-cyan); }
.modal-form { display: flex; flex-direction: column; gap: 15px; }
.modal-input {
    width: 100%; padding: 12px 15px; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px; font-family: var(--font-body); font-size: 0.9rem;
    background-color: var(--bg-dark); color: #fff; outline: none; transition: border-color 0.3s;
}
.modal-input:focus { border-color: var(--brand-cyan); }
.btn-submit {
    background: var(--brand-green); color: #fff; padding: 12px;
    border: none; border-radius: 6px; font-family: var(--font-heading);
    font-weight: 700; cursor: pointer; transition: background 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { background: #329653; }


/* =================================================
   MEDIA QUERIES (TABLET Y MÓVIL)
================================================= */

/* Tablets (iPad, etc.) */
@media (max-width: 1024px) {
    .hero { gap: 2rem; padding: 8rem 5% 5rem; }
    .hero-content h1 { font-size: 3rem; }
}

/* Celulares (Móvil) */
@media (max-width: 768px) {
    
    /* Configuración del Menú Desplegable */
    .hamburger { display: block; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.4s ease, opacity 0.4s ease;
        z-index: 99;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .btn-nav { width: 100%; text-align: center; }

    /* Ajustes generales de espaciado */
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 7rem; }
    .hero-buttons { justify-content: center; }
    .hero-logo { max-width: 280px; }
    
    .social-proof-grid, .services-grid { grid-template-columns: 1fr; }
    
    .template-card { text-align: center; }
    .template-card::before { top: 0; left: 0; width: 100%; height: 4px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-contact p { justify-content: center; }
    
    /* Ajuste del botón de WhatsApp flotante en móviles para que no estorbe */
    .float-wa { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 30px; }
}