/* ==========================================================================
   VARIABLES Y TOKENS DE DISEÑO
   ========================================================================== */
   :root {
    --color-primary: #0A1E3F;
    --color-primary-light: #153265;
    --color-secondary: #27AE60;
    --color-secondary-hover: #219653;
    
    --gradient-hero: linear-gradient(135deg, #0A1E3F 0%, #051024 100%);
    --gradient-green: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    
    --color-bg-light: #F8FAFC;
    --color-bg-white: #FFFFFF;
    --color-text-main: #334155;
    --color-text-muted: #475569;
    --color-text-light: #f1f5f9;
    
    --color-error: #ef4444;

    --shadow-sm: 0 1px 2px 0 rgba(10, 30, 63, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(10, 30, 63, 0.08);
    --shadow-lg: 0 10px 25px -5px rgba(10, 30, 63, 0.1);
    --shadow-xl: 0 20px 35px -5px rgba(10, 30, 63, 0.15);
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ==========================================================================
   RESETEO Y TIPOGRAFÍA
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; color: var(--color-primary); line-height: 1.2; font-weight: 700; }
a { text-decoration: none; color: var(--color-primary); transition: var(--transition-fast); }
img, svg { max-width: 100%; height: auto; }
strong { font-weight: 700; color: var(--color-primary); }

.text-center { text-align: center; }
.text-white { color: white !important; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.opacity-75 { opacity: 0.75; }
.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-primary); }

/* ==========================================================================
   LAYOUT Y GRID
   ========================================================================== */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.grid { display: grid; gap: var(--space-md); }
.two-cols { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .two-cols { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

.section-title { font-size: 2.2rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }

.text-gradient {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   COMPONENTES
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full); font-weight: 700; font-family: 'Outfit', sans-serif;
    cursor: pointer; border: none; transition: var(--transition-fast); text-align: center;
}
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.95rem; }
.btn-primary { background: var(--gradient-green); color: white !important; box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4); background: linear-gradient(135deg, #27ae60 0%, #219653 100%); }
.btn-xl { padding: 1.2rem 2.5rem; font-size: 1.3rem; }
.btn-block { width: 100%; }

.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(39, 174, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.card { background: var(--color-bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.flex-center { display: flex; align-items: center; justify-content: center; padding: var(--space-lg); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid rgba(0,0,0,0.05); padding: 0.5rem 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-img { width: 160px; height: auto; display: block; mix-blend-mode: multiply; }
@media (min-width: 768px) { .logo-img { width: 200px; } }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero { position: relative; padding: calc(var(--space-xl) + 60px) 0 var(--space-xl); background: var(--color-bg-light); min-height: 80vh; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }

.hero-title { font-size: 2.8rem; margin-bottom: var(--space-sm); line-height: 1.1; color: var(--color-primary); }
.hero-title span { color: var(--color-secondary); }
@media (min-width: 768px) { .hero-title { font-size: 4rem; } }

.hero-subtitle { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: var(--space-md); max-width: 800px; margin-left: auto; margin-right: auto; }

.hero-pain-box {
    background: white; border-left: 4px solid var(--color-error); padding: 1.5rem;
    border-radius: var(--radius-sm); margin: 0 auto var(--space-lg); max-width: 700px;
    box-shadow: var(--shadow-sm); font-size: 1.1rem; color: var(--color-text-main); text-align: left;
}
.hero-pain-box p { margin-bottom: 0.5rem; }
.hero-pain-box p:last-child { margin-bottom: 0; }

.hero-ctas { display: flex; justify-content: center; }

/* IDENTIFICACIÓN */
.identification-block { padding: var(--space-md) 0; }
.lead-text { font-size: 1.3rem; font-weight: 400; color: var(--color-text-muted); }
.highlight-text strong { font-size: 1.5rem; color: var(--color-primary); }

/* ==========================================================================
   2. PROBLEMAS (Tarjetas que duelen)
   ========================================================================== */
.problems-section { padding: var(--space-lg) 0 var(--space-xl); }
.cards-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.problem-card { padding: var(--space-md); border: 1px solid rgba(10, 30, 63, 0.05); }
.icon-wrapper { width: 50px; height: 50px; border-radius: 12px; background: rgba(39, 174, 96, 0.1); display: flex; align-items: center; justify-content: center; color: var(--color-secondary); margin-bottom: 1.2rem; }
.icon-wrapper svg { width: 24px; height: 24px; }
.problem-card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.problem-card p { font-size: 1.05rem; color: var(--color-text-muted); line-height: 1.5; }

/* ==========================================================================
   TENSIÓN (Lo que pasa cuando no haces nada)
   ========================================================================== */
.tension-section { padding: var(--space-xl) 0; background: var(--color-primary); color: white; }
.tension-grid { display: grid; gap: 1.5rem; max-width: 1000px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .tension-grid { grid-template-columns: repeat(3, 1fr); } }

.tension-item {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem; border-radius: var(--radius-lg); text-align: left;
}
.tension-icon { color: #ef4444; margin-bottom: 1rem; width: 40px; height: 40px; background: rgba(239, 68, 68, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tension-icon svg { width: 20px; height: 20px; }
.tension-item p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.9); }

/* ==========================================================================
   3. DESEO Y ALIVIO
   ========================================================================== */
.transformation-section { padding: var(--space-xl) 0; background: white; }
.benefits-wrapper { align-items: stretch; margin-top: var(--space-lg); }

.solution-block { background: var(--color-bg-light); border-radius: var(--radius-lg); padding: var(--space-lg); border: 1px solid rgba(0,0,0,0.05); }
.solution-block h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }

.relief-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.relief-list li { display: flex; align-items: flex-start; gap: 1rem; font-size: 1.2rem; color: var(--color-text-main); font-weight: 500; }
.relief-list svg { width: 24px; height: 24px; color: var(--color-secondary); flex-shrink: 0; margin-top: 3px; }

.relief-logo { width: 220px; max-width: 100%; margin: 0 auto; display: block; mix-blend-mode: multiply; }

/* ==========================================================================
   4. FORMULARIO
   ========================================================================== */
.form-section { padding: var(--space-xl) 0; background: var(--gradient-hero); color: white; }
.form-wrapper { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: center; }
@media (min-width: 992px) { .form-wrapper { grid-template-columns: 1fr 1.2fr; } }

.form-info h2 { color: white; font-size: 2.8rem; margin-bottom: 1rem; }
.lead-info { font-size: 1.3rem; color: var(--color-secondary); margin-bottom: 2rem; }

.microcopy-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.microcopy-list li { display: flex; align-items: center; gap: 1rem; font-size: 1.1rem; color: rgba(255, 255, 255, 0.8); }
.microcopy-list svg { width: 20px; height: 20px; color: var(--color-secondary); flex-shrink: 0; }

.form-container { padding: 2rem; background: white; border-radius: var(--radius-lg); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } .full-width { grid-column: span 2; } }

.form-group { display: flex; flex-direction: column; }
label { font-weight: 600; margin-bottom: 0.5rem; color: var(--color-text-muted); font-size: 0.95rem; }
label strong { color: var(--color-primary); }

input, select, textarea {
    width: 100%; padding: 1rem; border: 2px solid #e2e8f0; border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif; font-size: 1rem; background-color: #f8fafc; color: var(--color-text-main);
    transition: var(--transition-fast);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-secondary); background-color: white; box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1); }

.hidden-field { display: none !important; }
.checkbox-group { flex-direction: row; align-items: flex-start; gap: 0.8rem; margin-top: 0.5rem; }
.checkbox-group input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--color-secondary); }
.checkbox-group label { font-size: 0.9rem; font-weight: 400; line-height: 1.4; margin-bottom: 0; }

.alert-error { background: #fee2e2; color: #b91c1c; padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; border: 1px solid #f87171; }

/* FOOTER */
.main-footer { background: #020813; padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
@media (min-width: 768px) { .footer-content { flex-direction: row; justify-content: space-between; } }
.footer-logo-wrapper { background: white; padding: 10px 20px; border-radius: 8px; display: inline-block; }
.footer-logo-wrapper img { width: 160px; height: auto; display: block; mix-blend-mode: normal; }
.footer-links p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* ANIMACIONES */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll[style*="--delay"] { transition-delay: var(--delay); }
