/* =========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
   :root {
    --primary: #004a52;      /* Autoridad y color principal */
    --accent: #e48b53;       /* Acentos y llamadas a la acción */
    --neutral: #e0d6c5;      /* Fondos suaves y descanso visual */
    --neutral-light: #f6f3ef; /* Fondo súper ligero derivado del neutro */
    --text-dark: #1a2024;    /* Texto principal para máximo contraste */
    --text-muted: #4a555e;   /* Párrafos secundarios */
    --white: #ffffff;
    --border: #d1cbc2;
    --transition: all 0.3s ease;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 2px 4px rgba(0,74,82,0.05);
    --shadow-md: 0 8px 16px rgba(0,74,82,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   SISTEMA DE GRID Y LAYOUT
   ========================================= */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 80px 0;
}

.bg-neutral {
    background-color: var(--neutral-light);
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.opacity-70 { opacity: 0.7; }
.rounded-box { padding: 60px 40px; border-radius: var(--radius-lg); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* =========================================
   TIPOGRAFÍA
   ========================================= */
h1, h2, h3, h4 {
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

p { margin-bottom: 16px; color: var(--text-muted); }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   COMPONENTES
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #00363d;
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.action-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.aux-text {
    font-size: 0.8rem;
    color: #6c7a86;
}

.chip {
    display: inline-block;
    background: var(--neutral);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 10px;
    margin-bottom: 10px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Tarjetas base */
.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--neutral);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.card-outline {
    background: transparent;
    border: 1px solid var(--border);
    box-shadow: none;
}
.card-outline:hover { transform: none; box-shadow: none; border-color: var(--primary); }

/* =========================================
   HEADER & NAVEGACIÓN
   ========================================= */
#main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--neutral);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

#main-header.scrolled {
    box-shadow: var(--shadow-sm);
}
#main-header.scrolled .header-container { height: 65px; }

.logo img {
    height: 40px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul {
    display: flex;
    gap: 24px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--primary);
    transition: var(--transition);
}

/* =========================================
   SECCIONES ESPECÍFICAS
   ========================================= */
/* Hero */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, var(--white) 0%, var(--neutral-light) 100%);
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.hero-actions .action-group {
    align-items: center;
}

.micro-proofs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Recursos */
.hero-recursos { padding: 140px 0 60px; }
.hero-recursos-actions { flex-direction: row; justify-content: center; gap: 20px; align-items: center; }

/* Trust Banner */
.trust-banner {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 0;
}

.trust-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.trust-item.separator {
    color: var(--accent);
}

/* Pain Section */
.pain-list {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 0 auto 30px;
    border-left: 4px solid var(--accent);
}

.pain-list ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.pain-list ul li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.closing-phrase {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    max-width: 600px;
    margin: 0 auto;
}

/* How it Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step {
    position: relative;
    padding-top: 50px;
}

.step-number {
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 900px;
    margin: 0 auto 50px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comp-col {
    padding: 50px 40px;
}

.comp-col h3 { text-align: center; margin-bottom: 30px; }
.comp-col ul li { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--neutral); }
.comp-col ul li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.traditional {
    background-color: #fafafa;
    color: #6c7a86;
}
.traditional h3 { color: #6c7a86; font-weight: 400; }

.miraria {
    background-color: var(--white);
    border-left: 1px solid var(--neutral);
    position: relative;
}
.miraria::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background-color: var(--primary);
}
.miraria ul li { color: var(--text-dark); font-weight: 500; }
.miraria ul li::before { content: "✓ "; color: var(--accent); font-weight: bold; }

.cta-intermediate { text-align: center; margin-top: 40px; }

/* Lead Magnet */
.lead-magnet-container {
    display: flex;
    align-items: center;
    gap: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #00363d 100%);
    color: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
}

.lm-content h2 { color: var(--white); }
.lm-content p { color: var(--neutral); }
.lm-content .check-list li { color: var(--white); }

.lm-visual {
    flex-shrink: 0;
    width: 300px;
}

.pdf-mockup {
    width: 100%;
    height: 400px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 15px solid var(--accent);
}

/* Testimonials */
.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.quote { font-style: italic; font-size: 1.1rem; color: var(--text-dark); margin-bottom: 30px; }
.author-info strong { display: block; color: var(--primary); }
.author-info span { display: block; font-size: 0.85rem; color: var(--text-muted); }

/* FAQ Accordion */
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-header {
    width: 100%; background: none; border: none; padding: 25px 0;
    text-align: left; font-size: 1.1rem; font-weight: 600; color: var(--primary);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.accordion-header .icon { font-size: 1.5rem; color: var(--accent); transition: transform 0.3s; }
.accordion-header[aria-expanded="true"] .icon { transform: rotate(45deg); }
.accordion-content {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
}
.accordion-content p { padding-bottom: 25px; margin: 0; }

/* Footer */
.site-footer {
    background-color: #0b1519;
    color: #9aa8b1;
    padding: 80px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-logo { filter: brightness(0) invert(1); max-width: 140px; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #9aa8b1; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.85rem; }

/* Botón flotante WA */
.wa-float {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 999;
    transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.1); }

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
    h1 { font-size: 2.3rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .lead-magnet-container { flex-direction: column; text-align: center; padding: 40px 30px; }
    .lm-content .check-list li { text-align: left; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; align-items: center; gap: 20px; }
    .hero-actions .action-group { align-items: center; text-align: center; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px);
        background: var(--white); flex-direction: column; justify-content: flex-start;
        padding: 40px 20px; transition: left 0.3s ease; box-shadow: var(--shadow-md);
    }
    .main-nav.active { left: 0; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 30px; margin-bottom: 30px; width: 100%; }
    
    .grid-2 { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .comparison-grid { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--border); }
    .miraria::before { width: 4px; height: 100%; }
    .comp-col { padding: 30px 20px; }
    .hero-recursos-actions { flex-direction: column; }
    .trust-container { flex-direction: column; gap: 10px; }
    .trust-item.separator { display: none; }
}