/* ==========================================================================
   MAÑANA EMPIEZO · Landing de venta del ebook
   Paleta tomada de la portada. Mobile-first.
   ========================================================================== */

:root {
    --cream: #FDF4E9;
    --cream-2: #FEE3D0;
    --orange: #E56217;          /* acento: palabras grandes, subrayado, ilustraciones */
    --orange-cta: #BF4E0F;      /* botones: blanco sobre este naranja = 4.9:1 (AA) */
    --orange-cta-hover: #A3420C;
    --orange-text: #B4490E;     /* naranja para texto chico sobre crema (AA) */
    --ink: #300C05;             /* títulos y texto fuerte */
    --text: #5A3A30;            /* cuerpo */
    --muted: #7A5548;
    --pink: #F4CDC3;
    --salmon: #F0A08C;
    --brick: #A8321E;
    --white: #FFFFFF;
    --line: rgba(48, 12, 5, 0.1);

    --shadow-sm: 0 2px 10px rgba(48, 12, 5, 0.06);
    --shadow-md: 0 12px 32px -8px rgba(48, 12, 5, 0.14);
    --shadow-cta: 0 8px 22px -6px rgba(191, 78, 15, 0.55);

    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 28px;
    --r-full: 999px;

    --font-title: 'Outfit', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

    --gutter: 20px;
    --maxw: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3 {
    font-family: var(--font-title);
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 7.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 5.6vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

strong { color: var(--ink); font-weight: 700; }

:focus-visible {
    outline: 3px solid var(--orange-cta);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 100;
    background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-warm { background: var(--cream-2); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--text); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange-text);
    margin-bottom: 0.75rem;
}

/* Subrayado curvo de la portada */
.u {
    position: relative;
    white-space: nowrap;
    color: var(--orange);
}
.u::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -4%;
    bottom: -0.16em;
    height: 0.28em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C 55 4, 120 2, 197 6' fill='none' stroke='%23E56217' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    pointer-events: none;
}
.u-ink { color: inherit; }

/* ===== Botones ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.85rem 1.6rem;
    border-radius: var(--r-full);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.08rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-buy {
    background: var(--orange-cta);
    color: var(--white);
    box-shadow: var(--shadow-cta);
}
.btn-buy:hover { background: var(--orange-cta-hover); transform: translateY(-1px); }
.btn-buy .arrow { transition: transform .2s ease; }
.btn-buy:hover .arrow { transform: translateX(3px); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(48, 12, 5, 0.25);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { min-height: 58px; font-size: 1.15rem; padding: 1rem 2rem; }

.link {
    color: var(--orange-text);
    font-weight: 600;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.link:hover { color: var(--ink); }

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 0.9rem;
}
.trust span { display: inline-flex; align-items: center; gap: 0.35rem; }
.trust svg { width: 16px; height: 16px; flex: none; color: var(--brick); }

.price-line {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.price {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 2rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.price-old { color: var(--muted); text-decoration: line-through; font-size: 1.05rem; }
.price-note { font-size: 0.88rem; color: var(--muted); }

/* ===== Barra superior ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(253, 244, 233, 0.92);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
}
.brand {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.brand em { font-style: normal; color: var(--orange-text); }
.byline {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-align: right;
}
.byline:hover { color: var(--ink); text-decoration: underline; }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 16px 0 64px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    right: -180px; top: -120px;
    background: radial-gradient(circle, var(--cream-2) 0%, rgba(254, 227, 208, 0) 70%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    gap: 1.25rem;
    align-items: center;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pink);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--r-full);
    margin-bottom: 1.1rem;
}
.badge svg { width: 16px; height: 16px; color: var(--brick); }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { max-width: 34ch; margin-bottom: 1.4rem; }
.hero-media { position: relative; order: -1; width: 100%; max-width: 330px; margin: 0 auto -0.5rem; }
.hero-media img {
    width: 100%;
    mix-blend-mode: multiply; /* el fondo blanco del mockup se funde con el crema */
}
.zzz {
    position: absolute;
    right: 6%;
    top: 4%;
    font-family: var(--font-title);
    font-weight: 800;
    color: var(--orange);
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    opacity: 0.9;
}
.zzz span { display: inline-block; animation: zzz 3.2s ease-in-out infinite; }
.zzz span:nth-child(1) { font-size: 0.6em; }
.zzz span:nth-child(2) { font-size: 0.8em; animation-delay: .3s; }
.zzz span:nth-child(3) { animation-delay: .6s; }
@keyframes zzz {
    0%, 100% { transform: translateY(0); opacity: .9; }
    50% { transform: translateY(-5px); opacity: .55; }
}
.hero-buy { display: grid; gap: 0.9rem; }
.hero-buy .price-line { margin-bottom: 0.1rem; }

/* ===== ¿Te pasa esto? ===== */
.pain-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 2rem;
}
.pain-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--r-md);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-sm);
}
.pain-icon {
    flex: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--cream-2);
    display: grid; place-items: center;
    color: var(--brick);
}
.pain-icon svg { width: 20px; height: 20px; }
.pain-item p { margin: 0; }
.pain-close {
    margin-top: 2rem;
    font-size: 1.15rem;
    color: var(--ink);
    font-weight: 500;
}

/* ===== Reencuadre ===== */
.reframe-grid { display: grid; gap: 2rem; }
.reframe-cards { display: grid; gap: 1rem; }
.reframe-card {
    background: var(--cream);
    border-radius: var(--r-md);
    padding: 1.4rem;
    border-left: 4px solid var(--salmon);
}
.reframe-card h3 { margin-bottom: 0.35rem; }
.reframe-card p { font-size: 1rem; }
.quote {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.35;
    color: var(--ink);
    background: var(--pink);
    border-radius: var(--r-lg);
    padding: 1.6rem;
    margin-top: 1.5rem;
}

/* ===== Pilares ===== */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 2rem 0 2.5rem;
}
.pillar {
    background: var(--white);
    border-radius: var(--r-md);
    padding: 1.2rem 0.6rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.pillar svg { width: 34px; height: 34px; color: var(--brick); margin: 0 auto 0.5rem; }
.pillar strong {
    display: block;
    font-family: var(--font-title);
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--ink);
}
.pillar span { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brick); font-weight: 600; line-height: 1.3; display: block; }
.pillar p { font-size: 0.92rem; margin-top: 0.6rem; display: none; }

/* ===== Acordeón ===== */
.acc { border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-sm); }
.acc + .acc { margin-top: 0.75rem; }
.acc-btn {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: none;
    border: 0;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    border-radius: var(--r-md);
}
.acc-btn .chev {
    flex: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--cream-2);
    display: grid; place-items: center;
    transition: transform .25s ease;
}
.acc-btn .chev svg { width: 14px; height: 14px; color: var(--ink); }
.acc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-panel { padding: 0 1.25rem 1.25rem; }
.acc-panel p + p { margin-top: 0.6rem; }

.chapters li {
    display: flex;
    gap: 0.9rem;
    align-items: baseline;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
}
.chapters li:first-child { border-top: 0; }
.ch-num {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--orange-text);
    font-size: 0.95rem;
    min-width: 1.6rem;
}

/* ===== Plan 7 días ===== */
.plan {
    position: relative;
    margin-top: 2.5rem;
    display: grid;
    gap: 1.25rem;
}
.plan::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--salmon) 0 6px, transparent 6px 12px);
}
.day {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.day-dot {
    position: relative;
    flex: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--salmon);
    display: grid; place-items: center;
    font-family: var(--font-title);
    font-weight: 800;
    color: var(--ink);
}
.day:first-child .day-dot { background: var(--orange-cta); border-color: var(--orange-cta); color: var(--white); }
.day > div {
    background: var(--white);
    border-radius: var(--r-md);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow-sm);
    flex: 1;
}
.day-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange-text);
    font-weight: 700;
    margin-bottom: 0.1rem;
}
.day h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.day p:last-child { font-size: 0.97rem; }

/* ===== Para quién ===== */
.fit-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.fit-card {
    border-radius: var(--r-lg);
    padding: 1.6rem 1.4rem;
}
.fit-yes { background: var(--white); box-shadow: var(--shadow-sm); }
.fit-no { background: transparent; border: 2px dashed rgba(48, 12, 5, 0.18); }
.fit-card h3 { margin-bottom: 1rem; display: flex; gap: 0.6rem; align-items: center; }
.fit-card li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.45rem 0;
}
.fit-card li svg { flex: none; width: 20px; height: 20px; margin-top: 4px; }
.fit-yes li svg { color: var(--orange-cta); }
.fit-no li svg { color: var(--muted); }

/* ===== Autora ===== */
.author {
    display: grid;
    gap: 1.75rem;
    align-items: center;
}
.author-photo {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}
.author-photo img {
    border-radius: 48% 52% 46% 54% / 40% 42% 58% 60%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}
.author-photo::after {
    content: "";
    position: absolute;
    inset: auto -14px -14px auto;
    width: 96px; height: 96px;
    border-radius: 50%;
    background: var(--salmon);
    z-index: -1;
}
.author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1.25rem;
}
.chip {
    background: var(--cream-2);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: var(--r-full);
}
.author p + p { margin-top: 0.8rem; }

/* ===== Testimonios ===== */
.testi-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.testi-card {
    background: var(--white);
    border-radius: var(--r-md);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
}
.testi-card blockquote { color: var(--ink); font-size: 1.02rem; }
.testi-card figcaption { margin-top: 0.8rem; font-size: 0.9rem; color: var(--muted); }

/* ===== Oferta ===== */
.offer {
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 1.6rem 1.25rem;
    display: grid;
    gap: 1.5rem;
    border: 2px solid var(--pink);
}
.offer-media { background: var(--cream); border-radius: var(--r-md); padding: 0.5rem; }
.offer-media img { mix-blend-mode: multiply; }
.offer h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.includes { margin: 1rem 0 1.4rem; display: grid; gap: 0.55rem; }
.includes li { display: flex; gap: 0.7rem; align-items: flex-start; }
.includes svg { flex: none; width: 22px; height: 22px; color: var(--orange-cta); margin-top: 3px; }
.offer .price { font-size: 2.6rem; }
.payments {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--muted);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}
.payments svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brick); }
.seal {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    background: var(--cream);
    border-radius: var(--r-md);
    padding: 0.9rem 1rem;
    margin-top: 1.1rem;
}
.seal-badge {
    flex: none;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--orange-cta);
    color: var(--white);
    display: grid; place-items: center;
    text-align: center;
    font-family: var(--font-title);
    font-weight: 800;
    line-height: 1;
    font-size: 1.35rem;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--pink);
}
.seal-badge small { display: block; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
.seal p { font-size: 0.92rem; margin: 0; }

/* ===== Garantía ===== */
.guarantee {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    background: var(--pink);
    border-radius: var(--r-lg);
    padding: 1.8rem 1.4rem;
}
.guarantee .seal-badge { width: 84px; height: 84px; font-size: 2rem; box-shadow: 0 0 0 5px var(--pink), 0 0 0 7px var(--white); }
.guarantee .seal-badge small { font-size: 0.65rem; }
.guarantee h2 { font-size: clamp(1.45rem, 4.6vw, 2rem); margin-bottom: 0.5rem; }

/* ===== Cierre ===== */
.closing {
    background: var(--ink);
    color: #F6E4D6;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.closing h2 { color: var(--white); }
.closing .u { color: #FF9A5C; }
.closing .u::after { filter: brightness(1.25); }
.closing p { color: #F6E4D6; max-width: 34em; margin: 0 auto 1.8rem; }
.closing .wa-link { color: #FFD0B0; }
.closing .wa-link:hover { color: var(--white); }
.closing .price-note { color: #E6CBBB; }
.closing-ctas { display: grid; gap: 0.6rem; justify-items: center; }

/* ===== Footer ===== */
.footer {
    background: #240903;
    color: #E6CBBB;
    font-size: 0.88rem;
    padding: 2rem 0 6.5rem;
    text-align: center;
}
.footer a { color: #FFD0B0; }
.footer p + p { margin-top: 0.5rem; }
.footer .disclaimer { max-width: 40em; margin: 0.9rem auto 0; color: #D8B9A8; }

/* ===== CTA sticky (mobile) ===== */
.sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(48, 12, 5, 0.08);
    transform: translateY(110%);
    transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .s-title { font-family: var(--font-title); font-weight: 700; color: var(--ink); line-height: 1.15; font-size: 0.95rem; }
.sticky-cta .s-price { font-size: 0.85rem; color: var(--muted); }
.sticky-cta .btn { min-height: 48px; padding: 0.6rem 1.15rem; font-size: 1rem; white-space: nowrap; }

/* ===== Animaciones ===== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .zzz span { animation: none; }
    .btn, .sticky-cta, .acc-btn .chev { transition: none; }
}

/* ===== Página de gracias / test (compartido) ===== */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; }
.page-simple main { flex: 1; }
.card {
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 1.6rem 1.3rem;
}
.steps { counter-reset: step; display: grid; gap: 1rem; margin: 1.5rem 0; }
.steps li { counter-increment: step; display: flex; gap: 0.9rem; align-items: flex-start; }
.steps li::before {
    content: counter(step);
    flex: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--cream-2);
    color: var(--ink);
    font-family: var(--font-title);
    font-weight: 800;
    display: grid; place-items: center;
}
.next-step { border: 2px solid var(--pink); }

/* ===== Breakpoints ===== */
@media (min-width: 600px) {
    :root { --gutter: 28px; }
    .pain-list { grid-template-columns: 1fr 1fr; }
    .pillar p { display: block; }
    .fit-grid { grid-template-columns: 1fr 1fr; }
    .testi-grid { grid-template-columns: 1fr 1fr; }
    .guarantee { grid-template-columns: auto 1fr; padding: 2.2rem; }
    .card { padding: 2.2rem; }
}

@media (min-width: 900px) {
    .section { padding: 104px 0; }
    .hero { padding: 64px 0 96px; }
    .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 2.5rem; }
    .hero-media { order: 0; margin: 0; max-width: none; }
    .hero .lead { font-size: 1.22rem; }
    .hero-buy { max-width: 460px; }
    .reframe-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
    .author { grid-template-columns: 320px 1fr; gap: 3.5rem; }
    .offer { grid-template-columns: 1fr 1.05fr; padding: 2.75rem; align-items: center; }
    .plan { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
    .plan::before { display: none; }
    .sticky-cta { display: none; }
    .footer { padding-bottom: 2rem; }
}
