:root {
    --bg-dark: #070B14;           /* Fondo principal oscuro */
    --bg-card: #0F172A;           /* Fondo de tarjetas */
    --brand-blue: #1b3b86;        /* Azul oscuro del logo */
    --brand-green: #3eb465;       /* Verde brillante del logo */
    --brand-cyan: #29c4a9;        /* Cian neón de las conexiones */
    --text-main: #F8FAFC;         /* Texto principal claro */
    --text-muted: #94A3B8;        /* Texto secundario gris */
    
    --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;
}

h1, h2, 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: 1.5rem 5%;
    background: rgba(7, 11, 20, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-img { height: 50px; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--text-main); text-decoration: none;
    font-size: 0.9rem; 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: 4rem; 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 h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; }
.hero-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; }

.hero-buttons { display: flex; gap: 1rem; }
.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;
}
.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: flex; align-items: center; gap: 8px;
}
.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: 300px; height: 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); }
}

/* =================================================
   SERVICIOS
================================================= */
.services { padding: 5rem 5%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.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 h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.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: 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: 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 h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.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: 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-content h3 { font-size: 1.5rem; margin-bottom: 10px; }
.modal-content p { font-size: 0.9rem; margin-bottom: 25px; color: var(--text-muted); }
.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; }

/* Responsive */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 8rem; gap: 2rem; }
    .hero-buttons { justify-content: center; flex-direction: column; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-contact p { justify-content: center; }
}