/* Variables & Reset */
:root {
    --bg-white: #FFFFFF;
    --bg-light-gray: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #475569;
    --accent-blue-light: #EFF6FF;
    --accent-blue: #3B82F6;
    --accent-blue-dark: #1E3A8A;
    --cta-orange: #EA580C;
    --cta-orange-hover: #C2410C;
    --cta-green: #10B981;
    --alert-red: #EF4444;
    --success-bg: #D1FAE5;
    --error-bg: #FEE2E2;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --max-width: 1200px;
    --narrow-width: 800px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }

.bold-text { font-weight: 700; }
.italic-text { font-style: italic; }
.text-center { text-align: center; }

/* Layout Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.narrow-container {
    max-width: var(--narrow-width);
}

/* Backgrounds */
.bg-light-gray { background-color: var(--bg-light-gray); }

/* Buttons (CTA) */
.btn-primary {
    display: inline-block;
    background-color: var(--cta-orange);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.4), 0 2px 4px -1px rgba(234, 88, 12, 0.2);
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background-color: var(--cta-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.5), 0 4px 6px -2px rgba(234, 88, 12, 0.3);
}

.btn-small { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-large { padding: 0.75rem 1rem; font-size: 1rem; width: 100%; max-width: 600px; margin: 1.5rem auto; display: block; }
.btn-giant { padding: 0.875rem 1.25rem; font-size: 1.125rem; width: 100%; max-width: 600px; margin: 1.5rem auto; display: block; border-radius: 12px; }

/* Sticky Mobile Bar */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    padding: 1rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
    display: block; /* Visible by default on mobile */
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.sticky-bar.visible {
    transform: translateY(0);
}

.sticky-bar .btn-primary {
    width: 100%;
    max-width: 400px;
}

/* Hero Section */
.hero {
    padding-top: 2rem;
    text-align: center;
}

.pre-headline {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.highlight-accent {
    color: var(--accent-blue);
}

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

.hero-image {
    margin: 2rem auto 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: fit-content;
    max-width: 100%;
}

/* Story Section */
.story-section p {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.story-image {
    border-radius: 12px;
    margin-bottom: 2rem;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* UVP Section */
.uvp-box {
    background-color: var(--accent-blue-light);
    border: 2px solid var(--accent-blue);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.uvp-icon {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.uvp-box h2 {
    color: var(--accent-blue-dark);
}

/* Benefits Section */
.benefits-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.check-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Happy Families Section */
.happy-families-section {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.families-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.family-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
    text-align: center;
}

.family-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.family-text {
    padding: 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.family-text strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* Social Proof */
.social-proof-section {
    text-align: center;
}

.italic-title {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
}

.stars {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.customer-name {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Guarantee & Who */
.guarantee-box {
    background-color: var(--bg-white);
    border: 3px dashed var(--accent-blue);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.shield-icon {
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.who-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.who-not, .who-yes {
    padding: 2rem;
    border-radius: 12px;
}

.who-not { background-color: var(--error-bg); }
.who-yes { background-color: var(--success-bg); }

.who-not ul { list-style: none; }
.who-not li { display: flex; margin-bottom: 1rem; }
.cross-icon { margin-right: 0.5rem; }

/* Deliverables */
.deliverables-section {
    padding-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.deliverable-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
    text-align: center;
}

.item-image {
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
}

.item-text h3 {
    color: var(--accent-blue-dark);
}

.pricing-anchor {
    margin-top: 1rem;
    font-size: 1.125rem;
}

.free-badge {
    color: var(--cta-green);
    font-weight: 800;
}

/* Anchor Section */
.anchor-section {
    padding: 4rem 1.5rem;
}

.receipt-box {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 800px;
    margin: 0 auto;
}

.receipt-box h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.receipt-list {
    list-style: none;
    margin-bottom: 2rem;
    border-top: 2px dashed #E2E8F0;
    border-bottom: 2px dashed #E2E8F0;
    padding: 1.5rem 0;
}

.receipt-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.receipt-total {
    text-align: center;
    margin-bottom: 2rem;
}

.strike-red {
    color: var(--alert-red);
    font-weight: bold;
}

.final-price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0.5rem;
}

.cta-wrapper {
    text-align: center;
}

.cta-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text-muted);
}

/* FAQ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #E2E8F0;
    padding: 1rem 0;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
}

.accordion-header .icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding-top: 1rem;
    color: var(--text-muted);
}

/* Deep Dive */
.deep-dive-section {
    background-color: var(--accent-blue-dark);
    color: var(--bg-white);
    text-align: center;
}

.deep-dive-section h2 {
    color: var(--bg-white);
}

.deep-dive-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.science-graphic {
    color: var(--bg-white);
    opacity: 0.9;
}

/* Urgency & Final CTA */
.urgency-banner {
    background-color: #FEF3C7;
    border-bottom: 2px solid #FDE68A;
    padding: 1rem 1.5rem;
    text-align: center;
    color: #92400E;
}

.urgency-cta-section {
    padding-bottom: 5rem; /* space for sticky bar */
}

.final-close {
    margin-top: 3rem;
}

.final-message {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.final-image {
    max-width: 500px;
    margin: 3rem auto 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Top Bar */
.top-bar {
    background-color: var(--cta-orange);
    color: var(--bg-white);
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer Disclaimer */
.footer-disclaimer {
    padding: 2rem 1.5rem 6rem; /* Espacio extra para la sticky bar móvil */
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-disclaimer p {
    margin-bottom: 0.5rem;
}

/* Science Section (El cerebro de dos pisos) */
.science-section {
    background-color: #121E42;
    color: #ffffff;
    padding: 5rem 1.5rem;
}

.science-header {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.science-eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #93c5fd;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.science-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.science-header p {
    font-size: 1.125rem;
    color: #bfdbfe;
    line-height: 1.6;
}

.science-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column for mobile */
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.science-graphic-card {
    background-color: #1a2a5e;
    border: 1px solid #2e437c;
    border-radius: 20px;
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brain-graphic {
    position: relative;
    width: 250px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ellipse-top {
    width: 220px;
    height: 140px;
    background: radial-gradient(ellipse at center, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 20px;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
}

.ellipse-bottom {
    width: 180px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 40px;
    z-index: 1;
    text-align: center;
}

.piso-title {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #ffffff;
}

.piso-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 4px;
    color: #ffffff;
}

.science-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

.science-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.brain-icon-small {
    color: #60a5fa;
    flex-shrink: 0;
}

/* Responsive (Desktop First approach adjustments) */
@media (min-width: 768px) {
    .btn-large { padding: 1.25rem 2rem; font-size: 1.125rem; }
    .btn-giant { padding: 1.5rem 2rem; font-size: 1.25rem; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    
    .sticky-bar {
        display: none; /* Hide sticky bar on desktop */
    }

    .urgency-cta-section {
        padding-bottom: 3rem; 
    }

    .story-content {
        display: flex;
        align-items: center;
        gap: 3rem;
    }

    .story-image {
        width: 40%;
        margin-bottom: 0;
    }

    .story-text {
        width: 60%;
    }

    .science-grid {
        grid-template-columns: 1fr 1fr;
    }

    .families-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .guarantee-box {
        flex-direction: row;
        text-align: left;
        gap: 2rem;
    }

    .shield-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .who-columns {
        grid-template-columns: 1fr 1fr;
    }

    .deliverable-item {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
        align-items: center;
    }

    .deliverable-item.reverse {
        flex-direction: row-reverse;
    }

    .item-image {
        margin-bottom: 0;
        width: 50%;
    }

    .item-text {
        width: 50%;
    }
}
