:root {
    /* Color Palette - Carbón & Ámbar */
    --bg-main: #FBF9F6;
    --bg-section: #FBF9F6;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-primary: #1C1B19;
    --text-dark: #1C1B19;
    --text-muted: #6B6864;
    --accent-orange: #D99A3D;
    --accent-blue: #1C1B19;
    --accent-green: #8A6A3B;
    --border-glass: rgba(28, 27, 25, 0.08);
    --glow-orange: rgba(217, 154, 61, 0.15);
    --glow-blue: rgba(28, 27, 25, 0.25);
    
    /* Typography */
    --font-heading: 'EB Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shapes */
    --radius-round: 8px;
    
    /* Transitions */
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;

    /* Fixed top stack */
    --banner-height: 40px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ================= UTILS ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 10rem 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent { color: var(--accent-orange); }
.text-green { color: var(--accent-green); }

/* ================= TYPOGRAPHY ================= */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 7vw, 3.8rem); font-weight: 700; color: var(--text-dark); line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 700; margin-bottom: 4rem; text-align: center; color: var(--text-dark); }
h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text-dark); }

/* ================= NAV ================= */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--banner-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-orange);
    color: white;
    text-align: center;
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 1001;
}

#main-nav {
    position: fixed;
    top: var(--banner-height);
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(251, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}

#main-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
}

.nav-logo span {
    font-weight: 400;
    color: var(--accent-orange);
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

.nav-cta {
    color: var(--accent-orange) !important;
    font-weight: 700 !important;
}

/* Selector de idioma */
.lang-switch {
    display: flex;
    gap: 0.3rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-glass);
}
.lang-switch-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: var(--transition-fast);
}
.lang-switch-btn:hover { color: var(--text-dark); }
.lang-switch-btn.active {
    color: var(--accent-orange);
    background: rgba(217, 154, 61, 0.12);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    width: 44px;
    height: 44px;
    z-index: 1100;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

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

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

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(251, 249, 246, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 1050;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.4rem;
        font-family: var(--font-heading);
    }
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    padding: 1.1rem 2.4rem;
    border-radius: var(--radius-round);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-slow);
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 14px var(--glow-blue);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-blue);
    background: #0F0E0D;
}

.btn-secondary {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 4px 14px var(--glow-orange);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-orange);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-orange);
}
.btn-outline:hover {
    background: var(--accent-orange);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border-glass);
    padding: 1.1rem 2rem;
}
.btn-ghost:hover {
    background: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--text-muted);
}

/* ================= HERO ================= */
.hero {
    min-height: 100vh;
    padding-top: calc(80px + var(--banner-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image-container { display: none; }
    .hero-social-proof { justify-content: center; }
    .hero-ctas { justify-content: center; }
}

.hero-content { z-index: 10; }
.hero-image-container { position: relative; z-index: 1; }

/* Hero social proof counters */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-sp-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-sp-item > span:first-of-type {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
}

.hero-sp-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
}

.hero-sp-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 0.2rem;
}

.hero-sp-divider {
    width: 1px;
    height: 40px;
    background: var(--border-glass);
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-coach-img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-round);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: var(--transition-slow);
}
.hero-coach-img:hover { transform: scale(1.01); }

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(217, 154, 61, 0.12) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Hero floating badge */
.hero-badge-float {
    position: absolute;
    bottom: 1.5rem;
    left: -1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-size: 0.85rem;
    color: var(--text-dark);
    animation: float 3s ease-in-out infinite;
}

.hero-badge-float i {
    color: var(--accent-blue);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-badge-float strong {
    color: var(--accent-blue);
}

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

.hero .disruptive-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 1.5rem 0 2.5rem;
    line-height: 1.6;
}

/* ================= HERO TRUST CHIPS ================= */
.hero-trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-glass);
    padding: 0.45rem 0.9rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.hero-chip i {
    width: 14px; height: 14px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .hero-trust-chips { justify-content: center; }
}

/* ================= TRUST STRIP (prueba social bajo el hero) ================= */
.trust-strip {
    background: var(--bg-white);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 2.5rem 0;
}

.trust-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-strip-stars {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-shrink: 0;
}
.trust-strip-stars span:last-child {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.trust-strip-quotes {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.trust-strip-quotes blockquote {
    margin: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-dark);
    border-left: 3px solid var(--accent-orange);
    padding-left: 1rem;
    max-width: 320px;
}
.trust-strip-quotes cite {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.trust-strip-link {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-blue);
    text-decoration: none;
    white-space: nowrap;
}
.trust-strip-link:hover { text-decoration: underline; }

@media (max-width: 992px) {
    .trust-strip-inner { justify-content: center; text-align: center; }
    .trust-strip-quotes { justify-content: center; }
    .trust-strip-quotes blockquote { border-left: none; border-top: 3px solid var(--accent-orange); padding-left: 0; padding-top: 0.75rem; max-width: 100%; }
}
@media (max-width: 600px) {
    .trust-strip-quotes { flex-direction: column; gap: 1.5rem; }
}

/* ================= SPLIT PATH ================= */
.split-path {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.split-card {
    background: var(--bg-white);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.split-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(28, 27, 25, 0.08);
    border-color: var(--accent-blue);
}
.split-card-orange:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 30px 60px rgba(217, 154, 61, 0.08);
}
.split-card-green:hover {
    border-color: var(--accent-green);
    box-shadow: 0 30px 60px rgba(138, 106, 59, 0.08);
}
.split-card h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.split-card p { color: var(--text-muted); font-size: 1rem; max-width: 320px; }

.split-icon {
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.split-icon i { width: 36px; height: 36px; }
.split-icon-blue { background: rgba(28, 27, 25, 0.05); }
.split-icon-blue i { color: var(--accent-blue); }
.split-icon-orange { background: rgba(217, 154, 61, 0.05); }
.split-icon-orange i { color: var(--accent-orange); }
.split-icon-green { background: rgba(138, 106, 59, 0.08); }
.split-icon-green i { color: var(--accent-green); }

@media (max-width: 992px) {
    .split-path { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .split-path { grid-template-columns: 1fr; }
}

/* ================= GLASS CARDS ================= */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 3rem;
    border-radius: var(--radius-round);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}
.card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

/* Phase label */
.phase-label {
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* ================= URGENCY BAR ================= */
.urgency-bar {
    background: rgba(217, 154, 61, 0.04);
    border: 1px solid rgba(217, 154, 61, 0.15);
    border-radius: var(--radius-round);
    padding: 1rem 1.25rem;
}

.urgency-bar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.urgency-bar-header i {
    color: var(--accent-orange);
    flex-shrink: 0;
}

.urgency-track {
    height: 6px;
    background: rgba(217, 154, 61, 0.1);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.urgency-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), #C17F28);
    border-radius: 99px;
    transition: width 1.2s ease;
}

.urgency-bar-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ================= PROGRAM META ================= */
.program-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.program-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-glass);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* ================= PROGRAM YEARS ================= */
.program-years {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.program-year {
    background: var(--bg-white);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.program-year h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.6rem 0 0.5rem;
    color: var(--text-dark);
}

.program-year p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.program-year-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.program-year-divider {
    font-size: 2rem;
    color: var(--accent-orange);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.5rem;
}

@media (max-width: 600px) {
    .program-years {
        grid-template-columns: 1fr;
    }
    .program-year-divider {
        transform: rotate(90deg);
        padding: 0;
    }
    .program-meta {
        gap: 0.75rem;
    }
}

/* ================= AVAL BADGES ================= */
.aval-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.aval-chip {
    background: var(--bg-white);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.aval-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
}

/* ================= STAR RATING ================= */
.star-rating {
    color: var(--accent-orange);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

/* ================= TESTIMONIALS ================= */
.testimonial-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.testimonial-content {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    position: relative;
    flex-grow: 1;
}
.testimonial-content::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem; left: -0.25rem;
    font-size: 3.5rem;
    line-height: 1;
    opacity: 0.12;
    color: var(--accent-orange);
    font-family: var(--font-heading);
    pointer-events: none;
}
.testimonial-content p {
    position: relative;
    z-index: 1;
}

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

.testimonial-author .avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    color: white;
    flex-shrink: 0;
}

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

/* ================= TESTIMONIALS MARQUEE ================= */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    will-change: transform;
    animation: marquee-scroll 70s linear infinite;
}

.carousel-container:hover .carousel-track,
.carousel-container.paused .carousel-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.carousel-slide {
    width: 340px;
    flex: 0 0 340px;
    display: flex;
}
.carousel-slide > .card { width: 100%; }

/* Reuses the round icon-button style for the pause/play toggle */
.carousel-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-dark);
}
.carousel-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}
.carousel-btn i { width: 18px; height: 18px; }

/* ================= PREMIUM FORM ================= */
.premium-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-round);
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, 
.form-group textarea,
.form-group select {
    background: #fcfcfc;
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: var(--radius-round);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px var(--glow-blue);
}

/* ================= AUTHOR ================= */
/* ================= ANIMATIONS ================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= BADGES ================= */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-orange { background: var(--accent-orange); color: white; }
.badge-outline { border: 1px solid var(--accent-orange); color: var(--accent-orange); }

/* ================= SOCIAL LINKS ================= */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.social-link {
    color: var(--text-dark);
    transition: var(--transition-fast);
    text-decoration: none;
}
.social-link:hover {
    color: var(--accent-orange);
    transform: translateY(-3px);
}


/* ================= E-BOOK SECTION ================= */
.ebook-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ================= BOOK MOCKUP (E-BOOK 3D) ================= */
.book-mockup-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 3rem;
    perspective: 1800px;
}

.book-mockup {
    position: relative;
    width: 100%;
    max-width: 280px;
    transform-style: preserve-3d;
    transform: rotateY(-30deg) rotateX(2deg);
    transition: var(--transition-slow);
    cursor: pointer;
}
.book-mockup:hover {
    transform: rotateY(-18deg) rotateX(1deg) translateY(-8px);
}

.book-cover {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px 8px 8px 2px;
    box-shadow:
        1px 1px 0 rgba(0,0,0,0.08),
        10px 10px 25px -5px rgba(0,0,0,0.3),
        25px 30px 45px -15px rgba(0,0,0,0.25);
    position: relative;
    z-index: 2;
}

/* Page edges, simulated on the right side of the cover */
.book-pages {
    position: absolute;
    top: 4px;
    right: 0;
    bottom: 4px;
    width: 22px;
    background:
        repeating-linear-gradient(
            to bottom,
            #f7f4ec 0px, #f7f4ec 2px,
            #e6e1d3 2px, #e6e1d3 3px
        );
    transform: rotateY(90deg) translateX(11px);
    transform-origin: left center;
    border-radius: 0 3px 3px 0;
    box-shadow: inset -3px 0 6px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Spine shadow where the cover folds */
.book-mockup::before {
    content: '';
    position: absolute;
    top: 1%;
    left: 0;
    width: 6%;
    height: 98%;
    background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
    z-index: 3;
    pointer-events: none;
}

/* Contact shadow on the "table" beneath the book */
.book-mockup::after {
    content: '';
    position: absolute;
    left: 10%;
    right: -10%;
    bottom: -1.5rem;
    height: 1.5rem;
    background: radial-gradient(ellipse at center, rgba(28,27,25,0.25) 0%, transparent 75%);
    z-index: 0;
    transform: rotateX(90deg);
}

@media (max-width: 992px) {
    .book-mockup-wrap { padding: 1rem 2rem; }
    .book-mockup { max-width: 220px; }
}

.ebook-form-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (max-width: 992px) {
    .ebook-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .ebook-image { max-width: 260px; }
    .ebook-form-card h2 { text-align: center; }
}

/* ================= TIENDA DE E-BOOKS (PAGOS) ================= */
.ebooks-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.ebook-store-card {
    background: var(--bg-white);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-slow);
}
.ebook-store-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ebook-store-card .book-mockup-wrap { padding: 0.5rem; margin-bottom: 1.5rem; perspective: 1200px; }
.ebook-store-card .book-mockup { max-width: 140px; }

.ebook-store-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}
.ebook-store-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.35;
}
.ebook-store-title-en {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}
.ebook-store-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.55;
}
.ebook-store-toc {
    list-style: none;
    text-align: left;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    background: var(--bg-cream, rgba(0,0,0,0.02));
    border-radius: 8px;
    flex-grow: 1;
}
.ebook-store-toc li {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding-left: 1.1rem;
    position: relative;
}
.ebook-store-toc li + li { margin-top: 0.4rem; }
.ebook-store-toc li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 700;
}
.ebook-store-price {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.ebook-buy-btn { width: 100%; }
.ebook-buy-btn.is-loading { opacity: 0.7; cursor: wait; }
.ebook-buy-stage,
.ebook-checkout-form { width: 100%; margin-top: auto; }
.ebook-checkout-cancel:hover { text-decoration: underline; }

/* ================= OFERTA DE COMBO (5 E-BOOKS) ================= */
.ebook-bundle-card {
    display: flex;
    gap: 3rem;
    align-items: center;
    background: #1C1B19;
    border-radius: 16px;
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}
.ebook-bundle-info { flex: 1.3; }
.ebook-bundle-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: #F5F0E6;
    margin-bottom: 0.75rem;
}
.ebook-bundle-desc {
    color: rgba(245, 240, 230, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.ebook-bundle-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem 1.5rem;
}
.ebook-bundle-list li {
    font-size: 0.85rem;
    color: rgba(245, 240, 230, 0.85);
    padding-left: 1.3rem;
    position: relative;
    line-height: 1.5;
}
.ebook-bundle-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 700;
}
.ebook-bundle-buy {
    flex: 1;
    min-width: 260px;
    text-align: center;
    background: rgba(245, 240, 230, 0.04);
    border: 1px solid rgba(245, 240, 230, 0.12);
    border-radius: 12px;
    padding: 2rem 1.75rem;
}
.ebook-bundle-was {
    font-size: 0.85rem;
    color: rgba(245, 240, 230, 0.5);
    text-decoration: line-through;
    margin-bottom: 0.35rem;
}
.ebook-bundle-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 0.35rem;
}
.ebook-bundle-price span { font-size: 1.15rem; opacity: 0.85; }
.ebook-bundle-savings {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1C1B19;
    background: var(--accent-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}
.ebook-bundle-buy .ebook-buy-btn { width: 100%; }
.ebook-bundle-buy .btn-primary {
    background: var(--accent-orange);
    color: #1C1B19;
    box-shadow: 0 4px 14px var(--glow-orange);
}
.ebook-bundle-buy .btn-primary:hover {
    background: #C17F28;
    box-shadow: 0 6px 20px var(--glow-orange);
}
.ebook-bundle-buy .form-group label { color: rgba(245, 240, 230, 0.7); }
.ebook-bundle-buy .ebook-checkout-form input {
    background: rgba(245, 240, 230, 0.06);
    border-color: rgba(245, 240, 230, 0.2);
    color: #F5F0E6;
}
.ebook-bundle-buy .ebook-checkout-form input::placeholder { color: rgba(245, 240, 230, 0.4); }
.ebook-bundle-buy .ebook-checkout-form input:focus {
    border-color: var(--accent-orange);
    background: rgba(245, 240, 230, 0.09);
    box-shadow: 0 0 15px var(--glow-orange);
}

@media (max-width: 860px) {
    .ebook-bundle-card { flex-direction: column; padding: 2.25rem 1.75rem; gap: 2rem; }
    .ebook-bundle-buy { width: 100%; }
}

/* ================= POP-UP PROMOCIONAL DE E-BOOKS ================= */
.ebook-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 27, 25, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ebook-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.ebook-popup {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s ease;
}
.ebook-popup-overlay.visible .ebook-popup {
    transform: translateY(0) scale(1);
}
.ebook-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-main);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}
.ebook-popup-close:hover { background: var(--border-glass); color: var(--text-dark); }
.ebook-popup-close svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
    .ebook-popup { padding: 2.25rem 1.5rem 1.75rem; }
}

/* ================= ACCORDION / FAQ ================= */
.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-round);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.accordion-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.15rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.accordion-header:hover {
    background: rgba(28, 27, 25, 0.03);
}
.accordion-header:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: -2px;
}
.accordion-header i {
    flex-shrink: 0;
    transition: var(--transition-fast);
    color: var(--accent-orange);
}
.accordion-item.open .accordion-header i {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--text-muted);
}
.accordion-content p {
    padding: 0 2rem 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}
.accordion-item.open .accordion-content {
    max-height: 400px;
}
.accordion-item.open {
    border-color: var(--accent-blue);
}

/* ================= PROGRESS RAIL ================= */
.progress-rail {
    position: fixed;
    left: 2.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.progress-rail-track {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 3px;
    width: 2px;
    background: var(--border-glass);
    border-radius: 2px;
}

.progress-rail-fill {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent-blue);
    border-radius: 2px;
    transition: height 0.1s linear;
}

.progress-rail-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    pointer-events: none;
}

.progress-rail-item .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--border-glass);
    flex-shrink: 0;
    transition: var(--transition-fast);
    position: relative;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

.progress-rail-item .label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition-fast);
    white-space: nowrap;
    background: var(--bg-white);
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.progress-rail:hover .progress-rail-item .label,
.progress-rail-item.is-current .label {
    opacity: 1;
    transform: translateX(0);
}

.progress-rail-item.is-done .dot {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}
.progress-rail-item.is-current .dot {
    border-color: var(--accent-orange);
    background: var(--accent-orange);
    box-shadow: 0 0 0 5px rgba(217, 154, 61, 0.15);
}
.progress-rail-item.is-current .label {
    color: var(--text-dark);
}

@media (max-width: 1180px) {
    .progress-rail { display: none; }
}

/* ================= STICKY CTA BAR ================= */
.sticky-cta-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    background: var(--text-dark);
    color: var(--bg-main);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.18);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-cta-bar.visible {
    transform: translateY(0);
}

.sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 0;
}

.sticky-cta-label {
    font-size: 0.85rem;
    color: rgba(251, 249, 246, 0.75);
}
.sticky-cta-label strong {
    color: var(--bg-main);
}

.btn-sticky {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-orange);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-round);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.btn-sticky:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.btn-sticky svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (max-width: 700px) {
    .sticky-cta-label { display: none; }
    .sticky-cta-inner { justify-content: center; padding: 0.7rem 0; }
}

/* ================= MICRO-CTA (inline text links) ================= */
.micro-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}
.micro-cta a {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}
.micro-cta a:hover { text-decoration: underline; }
.micro-cta span.lead { color: var(--text-muted); font-size: 0.95rem; }

/* ================= SECTION QUOTE (hook entre secciones) ================= */
.section-quote {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}
.section-quote p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    line-height: 1.4;
    color: var(--text-dark);
    border-left: 3px solid var(--accent-orange);
    padding-left: 1.5rem;
    text-align: left;
    display: inline-block;
}
.section-quote p span {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

/* ================= BIO STATS GRID ================= */
.bio-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
}
@media (min-width: 760px) {
    .bio-stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
    .bio-stats-grid { grid-template-columns: 1fr; }
}

/* ================= RESPONSIVE ADJUSTMENTS ================= */
@media (max-width: 768px) {
    .hero { text-align: center; }
    .section-padding { padding: 6rem 0; }
    h2 { margin-bottom: 2.5rem; }

    /* Tighten vertical rhythm above the H1 so a CTA reaches the first mobile screen */
    .hero-social-proof { margin-bottom: 1.25rem; }
    .hero-trust-chips { margin-bottom: 1rem; justify-content: center; }
    .hero .disruptive-text { margin: 1rem 0 1.5rem; }
}

@media (max-width: 560px) {
    .hero-social-proof {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        text-align: center;
    }
    .hero-sp-divider { display: none; }
    .hero-sp-item { align-items: center; }
}

@media (max-width: 480px) {
    .hero-social-proof { gap: 0.5rem; }
    .hero-sp-num { font-size: 1.6rem; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { text-align: center; }
}

/* ================= ACCESSIBILITY: FOCUS STATES ================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ================= ACCESSIBILITY: REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    /* Infinite-loop animations must stop outright, not strobe at 0.01ms */
    .carousel-track,
    .hero-badge-float {
        animation: none !important;
    }
}
