/* ==========================================================================
   Base CSS / Design System
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-base: #FAF9F6; /* Cream / Warm White */
    --bg-surface: #FFFFFF;
    --primary: #D97757; /* Terracotta */
    --primary-hover: #c46445;
    --primary-light: rgba(217, 119, 87, 0.1);
    --secondary: #2A4D50; /* Dark Teal */
    --secondary-light: #3d686b;
    --accent: #D4AF37; /* Warm Gold/Yellow */
    --dark: #1A3032; /* Deep Charcoal/Teal */
    --text-main: #333333;
    --text-muted: #666666;
    --success: #1DA068;
    
    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacings */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(42, 77, 80, 0.1);
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Typography Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

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

/* ==========================================================================
   Layout Helpers
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==========================================================================
   Components (Buttons, Badges, Glass)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(217, 119, 87, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 87, 0.45);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-link {
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
}

.btn-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-icon {
    margin-right: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.5px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    padding-top: 100px; /* offset for navbar */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background blob for organic feel */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(250,249,246,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.hero-trust ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-trust .check {
    color: var(--success);
    font-weight: bold;
    margin-right: 0.5rem;
}

.hero-visual {
    position: relative;
    width: 100%;
}

.visual-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    padding: 0;
    border-radius: var(--radius-lg);
    background: transparent;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--primary);
    margin-left: 6px;
}

.visual-placeholder:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    animation: float 6s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    left: -5%;
}

.badge-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: -3s;
}

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

/* Base Animations for JS intersection observer */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (max-width: 992px) {
    .nav-links {
        display: none; /* simple hidden for mobile, can add hamburger later if asked */
    }
    
    .hero-container {
        display: flex;
        flex-direction: column-reverse; /* Esto pone el visual (que está de segundo en HTML) arriba en móvil */
        text-align: center;
        gap: var(--space-md);
    }
    
    .visual-placeholder {
        width: calc(100% + 3rem); /* Compensar el padding del contenedor (1.5rem x 2) */
        margin-left: -1.5rem;
        border-radius: 0;
        aspect-ratio: auto;
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-subtitle {
        margin: 0 auto var(--space-md);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-trust ul {
        align-items: center;
    }
    
    .badge-1 { left: 5%; }
    .badge-2 { right: 5%; }
}

@media (max-width: 576px) {
    .nav-actions .btn-outline {
        display: none; /* Hide secondary button on very small screens */
    }
    
    .hero {
        padding-top: 120px;
    }
}

/* ==========================================================================
   Internal Sections & Utilities
   ========================================================================== */

.section {
    padding: var(--space-xl) 0;
}

.section-container {
    max-width: 1000px;
}

.bg-white { background-color: #ffffff; }
.bg-cream { background-color: var(--bg-base); }
.bg-light { background-color: rgba(240, 240, 240, 0.5); }
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.text-center { text-align: center; }
.text-white { color: white; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 800px; }
.max-w-md { max-width: 500px; }

.section-header { margin-bottom: var(--space-lg); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-sm); }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.align-center { align-items: center; }

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Feature Cards (El Desafío) */
.feature-card {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.feature-card.with-image {
    padding: 0;
    overflow: hidden;
}
.feature-card.with-image .card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.feature-card.with-image .card-content {
    padding: var(--space-lg);
    flex-grow: 1;
}

.feature-icon {
    width: 60px; height: 60px; border-radius: var(--radius-md); 
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: var(--space-sm);
}

/* Timeline (Cómo Funciona) */
.timeline { margin: var(--space-md) 0; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px;
    background: rgba(217, 119, 87, 0.2);
}
.timeline-item { display: flex; gap: var(--space-sm); margin-bottom: var(--space-md); position: relative; }
.timeline-dot {
    width: 50px; height: 50px; background: var(--primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-family: var(--font-heading); flex-shrink: 0;
    box-shadow: 0 0 0 6px var(--bg-base); z-index: 1;
}
.timeline-text h4 { margin-top: 5px; margin-bottom: 5px; color: var(--primary); }
.timeline-text p { font-size: 0.95rem; color: var(--text-muted); }

/* Chat Mockup Placeholder */
.visual-stack { display: flex; justify-content: flex-end; }
.mockup-placeholder {
    width: 100%; max-width: 380px; background: white; border-radius: 30px;
    overflow: hidden; padding: 0; border: 8px solid rgba(255, 255, 255, 0.5);
}
.mockup-header {
    background: var(--bg-base); padding: 1rem; display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.mockup-title { font-size: 0.85rem; font-weight: 600; margin-left: auto; margin-right: auto; opacity: 0.6; }

.mockup-body {
    padding: 1.5rem 1rem; background: #e5ded8; min-height: 350px;
    display: flex; flex-direction: column; gap: 10px;
}
.chat-bubble {
    padding: 12px 16px; border-radius: 18px; font-size: 0.9rem; line-height: 1.4;
    max-width: 85%; animation: slideIn 0.5s ease backwards;
}
.chat-bubble.receive { background: white; align-self: flex-start; border-bottom-left-radius: 4px; color: #111; }
.chat-bubble.send { background: #dcf8c6; align-self: flex-end; border-bottom-right-radius: 4px; color: #111; animation-delay: 0.8s; }
.chat-bubble:nth-child(3) { animation-delay: 1.6s; }
.chat-bubble:nth-child(4) { animation-delay: 2.2s; }
.mt-xs { margin-top: 4px; }
.video-thumbnail-placeholder {
    background: var(--text-main); color: white; padding: 2rem 1rem; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}

@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Science / Evidence Cards */
.science-card { padding: var(--space-md); text-align: left; }
.hover-lift { transition: transform var(--transition-base), box-shadow var(--transition-base); }
.hover-lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.science-number {
    font-size: 2.5rem; font-family: var(--font-heading); color: var(--primary);
    font-weight: 600; margin-bottom: 0.5rem; line-height: 1;
}

/* Call to Action Section */
.cta-title { color: white; font-size: clamp(2rem, 4vw, 3rem); }
.cta-subtitle { color: rgba(255, 255, 255, 0.8); }
.cta-card {
    background: white; color: var(--text-main); padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg); position: relative; z-index: 2;
}
.price span {
    display: inline-block; padding: 4px 12px; background: var(--primary-light);
    color: var(--primary); font-weight: bold; border-radius: 20px; font-size: 0.9rem;
    margin: 1rem 0;
}
.pricing-features {
    list-style: none; text-align: left; margin: 0 auto var(--space-md); max-width: 300px;
}
.pricing-features li { margin-bottom: 0.5rem; color: var(--text-muted); }
.pricing-features .check { color: var(--success); font-weight: bold; margin-right: 8px; }
.cta-btn { width: 100%; max-width: 300px; }
.hover-white:hover { background: white; color: var(--secondary) !important; }

/* Footer */
.footer { padding: var(--space-md) 0; background: var(--secondary); color: white; }

/* ==========================================================================
   Hamburger / Mobile Menu
   ========================================================================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem var(--space-md) 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.mobile-menu a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
    color: var(--text-main);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--primary); }

.mobile-menu.is-open { display: flex; }

@media (max-width: 992px) {
    .hamburger { display: flex; }
    .nav-actions { display: none; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-card {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary);
    font-family: var(--font-body);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FAQ / Accordion
   ========================================================================== */

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-item:first-child {
    border-top: 1px solid rgba(0,0,0,0.08);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1.25rem 0;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    line-height: 1;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* ==========================================================================
   CTA: Garantía y elementos extra
   ========================================================================== */

.guarantee-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(29, 160, 104, 0.08);
    border: 1px solid rgba(29, 160, 104, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1.25rem 0;
    text-align: left;
}

.guarantee-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.guarantee-badge strong {
    display: block;
    font-size: 0.9rem;
    color: var(--success);
    margin-bottom: 0.2rem;
    font-family: var(--font-body);
}

.guarantee-badge p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.cta-secure {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* ==========================================================================
   Two-product Pricing Grid
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
    background: white;
    color: var(--text-main);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    text-align: left;
}

.pricing-card--secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
}

.pricing-card--secondary h3,
.pricing-card--secondary .pricing-desc {
    color: white;
}

.pricing-card--secondary .pricing-features li {
    color: rgba(255,255,255,0.85);
}

.pricing-card--secondary .pricing-features strong {
    color: white;
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: -0.4rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.pricing-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.4px;
}

.pricing-badge--secondary {
    background: rgba(255,255,255,0.15);
    color: white;
}

.price--secondary {
    background: rgba(255,255,255,0.15) !important;
    color: white !important;
}

.guarantee-badge--light {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.guarantee-badge--light strong { color: rgba(255,255,255,0.9); }
.guarantee-badge--light p { color: rgba(255,255,255,0.65); }

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.7);
    width: 100%;
    max-width: 300px;
}

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



