@font-face { font-family: 'Montserrat'; src: url('/css/Montserrat.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/css/Montserrat-Italic.ttf') format('truetype'); font-weight: 100 900; font-style: italic; font-display: swap; }

/* Paleta de la landing de EMBRACE */
:root {
  --bg: #1d1a15;
  --bg2: #26211a;
  --bg3: #2e281f;
  --ink: #EFE8DC;
  --muted: #B8B0A0;
  --soft: #8d8576;
  --cream: #F4EFE6;
  --sage: #9AA690;
  --arena: #CFC393;
  --terra: #C78A78;
  --bronze: #CBA46A;
  --olivo: #444638;
  --line: rgba(239, 232, 220, .12);
  --line2: rgba(239, 232, 220, .22);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { font-family: 'Montserrat', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 16px; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(199, 138, 120, .35); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Barra superior: flota sobre las fotos */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; }
.topbar.solid { position: relative; }
.brand { font-weight: 600; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--cream); }
.topbar nav a { font-size: 13px; font-weight: 500; margin-left: 22px; color: rgba(239, 232, 220, .78); transition: color .2s; }
.topbar nav a:hover { color: var(--cream); }

/* Tipografía */
h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.eyebrow { font-size: 15px; font-weight: 300; font-style: italic; color: var(--arena); margin-bottom: 14px; }
.hero .eyebrow { font-size: clamp(26px, 3.4vw, 40px); font-weight: 300; letter-spacing: -.01em; line-height: 1.1; color: var(--arena); margin-bottom: 10px; text-shadow: 0 2px 20px rgba(20, 17, 13, .6); }
.lead { font-size: clamp(17px, 2vw, 21px); font-weight: 300; color: rgba(239, 232, 220, .88); max-width: 34ch; }
.muted { color: var(--muted); }
p + p { margin-top: 12px; }
.kicker { font-size: 14px; font-weight: 300; font-style: italic; color: var(--arena); }

/* Botones (los de la landing) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; font: 600 13px 'Montserrat', sans-serif; letter-spacing: .14em; text-transform: uppercase; background: var(--terra); color: #33241d; padding: 19px 34px; border-radius: 100px; border: 0; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, opacity .2s; box-shadow: 0 16px 36px -14px rgba(199, 138, 120, .7); }
.btn:hover { transform: translateY(-2px); }
.btn[disabled] { opacity: .3; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--arena); }
.btn.light { background: var(--cream); color: #3a3c30; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .5); }
.btn.block { width: 100%; }

/* Hero del curso: foto completa, sin velo pesado */
.hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero > picture { position: absolute; inset: 0; }
.hero > picture img, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.02); animation: drift 18s var(--ease) both; }
@media (min-width: 821px) { .hero > picture img { object-position: 50% 42%; } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1.02); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 26, 21, .25) 0%, rgba(29, 26, 21, 0) 22%, rgba(29, 26, 21, 0) 42%, rgba(29, 26, 21, .78) 72%, var(--bg) 99%); }
.hero .inner { position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px 64px; }
.hero h1 { color: var(--cream); margin-bottom: 14px; text-shadow: 0 2px 30px rgba(20, 17, 13, .5); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 30px; }
.hero.short { min-height: 52vh; min-height: 52svh; }

/* Progreso */
.progress-line { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 500; }
.progress-line .bar { width: 160px; height: 2px; background: var(--line2); border-radius: 2px; overflow: hidden; }
.progress-line .bar span { display: block; height: 100%; background: var(--bronze); transition: width .6s var(--ease); }

/* El recorrido */
.section { padding-top: 70px; padding-bottom: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.journey { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 148px 1fr; gap: 28px; align-items: center; padding: 26px 6px; border-bottom: 1px solid var(--line); transition: background .4s var(--ease); position: relative; }
.step:hover { background: rgba(239, 232, 220, .025); }
.step .num { font-size: 54px; font-weight: 200; letter-spacing: -.04em; color: var(--bronze); line-height: 1; }
.step .num.word { font-size: 22px; font-weight: 300; font-style: italic; letter-spacing: 0; color: var(--arena); }
.step h3 { font-size: clamp(19px, 2.2vw, 24px); margin-bottom: 4px; }
.step .meta { font-size: 14px; color: var(--muted); }
.step .status { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--arena); }
.step.done .status { color: var(--sage); }
.step .thumb { width: 148px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 14px; filter: saturate(.92); transition: transform .6s var(--ease); }
.step:hover .thumb { transform: scale(1.03); }
.step.locked { pointer-events: none; }
.step.locked .num, .step.locked h3 { opacity: .4; }
.step.locked .thumb { filter: grayscale(.85) brightness(.55); }
.step.current::before { content: ""; position: absolute; left: -24px; top: 26px; bottom: 26px; width: 2px; background: var(--terra); border-radius: 2px; }
@media (max-width: 720px) {
  .step { grid-template-columns: 96px 1fr; gap: 18px; padding: 20px 0; }
  .step .thumb { width: 96px; border-radius: 12px; }
  .step.current::before { left: -14px; }
}

/* Paneles */
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-top: 22px; }
.panel h3 { margin-bottom: 10px; }
.complete-box { text-align: center; padding: 38px 28px; }
.complete-box p { margin-bottom: 18px; }

/* Lección */
.lesson-top { padding-top: 104px; padding-bottom: 26px; }
.back { font-size: 13px; color: var(--muted); font-weight: 500; transition: color .2s; }
.back:hover { color: var(--cream); }
.lesson-title { display: flex; align-items: flex-end; gap: 22px; margin-top: 28px; }
.lesson-title .num { font-size: clamp(64px, 9vw, 110px); font-weight: 200; letter-spacing: -.05em; color: var(--bronze); line-height: .82; }
.lesson-title .meta { font-size: 14px; color: var(--muted); margin-top: 6px; }
.player { position: relative; background: #0f0d0a; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); border: 1px solid var(--line); }
.player video, .player iframe { width: 100%; height: 100%; border: 0; display: block; }
.watch { font-size: 13px; color: var(--muted); margin-top: 12px; font-weight: 500; }
.intro-line { font-size: 19px; font-weight: 300; line-height: 1.5; color: var(--cream); margin-top: 34px; padding-left: 20px; border-left: 2px solid var(--terra); }

/* Formularios */
label { display: block; font-size: 15px; font-weight: 600; margin: 22px 0 8px; color: var(--cream); }
input[type=text], input[type=email], textarea, input[type=number] { width: 100%; font: 400 16px 'Montserrat', sans-serif; color: var(--ink); background: rgba(239, 232, 220, .04); border: 1px solid var(--line2); border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .2s, background .2s; }
input:focus, textarea:focus { border-color: var(--arena); background: rgba(239, 232, 220, .06); }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.saved { font-size: 12px; color: var(--sage); font-weight: 600; height: 16px; margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 15px; margin-top: 18px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--terra); }
.journal-note b { color: var(--cream); font-weight: 600; }
.journal-note { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--arena); background: rgba(207, 195, 147, .07); border: 1px solid rgba(207, 195, 147, .2); border-radius: 14px; padding: 14px 16px; margin: 14px 0 6px; line-height: 1.55; }
.num-field { display: flex; align-items: center; gap: 12px; }
.num-field input { width: 130px; font: 300 30px 'Montserrat', sans-serif; text-align: center; padding: 10px; }
.num-field span { font-weight: 500; color: var(--muted); }
.before { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.before b { color: var(--bronze); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: center; font-weight: 500; font-size: 15px; margin: 0; border: 1px solid var(--line2); border-radius: 14px; padding: 13px 16px; cursor: pointer; transition: border-color .2s; }
.choice:has(input:checked) { border-color: var(--terra); background: rgba(199, 138, 120, .08); }
.choice input { accent-color: var(--terra); }

/* Apertura */
.needs { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.needs li { display: flex; gap: 12px; align-items: baseline; }
.needs li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terra); flex: none; transform: translateY(-2px); }
.commit-text p { color: rgba(239, 232, 220, .9); }
.commit-text b { color: var(--cream); }
.signed { background: rgba(154, 166, 144, .12); border: 1px solid rgba(154, 166, 144, .3); border-radius: 14px; padding: 16px; font-size: 15px; margin-top: 10px; }

/* Final + ofertas */
.progress-card { padding: 34px; }
.pbar { display: grid; grid-template-columns: 60px 1fr 56px; gap: 14px; align-items: center; margin: 12px 0; font-weight: 600; font-size: 14px; }
.pt { height: 10px; background: rgba(239, 232, 220, .08); border-radius: 99px; overflow: hidden; }
.pt span { display: block; height: 100%; border-radius: 99px; }
.pt .a { background: rgba(239, 232, 220, .3); }
.pt .b { background: linear-gradient(90deg, var(--bronze), var(--terra)); }
.pv { text-align: right; font-weight: 300; font-size: 18px; }
.offers { display: grid; grid-template-columns: 1.08fr 1fr; gap: 20px; margin: 34px 0 90px; align-items: stretch; }
.offer { background: var(--bg2); border: 1px solid var(--line); border-radius: 26px; padding: 34px 30px; display: flex; flex-direction: column; }
.offer.feature { background: linear-gradient(180deg, #2c261d, #1f1b15); border-color: rgba(203, 164, 106, .38); box-shadow: 0 40px 90px -50px rgba(203, 164, 106, .45); }
.offer .kicker { margin-bottom: 8px; }
.offer h2 { margin-bottom: 4px; }
.offer .body { margin: 14px 0 22px; color: rgba(239, 232, 220, .86); }
.offer:not(.feature) .body { flex: 1; }
.offer-img { width: 100%; flex: 1; min-height: 240px; max-height: 440px; object-fit: cover; object-position: 50% 20%; border-radius: 16px; margin-bottom: 22px; }
.price { font-size: 38px; font-weight: 300; letter-spacing: -.03em; }
.price s { font-size: 20px; opacity: .45; margin-right: 8px; }
.credit { font-size: 13px; font-weight: 500; color: var(--arena); background: rgba(207, 195, 147, .08); border: 1px solid rgba(207, 195, 147, .22); border-radius: 12px; padding: 11px 13px; margin: 12px 0 4px; }
.plans { display: grid; gap: 8px; margin: 16px 0 20px; }
.plan { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line2); border-radius: 14px; padding: 13px 15px; cursor: pointer; font-size: 14px; font-weight: 500; margin: 0; }
.plan:has(input:checked) { border-color: var(--terra); background: rgba(199, 138, 120, .08); }
.plan input { margin-right: 10px; accent-color: var(--terra); }
@media (max-width: 820px) { .offers { grid-template-columns: 1fr; } }

/* Entrar / mensajes */
.center-card { max-width: 460px; margin: 16vh auto 8vh; background: var(--bg2); border: 1px solid var(--line); border-radius: 26px; padding: 42px 32px; text-align: center; }
.center-card form { text-align: left; margin-top: 20px; }
.center-card .btn { margin-top: 22px; }
.devnote { margin-top: 18px; font-size: 12px; color: var(--arena); background: rgba(207, 195, 147, .08); border: 1px dashed rgba(207, 195, 147, .4); border-radius: 12px; padding: 12px; text-align: left; word-break: break-all; }

/* Panel de métricas */
.admin { padding-top: 24px; }
.admin h1 { font-size: 40px; margin: 6px 0 26px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 30px; }
.kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.kpi .v { font-size: 30px; font-weight: 300; letter-spacing: -.03em; color: var(--cream); }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 500; }
table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--bg2); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg3); }
.funnel-row { display: grid; grid-template-columns: 220px 1fr 100px; gap: 14px; align-items: center; margin: 9px 0; font-size: 14px; }
.funnel-row .bar { height: 20px; background: rgba(239, 232, 220, .06); border-radius: 6px; overflow: hidden; }
.funnel-row .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--olivo), var(--sage)); }
.admin .section { padding: 26px 0; }
.scroll { overflow-x: auto; }

footer { text-align: center; font-size: 11px; letter-spacing: .32em; color: var(--soft); padding: 40px 0 50px; font-weight: 600; }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; }
.reveal.d1 { animation-delay: .12s; } .reveal.d2 { animation-delay: .24s; } .reveal.d3 { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal, .hero > picture { position: absolute; inset: 0; }
.hero > picture img, .hero > img { animation: none; opacity: 1; transform: none; } }

/* Celular: la foto respira arriba y el texto queda legible abajo */
@media (max-width: 720px) {
  .hero { min-height: 92svh; }
  .hero > picture img { object-position: 50% 12%; }
  .hero::after { background: linear-gradient(180deg, rgba(29, 26, 21, .3) 0%, rgba(29, 26, 21, 0) 18%, rgba(29, 26, 21, 0) 34%, rgba(29, 26, 21, .62) 52%, rgba(29, 26, 21, .93) 70%, var(--bg) 96%); }
  .hero .inner { padding-bottom: 40px; }
  .hero h1 { font-size: 40px; }
  .hero .eyebrow { font-size: 28px; }
  .hero .actions { gap: 14px; margin-top: 24px; }
  .hero .actions .btn { width: 100%; }
  .topbar { padding: 18px 20px; }
  .topbar nav a { margin-left: 16px; }
}

/* Textura sutil de película: le quita lo "digital" al fondo oscuro */
body::after { content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hello { font-size: 15px; color: rgba(239, 232, 220, .85); margin-bottom: 18px; font-weight: 400; }

/* Íconos finos */
.ic { width: 15px; height: 15px; vertical-align: -3px; flex: none; }

/* Transiciones suaves entre páginas */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* Celebración al terminar un día */
.celebrate { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; text-align: center; overflow: hidden; }
.celebrate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); animation: drift 14s var(--ease) both; }
.celebrate::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(29, 26, 21, .55) 0%, rgba(29, 26, 21, .88) 70%, var(--bg) 100%); }
.celebrate .inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.celebrate .eyebrow { font-size: 22px; }
.celebrate h1 { color: var(--cream); margin: 6px 0 16px; }
.celebrate .lead { margin: 0 auto; }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.dots span { width: 34px; height: 3px; border-radius: 3px; background: rgba(239, 232, 220, .2); }
.dots span.on { background: linear-gradient(90deg, var(--bronze), var(--terra)); }

.needs-line { font-size: 14px; color: var(--muted); margin-top: 26px; line-height: 1.7; }
.needs-line span { color: var(--arena); font-style: italic; }
.journal-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }

/* Miniaturas de marca */
.tcard { position: relative; background-size: 135% auto; background-position: 50% 22%; display: flex; align-items: flex-end; overflow: hidden; }
.tcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 26, 21, 0) 30%, rgba(29, 26, 21, .78) 100%); }
.tcard span { position: relative; z-index: 1; padding: 0 14px 12px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--cream); text-shadow: 0 2px 14px rgba(20, 17, 13, .5); }
.step.locked .tcard { filter: grayscale(.85) brightness(.55); }
@media (max-width: 720px) { .tcard span { font-size: 15px; padding: 0 9px 8px; } }

/* Prueba social */
.proof { position: relative; margin: 34px 0 0; border-radius: 26px; overflow: hidden; }
.proof img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 55%; }
.proof::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 26, 21, 0) 45%, rgba(29, 26, 21, .85) 100%); }
.proof figcaption { position: absolute; left: 28px; right: 28px; bottom: 22px; z-index: 1; font-size: clamp(18px, 2.4vw, 26px); font-weight: 600; color: var(--cream); letter-spacing: -.01em; }
@media (max-width: 720px) { .proof img { aspect-ratio: 4 / 3; } .proof figcaption { left: 18px; bottom: 16px; } }
