/* Prototipo C · Ma — paneles flotantes blanco hueso sobre salvia, vidrio, bonsái; noche fluida azul petróleo */
:root {
  --bg: #d7dcd2; --panel: #f7f7f3; --ink: #2c332b; --ink-2: #6d756b; --line: #e2e4dc;
  --matcha: #6f8a3a; --matcha-2: #9bb35a; --night: #0f2a33; --night-2: #16404b; --teal: #5fc4c8; --night-ink: #e3eeec;
  --shadow: 0 40px 80px -40px rgb(40 55 35 / .35), 0 2px 6px rgb(40 55 35 / .05);
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", Georgia, serif; --sans: "Jost", system-ui, sans-serif; --r: 28px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #141815; --panel: #1d221e; --ink: #e5e9e1; --ink-2: #a2aa9f; --line: #2d332e; --matcha: #a3c060; --matcha-2: #c2d88a; --shadow: 0 40px 80px -40px rgb(0 0 0 / .7); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #141815; --panel: #1d221e; --ink: #e5e9e1; --ink-2: #a2aa9f; --line: #2d332e; --matcha: #a3c060; --matcha-2: #c2d88a; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(120% 80% at 20% 0%, color-mix(in srgb, var(--bg) 70%, #fff) 0, var(--bg) 60%); background-color: var(--bg); color: var(--ink); font: 300 17px/1.75 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--matcha); outline-offset: 4px; border-radius: 8px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--ink); color: var(--panel); padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.meta { font: 400 11px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 400; letter-spacing: .01em; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--matcha); color: #fbfcf7; font: 400 13px var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: background .3s, transform .3s; }
.btn:hover { background: color-mix(in srgb, var(--matcha) 80%, #000); transform: translateY(-1px); }
.btn.line { background: transparent; color: var(--ink); border: 1px solid var(--ink-2); }
.btn.line:hover { border-color: var(--matcha); color: var(--matcha); background: transparent; }

/* Motas verdes flotando */
.motes { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.motes i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--matcha-2); opacity: .5; animation: drift 14s ease-in-out infinite; }
.motes i:nth-child(1) { left: 12%; top: 30%; } .motes i:nth-child(2) { left: 48%; top: 14%; width: 4px; height: 4px; animation-delay: -3s; }
.motes i:nth-child(3) { left: 58%; top: 22%; width: 5px; height: 5px; animation-delay: -6s; } .motes i:nth-child(4) { left: 86%; top: 60%; animation-delay: -2s; }
.motes i:nth-child(5) { left: 30%; top: 78%; width: 4px; height: 4px; animation-delay: -9s; } .motes i:nth-child(6) { left: 72%; top: 88%; width: 6px; height: 6px; animation-delay: -5s; }
.motes i:nth-child(7) { left: 4%; top: 64%; width: 3px; height: 3px; animation-delay: -11s; }
@keyframes drift { 50% { transform: translate(14px, -26px); opacity: .25; } }

/* Paneles */
main { position: relative; z-index: 2; }
.panel { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); width: min(1240px, 100% - 24px); margin: 12px auto; padding: 20px; position: relative; overflow: hidden; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 20px var(--mincho); letter-spacing: .12em; }
.links { display: none; gap: 36px; font: 400 11px var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.links a { text-decoration: none; color: var(--ink-2); } .links a:hover { color: var(--matcha); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.round svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Hero */
.hero { display: grid; gap: 24px; }
.hero-img { margin: 0 -20px; }
.hero-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 20% 50%; mask-image: linear-gradient(90deg, #000 70%, transparent); }
.kanji { font: 400 18px var(--mincho); color: var(--matcha); letter-spacing: 0; margin-right: 8px; border: 1px solid currentColor; padding: 0 5px; border-radius: 4px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.25; margin-bottom: 20px; }
.lead { color: var(--ink-2); max-width: 40ch; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.mini { list-style: none; margin: 36px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini button { display: grid; justify-items: center; gap: 4px; width: 100%; }
.mini img { width: 100%; max-width: 88px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; transition: transform .5s; object-view-box: inset(18%); }
.mini button:hover img { transform: translateY(-4px); }
.mini span { font: 400 10px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.dots-nav { display: flex; gap: 8px; margin: 18px 0 0; }
.dots-nav i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); } .dots-nav .on { background: var(--matcha); }

/* Tazas */
.cups-panel { padding: 40px 20px 48px; }
.cups-head { text-align: center; margin-bottom: 36px; }
.cups-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.3; margin-bottom: 24px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.seg button { min-height: 40px; padding: 0 22px; border-radius: 999px; font: 400 12px var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.seg [aria-selected="true"] { background: var(--ink); color: var(--panel); }
.cups { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
.cups li { animation: up .6s both; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
.cup { display: grid; justify-items: center; text-align: center; gap: 4px; width: 100%; }
.cup img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; object-view-box: inset(10%); border-radius: 22px; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cup:hover img { transform: translateY(-6px) scale(1.02); }
.cup strong { font: 400 16px/1.3 var(--mincho); margin-top: 10px; }
.cup span { font: 400 10px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }

/* Noche (fluida) */
.night { position: relative; color: var(--night-ink); margin: 28px 0; }
.wave { display: block; width: 100%; height: 70px; fill: var(--night); }
.wave.top { margin-bottom: -1px; } .wave.bottom { margin-top: -1px; }
.night-in { background: radial-gradient(90% 70% at 85% 20%, var(--night-2), var(--night) 70%); padding: 40px 20px 56px; position: relative; overflow: hidden; }
.night-in::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle, rgb(95 196 200 / .9) 1px, transparent 1.6px), radial-gradient(circle, rgb(95 196 200 / .5) 1px, transparent 1.6px);
  background-size: 140px 120px, 90px 170px; background-position: 10px 30px, 60px 90px; mask-image: linear-gradient(120deg, transparent 30%, #000 70%); }
.glow { position: absolute; width: 520px; height: 520px; right: -180px; top: -200px; border-radius: 45% 55% 60% 40%; background: radial-gradient(closest-side, rgb(95 196 200 / .22), transparent); animation: morph 16s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 60% 40% 45% 55%; transform: translate(-40px, 30px) rotate(20deg); } }
.n-head, .n-quiz { position: relative; width: min(1100px, 100%); margin-inline: auto; }
.night .meta { color: var(--teal); }
.n-head h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 12px; }
.n-head p { color: rgb(227 238 236 / .7); max-width: 40ch; }
.n-quiz { margin-top: 32px; }
.n-quiz h3 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 28px; }
.n-prog { display: flex; gap: 6px; margin-bottom: 22px; }
.n-prog i { height: 2px; flex: 1; max-width: 60px; background: rgb(227 238 236 / .15); border-radius: 2px; } .n-prog .d { background: rgb(95 196 200 / .5); } .n-prog .n { background: var(--teal); }
.n-opts { display: flex; flex-wrap: wrap; gap: 20px 14px; margin-bottom: 18px; }
.n-opt { display: grid; justify-items: center; gap: 10px; width: 96px; text-align: center; animation: up .5s both; }
.ring { width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgb(95 196 200 / .45); display: grid; place-items: center; overflow: hidden; transition: border-color .3s, box-shadow .3s, background .3s; }
.ring svg { width: 34px; height: 34px; fill: none; stroke: var(--teal); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ring img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.n-opt:hover .ring { border-color: var(--teal); box-shadow: 0 0 0 6px rgb(95 196 200 / .08), 0 0 30px rgb(95 196 200 / .35); background: rgb(95 196 200 / .08); }
.n-opt strong { font: 400 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.n-link { color: var(--teal); font-size: 14px; letter-spacing: .1em; min-height: 44px; }
.n-recs { display: grid; gap: 16px; margin-bottom: 24px; }
.n-rec { display: grid; grid-template-columns: 84px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; text-align: left; padding: 10px; border-radius: 20px; background: rgb(255 255 255 / .04); border: 1px solid rgb(95 196 200 / .2); animation: up .5s both; }
.n-rec:hover { border-color: var(--teal); }
.halo { grid-row: span 2; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 30px rgb(95 196 200 / .3); }
.halo img { width: 100%; height: 100%; object-fit: cover; }
.n-rec strong { font: 400 20px var(--mincho); align-self: end; } .n-rec > span:last-child { font-size: 13px; color: rgb(227 238 236 / .7); align-self: start; }
.night .wl input { background: rgb(255 255 255 / .06); border-color: rgb(95 196 200 / .3); color: var(--night-ink); }
.glow-btn { background: var(--teal); color: var(--night); } .glow-btn:hover { background: #8fdcdf; }

.wl { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.wl input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; }
.wl input:focus { outline: none; border-color: var(--matcha); }
.wl-ok { margin: 0; font: 400 18px var(--mincho); }

/* Lecturas */
.reads-panel { padding: 40px 20px; }
.reads-panel h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 20px; }
.reads { list-style: none; margin: 0; padding: 0; }
.reads a { display: grid; grid-template-columns: 40px 1fr 72px; gap: 14px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; }
.r-n { font: 400 14px var(--mincho); color: var(--matcha); }
.r-t .meta { margin: 0 0 4px; font-size: 10px; } .r-t strong { font: 400 18px/1.4 var(--mincho); }
.reads img { width: 72px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; transition: transform .5s; }
.reads a:hover img { transform: scale(1.08); } .reads a:hover strong { color: var(--matcha); }

/* Lista */
.wait-panel { display: grid; gap: 24px; padding: 20px 20px 36px; }
.wait-panel figure { margin: 0; } .wait-panel img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; }
.wait-panel h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.2; margin-bottom: 14px; }
.wait-panel p:not(.meta) { color: var(--ink-2); max-width: 44ch; }

.foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 24px 16px 40px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }

/* Modal */
.modal { border: 0; padding: 0; border-radius: var(--r); width: min(900px, 100% - 24px); max-height: 92vh; overflow: auto; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.modal::backdrop { background: rgb(30 40 30 / .35); backdrop-filter: blur(6px); }
.modal[open] { animation: up .4s ease; }
.x { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; width: 44px; height: 44px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); font-size: 24px; z-index: 2; }
.pd { display: grid; clear: both; margin-top: -54px; }
.pd-img { background: #f2f2ee; } .pd-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-body { padding: 28px 24px 32px; }
.pd-body h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.lema { font: 400 12px var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--matcha); margin: 6px 0 16px; }
.pd-body > p:not(.meta):not(.lema) { color: var(--ink-2); }
.pd dl { margin: 18px 0 24px; font-size: 15px; }
.pd dl div { display: grid; grid-template-columns: 110px 1fr; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.pd dt { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); } .pd dd { margin: 0; }
.scale { display: inline-flex; gap: 5px; } .scale i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--matcha); } .scale .on { background: var(--matcha); }
.read { clear: both; margin-top: -54px; }
.read > img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.read-body { max-width: 640px; margin: 0 auto; padding: 32px 22px 44px; font-size: 18px; line-height: 1.9; }
.read-body h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.25; margin-bottom: 14px; }
.read-body .lead { font-size: 19px; }
.read-body h2 { font-size: 24px; margin: 40px 0 6px; }
.read-body a { color: var(--matcha); }
.read-body blockquote { margin: 36px 0; text-align: center; font: 400 24px/1.6 var(--mincho); color: var(--matcha); }
.read-body blockquote::before { content: "〜"; display: block; font-size: 18px; opacity: .6; }
.read-cta { text-align: center; margin-top: 36px; }

@media (min-width: 720px) {
  .panel { width: min(1240px, 100% - 48px); margin: 24px auto; padding: 28px 36px; }
  .cups { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
  .n-opt { width: 112px; } .ring { width: 88px; height: 88px; }
  .n-recs { grid-template-columns: repeat(3, 1fr); }
  .n-rec { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 16px; row-gap: 6px; }
  .halo { grid-row: auto; width: 140px; height: 140px; margin-bottom: 8px; }
  .pd { grid-template-columns: 1fr 1fr; } .pd-img img { height: 100%; }
  .pd-body { padding: 64px 36px 36px; }
}
@media (min-width: 1024px) {
  .links { display: flex; }
  .hero { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; min-height: 640px; }
  .hero-img { margin: 0 0 0 -36px; } .hero-img img { aspect-ratio: auto; height: 640px; }
  .hero-copy { padding: 24px 24px 24px 0; }
  .cups { grid-template-columns: repeat(6, 1fr); gap: 32px 16px; }
  .night-in { padding: 56px 48px 72px; }
  .n-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; } .n-head .meta { grid-column: 1 / -1; margin-bottom: -40px; }
  .reads-panel { display: grid; grid-template-columns: 1fr 2fr; column-gap: 64px; padding: 56px 48px; }
  .reads-panel .meta, .reads-panel h2 { grid-column: 1; } .reads { grid-column: 2; grid-row: 1 / span 3; }
  .reads a { grid-template-columns: 56px 1fr 96px; } .reads img { width: 96px; }
  .wait-panel { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; padding: 28px 56px 28px 28px; }
  .wait-panel img { aspect-ratio: 5/4; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) :is(.cup, .mini) img { mix-blend-mode: multiply; } }
.emblem { width: 120px; height: auto; margin-bottom: 20px; }
