/* Prototipo A · Ceremonia — negro cálido, cobre, condensada en mayúsculas, línea fina */
:root {
  --bg: #0e0c0a; --bg-2: #15120f; --card: #1b1713; --line: #2e2721; --line-2: #463a30;
  --text: #efe6da; --muted: #a39584; --copper: #d07a45; --caramel: #d9a46c; --on-caramel: #1a120b;
  --glass: rgb(255 240 225 / .04);
  --cond: "Oswald", "Arial Narrow", sans-serif; --body: "Mulish", system-ui, sans-serif; --script: "Cormorant Garamond", Georgia, serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--copper); color: #000; padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow { display: block; font: 600 12px/1.3 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tick { width: 56px; border: 0; border-top: 2px solid var(--copper); margin: 24px 0; }
h1, h2, h3 { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; margin: 0; }
h1 span, h2 span { color: var(--copper); }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 999px; background: var(--caramel); color: var(--on-caramel); font: 700 15px var(--body); text-decoration: none; letter-spacing: .02em; transition: transform .2s, box-shadow .2s, background .2s; }
.pill-btn:hover { background: #e7b680; transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgb(217 164 108 / .5); }
.pill-btn.sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.ghost-btn { display: inline-flex; align-items: center; min-height: 50px; font-weight: 600; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line-2); }
.ghost-btn:hover { color: var(--caramel); }
.link { color: var(--caramel); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(14 12 10 / .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 22px var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.brand span { display: none; }
.links { display: none; gap: 32px; font: 500 14px var(--cond); letter-spacing: .16em; text-transform: uppercase; }
.links a { text-decoration: none; color: var(--muted); } .links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 40px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -20%; top: -10%; width: 80vw; height: 80vw; border-radius: 50%; background: radial-gradient(closest-side, rgb(208 122 69 / .16), transparent); pointer-events: none; }
.hero-grid { display: grid; gap: 40px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(44px, 7.4vw, 78px); }
.lead { font-size: clamp(17px, 1.8vw, 19px); color: var(--muted); max-width: 46ch; margin: 0 0 32px; }
.ctas { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.hero-art { margin: 0; position: relative; }
.hero-art img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 28px; border: 1px solid var(--line); mask-image: radial-gradient(130% 120% at 50% 40%, #000 60%, transparent 100%); }
.steam { position: absolute; left: 32%; top: -4%; width: 34%; height: 60%; fill: none; stroke: rgb(239 230 218 / .5); stroke-width: 1.2; stroke-linecap: round; }
.steam path { stroke-dasharray: 260; animation: steam 5s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: -1.6s; } .steam path:nth-child(3) { animation-delay: -3.2s; }
@keyframes steam { 0% { stroke-dashoffset: 260; opacity: 0; } 40% { opacity: .9; } 100% { stroke-dashoffset: -260; opacity: 0; } }

/* Sección */
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(36px, 6vw, 64px); }
.sec-head p { color: var(--muted); margin: 0; }
.sec-head.row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }

/* Métodos */
.methods { padding: 72px 0 40px; }
.m-grid { list-style: none; margin: 0; padding: 0; display: grid; }
.m-grid li { border-top: 1px solid var(--line); }
.m-item { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 18px; padding: 24px 0; width: 100%; }
.m-item img { grid-row: span 4; width: 110px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.m-num { display: flex; align-items: center; gap: 12px; font: 500 22px var(--cond); color: var(--copper); }
.m-num svg { width: 26px; height: 26px; color: var(--copper); }
.m-item h3 { font-size: 26px; color: var(--copper); margin: 6px 0 6px; text-transform: none; }
.m-item p { margin: 0; color: var(--muted); font-size: 15px; }
.m-go { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--caramel); opacity: 0; transform: translateX(-6px); transition: .3s; }
.m-item:hover .m-go, .m-item:focus-visible .m-go { opacity: 1; transform: none; }
.m-item:hover img { filter: brightness(1.15); }
.callout { margin-top: 32px; border: 1px solid var(--copper); border-radius: 6px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 22px 24px; }
.callout svg { width: 36px; height: 36px; color: var(--copper); padding-right: 20px; border-right: 1px solid var(--line-2); box-sizing: content-box; }
.callout p { margin: 0; font-size: 17px; }
.callout-line { display: none; }
.callout.small { grid-template-columns: auto 1fr auto; margin-top: 40px; }

/* Orígenes */
.origins { padding: 88px 0; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; }
.seg button { min-height: 40px; padding: 0 18px; border-radius: 999px; font: 500 13px var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.seg [aria-selected="true"] { background: var(--caramel); color: var(--on-caramel); }
.filter-note { margin: -16px 0 24px; color: var(--muted); }
.filter-note strong { color: var(--copper); }
.o-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.o-card { position: relative; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: grid; transition: transform .35s, border-color .35s; animation: rise .5s both; }
.o-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.o-card img { aspect-ratio: 5/4; object-fit: cover; width: 100%; }
.o-body { margin: -48px 12px 12px; padding: 18px; position: relative; border-radius: 16px; background: rgb(27 23 19 / .72); backdrop-filter: blur(14px); border: 1px solid rgb(255 255 255 / .06); display: grid; gap: 4px; }
.o-body strong { font: 600 22px var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.o-body em, .lema { font: italic 500 19px var(--script); color: var(--caramel); }
.o-notes { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.o-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.meter { --v: 3; display: inline-block; width: 90px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--copper) calc(var(--v) * 20%), var(--line-2) 0); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Test */
.quiz-sec { position: relative; padding: 96px 0; overflow: hidden; border-block: 1px solid var(--line); }
.lineart { position: absolute; right: -60px; bottom: -40px; width: 420px; fill: none; stroke: var(--copper); stroke-width: 1; opacity: .18; }
.q-wrap { display: grid; gap: 40px; position: relative; }
.q-head h2 { font-size: clamp(44px, 7vw, 80px); margin: 10px 0 16px; }
.q-head p { color: var(--muted); max-width: 38ch; }
.q-steps { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 8px; }
.q-steps li { font: 500 13px var(--cond); color: var(--line-2); border-top: 2px solid var(--line); padding-top: 6px; flex: 1; transition: .3s; }
.q-steps .done { color: var(--muted); border-color: var(--muted); } .q-steps .now { color: var(--copper); border-color: var(--copper); }
.q-card { background: var(--glass); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; backdrop-filter: blur(6px); }
.q-card h3 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 22px; }
.opts { display: grid; gap: 10px; margin-bottom: 12px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 14px; transition: border-color .2s, background .2s; animation: rise .4s both; }
.opt:hover { border-color: var(--copper); background: rgb(208 122 69 / .08); }
.opt img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.opt strong { display: block; font: 500 19px var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.opt small { color: var(--muted); font-size: 14px; }
.recs { display: grid; gap: 10px; margin-bottom: 20px; }
.rec { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 8px 16px 8px 8px; border: 1px solid var(--line-2); border-radius: 16px; animation: rise .5s both; }
.rec:hover { border-color: var(--copper); }
.rec img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.rec strong { display: block; font: 600 19px var(--cond); text-transform: uppercase; } .rec em { font: italic 17px var(--script); color: var(--caramel); }
.rec b { font: 600 24px var(--cond); color: var(--copper); }
.q-save { color: var(--muted); margin: 0 0 12px; }

.wl { display: flex; flex-wrap: wrap; gap: 10px; }
.wl input { flex: 1 1 220px; min-width: 0; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(0 0 0 / .3); color: var(--text); font: inherit; }
.wl input:focus { outline: none; border-color: var(--caramel); }
.wl-ok { margin: 0; padding: 14px 18px; border: 1px solid var(--copper); border-radius: 14px; }

/* Blog */
.blog { padding: 96px 0 40px; }
.b-list { display: grid; }
.b-item { display: grid; grid-template-columns: auto 88px 1fr; gap: 16px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; }
.b-item:last-child { border-bottom: 1px solid var(--line); }
.b-num { font: 500 28px var(--cond); color: var(--copper); width: 40px; }
.b-item img { width: 88px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.b-txt strong { display: block; font: 600 20px/1.15 var(--cond); text-transform: uppercase; margin: 4px 0; }
.b-txt > span:last-child { display: none; color: var(--muted); font-size: 15px; }
.b-item:hover strong { color: var(--caramel); }

/* Lista */
.wait { padding: 72px 0; }
.wait-card { text-align: center; border: 1px solid var(--line); border-radius: 28px; padding: 48px 22px; background: radial-gradient(80% 100% at 50% 0%, rgb(208 122 69 / .14), transparent), var(--bg-2); display: grid; justify-items: center; gap: 14px; }
.wait-card h2 { font-size: clamp(34px, 5vw, 56px); }
.wait-card p { color: var(--muted); max-width: 44ch; margin: 0 0 8px; }
.wait-card .wl { width: min(480px, 100%); justify-content: center; }

.foot { display: grid; gap: 6px; padding: 24px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* Modal */
.modal { border: 1px solid var(--line-2); border-radius: 24px; padding: 0; width: min(920px, 100% - 24px); max-height: 92vh; background: var(--bg-2); color: var(--text); overflow: auto; }
.modal.wide { width: min(820px, 100% - 24px); }
.modal::backdrop { background: rgb(0 0 0 / .7); backdrop-filter: blur(4px); }
.modal[open] { animation: rise .3s ease; }
.x { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line-2); font-size: 24px; z-index: 3; text-align: center; }
.pd { display: grid; clear: both; margin-top: -54px; }
.pd > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pd-body { padding: 24px; display: grid; gap: 8px; align-content: start; }
.pd-body h2 { font-size: clamp(34px, 4vw, 48px); margin-top: 6px; }
.pd-body p { color: var(--muted); margin: 4px 0; }
.pd dl { margin: 8px 0 16px; }
.pd dl div { display: grid; grid-template-columns: 120px 1fr; align-items: center; border-top: 1px solid var(--line); padding: 8px 0; font-size: 15px; }
.pd dt { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; } .pd dd { margin: 0; }
.pd .pill-btn { justify-self: start; }
.read { clear: both; margin-top: -54px; }
.read > img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.read-body { padding: 28px 24px 40px; max-width: 680px; margin: 0 auto; font-size: 18px; line-height: 1.75; }
.read-body h1 { font-size: clamp(34px, 5vw, 52px); margin: 12px 0; }
.read-body .lead { margin: 0; }
.read-body h2 { font-size: 26px; color: var(--copper); margin: 36px 0 8px; }
.read-body a { color: var(--caramel); }
.read-body blockquote { margin: 32px 0; padding: 20px 0 20px 22px; border-left: 2px solid var(--copper); font: italic 500 28px/1.25 var(--script); color: var(--caramel); }

@media (min-width: 720px) {
  .brand span { display: inline; }
  .m-grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .b-txt > span:last-child { display: block; }
  .b-item { grid-template-columns: 60px 140px 1fr; gap: 24px; } .b-item img { width: 140px; aspect-ratio: 16/10; }
  .pd { grid-template-columns: 1fr 1fr; } .pd > img { aspect-ratio: auto; height: 100%; }
  .pd-body { padding: 56px 36px 36px; }
  .callout { grid-template-columns: auto 1fr 120px; padding: 26px 32px; }
  .callout-line { display: block; border-top: 1px solid var(--copper); }
  .foot { grid-template-columns: 1fr auto auto; gap: 32px; }
}
@media (min-width: 1024px) {
  .links { display: flex; }
  .hero { padding: 72px 0 104px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .m-grid { grid-template-columns: repeat(3, 1fr); column-gap: 0; }
  .m-grid li { border-top: 0; border-left: 1px solid var(--line); padding: 0 28px; }
  .m-grid li:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .m-grid li:nth-child(n+4) { border-top: 1px solid var(--line); padding-top: 12px; }
  .m-item { grid-template-columns: 1fr; grid-template-rows: none; }
  .m-item img { grid-row: auto; width: 100%; aspect-ratio: 4/3; margin-bottom: 18px; }
  .q-wrap { grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
  .q-head { position: sticky; top: 100px; }
  .q-card { padding: 40px; }
  .opts.two { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.wait-card .emblem { width: 150px; height: auto; }
