/* ==========================================================================
   PRESTIGE — sistema de diseño base (compartido por todas las páginas)
   Tipografías: Anton (titulares), Grenze Gotisch (gótica, como el logo),
   Monsieur La Doulaise (caligrafía de los drops), Archivo (interfaz), DM Mono (datos).
   ========================================================================== */
/* las fuentes se cargan con <link> en cada página (en paralelo con este archivo) */

:root {
  --bg: #070707;
  --bg-2: #0c0c0c;
  --panel: #131313;
  --panel-2: #1b1b1b;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --ink: #f4f4ee;
  --ink-2: #a8a8a0;
  --ink-3: #6b6b65;
  --accent: #e3b35b;
  --accent-ink: #0a0a0a;
  --pink: #ff5fb3;
  --f-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --f-goth: 'Grenze Gotisch', 'Old English Text MT', serif;
  --f-script: 'Monsieur La Doulaise', 'Snell Roundhand', cursive;
  --f-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --pad: clamp(16px, 3.8vw, 56px);
  --maxw: 1520px;
  --hdr: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: 4px;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #2a2a2a var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--f-ui); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* textura de grano muy sutil sobre todo el sitio */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ tipografía */
.display { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: .004em; }
.goth { font-family: var(--f-goth); font-weight: 800; letter-spacing: .01em; }
.script { font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1; }
.mono { font-family: var(--f-mono); font-weight: 400; letter-spacing: 0; }
.label { font: 600 11px/1.2 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; }
.wide { font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.muted { color: var(--ink-2); }
.accent { color: var(--accent); }
.h-sec { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: .92; font-size: clamp(40px, 5.6vw, 96px); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* logo vectorial como máscara: toma el color del texto */
.logo { display: block; aspect-ratio: 2882 / 818; background: currentColor;
  -webkit-mask: url('/img/logo.svg') center / contain no-repeat; mask: url('/img/logo.svg') center / contain no-repeat; }
.logo--word { aspect-ratio: 2163 / 440; -webkit-mask-image: url('/img/wordmark.svg'); mask-image: url('/img/wordmark.svg'); }
.logo--full { aspect-ratio: 2183 / 2076; -webkit-mask-image: url('/img/logo-completo.svg'); mask-image: url('/img/logo-completo.svg'); }
.logo--l { aspect-ratio: 926 / 1328; -webkit-mask-image: url('/img/monograma.svg'); mask-image: url('/img/monograma.svg'); }

/* ------------------------------------------------------------ botones */
.btn {
  --bg-btn: var(--accent); --fg-btn: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 46px; padding: 0 18px 0 22px; border-radius: 999px;
  background: var(--bg-btn); color: var(--fg-btn);
  font: 700 11.5px/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover { --bg-btn: var(--ink); --fg-btn: #000; }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: scale(.97); }
.btn--line { --bg-btn: transparent; --fg-btn: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { --bg-btn: var(--ink); --fg-btn: #000; box-shadow: none; }
.btn--dark { --bg-btn: #0a0a0a; --fg-btn: var(--ink); }
.btn--dark:hover { --bg-btn: #fff; --fg-btn: #000; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-dot { display: inline-flex; align-items: center; gap: 10px; font: 700 11.5px/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; padding: 14px 4px; }
.link-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); transition: box-shadow .35s var(--ease); }
.link-dot:hover::after { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 28%, transparent); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 11.5px/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); transition: border-color .25s, color .25s; }
.link-arrow svg { width: 13px; height: 13px; color: var(--accent); transition: transform .35s var(--ease-out); }
.link-arrow:hover { border-color: var(--accent); }
.link-arrow:hover svg { transform: translate(3px, -3px); }
.round { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); flex: none; transition: transform .35s var(--ease-out), background .25s; }
.round svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------ cinta superior */
.ann { background: var(--panel); border-bottom: 1px solid var(--line); overflow: hidden; height: 32px; display: flex; align-items: center; }
.ann__track { display: flex; gap: 0; white-space: nowrap; animation: marquee 38s linear infinite; will-change: transform; }
.ann__item { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; font: 600 10.5px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ann__item::after { content: ''; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ cabecera */
.hdr { position: sticky; top: 0; z-index: 60; height: var(--hdr); transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.hdr.is-stuck { background: rgba(7, 7, 7, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hdr__logo { width: 118px; color: var(--ink); flex: none; transition: color .25s; }
.hdr__logo:hover { color: var(--accent); }
.hdr__nav { display: flex; gap: clamp(16px, 2.4vw, 38px); }
.hdr__nav a { position: relative; font: 600 11px/1 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; padding: 10px 0; color: var(--ink); }
.hdr__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.hdr__nav a:hover::after, .hdr__nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.hdr__tools { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); }
.hdr__tool { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; padding: 10px 0; }
.hdr__tool i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hdr__tool:hover { color: var(--accent); }
.hdr__menu { width: 46px; height: 32px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transition: transform .3s var(--ease-out), background .25s; }
.hdr__menu span { display: block; width: 15px; height: 1.6px; background: currentColor; box-shadow: 0 5px 0 currentColor; transform: translateY(-2.5px); }
.hdr__menu:hover { background: var(--ink); transform: scaleX(1.08); }
@media (max-width: 960px) { .hdr__nav, .hdr__tool--search { display: none; } :root { --hdr: 60px; } .hdr__logo { width: 104px; } }

/* menú a pantalla completa */
.menu { position: fixed; inset: 0; z-index: 80; background: #050505; display: grid; grid-template-rows: auto 1fr auto; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out), visibility 0s .7s; }
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .7s var(--ease-out); }
.menu__top { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; }
.menu__close { display: inline-flex; align-items: center; gap: 10px; font: 700 11px/1 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; padding: 10px 0; }
.menu__close i { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.menu__close svg { width: 12px; height: 12px; }
.menu__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; padding-block: 24px; overflow: auto; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(44px, 9vw, 124px); line-height: .98; color: var(--ink); transition: color .25s, transform .5s var(--ease-out); transform: translateY(110%); }
.menu__links li { overflow: hidden; }
.menu.is-open .menu__links a { transform: none; transition-delay: calc(.12s + var(--i) * .05s); }
.menu__links a small { font: 500 12px/1 var(--f-mono); color: var(--ink-3); letter-spacing: 0; }
.menu__links a:hover { color: var(--accent); }
.menu__side { display: grid; gap: 22px; padding-bottom: 10px; }
.menu__side p { color: var(--ink-2); max-width: 34ch; }
.menu__side .goth { font-size: 26px; color: var(--accent); }
.menu__foot { border-top: 1px solid var(--line); padding-block: 16px; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; color: var(--ink-3); }
@media (max-width: 800px) { .menu__body { grid-template-columns: 1fr; align-items: start; } }

/* ------------------------------------------------------------ tarjeta de producto */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 22px) clamp(8px, 1.2vw, 18px); }
@media (max-width: 1100px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard { position: relative; display: block; }
.pcard__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--panel); border-radius: var(--r); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .5s; }
.pcard:hover .pcard__media img { transform: scale(1.055); }
.pcard__tags { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 2; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: var(--ink); font: 600 9.5px/1 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; backdrop-filter: blur(6px); }
.tag--accent { background: var(--accent); color: var(--accent-ink); }
.tag--pink { background: var(--pink); color: #000; }
.tag--out { background: #fff; color: #000; }
.pcard__add { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transform: translateY(14px) scale(.8); opacity: 0; transition: transform .4s var(--ease-out), opacity .3s, background .2s; }
.pcard__add svg { width: 15px; height: 15px; }
.pcard:hover .pcard__add, .pcard__add:focus-visible { transform: none; opacity: 1; }
.pcard__add:hover { background: #fff; }
@media (hover: none) { .pcard__add { transform: none; opacity: 1; width: 34px; height: 34px; } }
.pcard__info { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 2px 0; align-items: baseline; }
.pcard__name { font: 600 12.5px/1.25 var(--f-ui); letter-spacing: .03em; text-transform: uppercase; }
.pcard__sizes { font: 400 11px/1.2 var(--f-mono); color: var(--ink-3); grid-column: 1 / -1; }
.price { font: 500 12.5px/1.25 var(--f-mono); white-space: nowrap; }
.price s { color: var(--ink-3); margin-right: 6px; }
.price--ask { color: var(--accent); }
.price__from { margin-right: 6px; font-size: .78em; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pcard.is-out .pcard__media img { filter: grayscale(1) brightness(.6); }

/* ------------------------------------------------------------ carrito / paneles laterales */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .62); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; backdrop-filter: blur(3px); }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 75; width: min(440px, 100%); background: #0b0b0b; border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; transform: translateX(102%); transition: transform .55s var(--ease-out); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--f-display); font-weight: 400; font-size: 30px; text-transform: uppercase; line-height: 1; }
.drawer__head h2 sup { font: 500 12px/1 var(--f-mono); color: var(--accent); margin-left: 6px; }
.x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s, color .2s, transform .4s var(--ease-out); }
.x svg { width: 12px; height: 12px; }
.x:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); box-shadow: none; }
.drawer__body { overflow: auto; padding: 6px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: #0e0e0e; }
.citem { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.citem img { width: 68px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); background: var(--panel); }
.citem h3 { font: 600 12.5px/1.25 var(--f-ui); letter-spacing: .03em; text-transform: uppercase; }
.citem small { display: block; font: 400 11px/1.4 var(--f-mono); color: var(--ink-2); margin-top: 3px; }
.qty { display: inline-flex; align-items: center; margin-top: 10px; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 999px; height: 28px; }
.qty button { width: 28px; height: 28px; display: grid; place-items: center; font: 500 14px/1 var(--f-mono); }
.qty button:hover { color: var(--accent); }
.qty span { min-width: 22px; text-align: center; font: 500 12px/1 var(--f-mono); }
.citem__rm { font: 500 10px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; display: block; text-align: right; }
.citem__rm:hover { color: var(--pink); }
.cart-empty { display: grid; place-items: center; text-align: center; gap: 14px; padding: 60px 10px; color: var(--ink-2); }
.cart-empty .script { font-size: 64px; color: var(--accent); line-height: .8; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total b { font: 500 20px/1 var(--f-mono); }
.note { font: 400 11.5px/1.45 var(--f-mono); color: var(--ink-2); }
.note--ok { color: var(--accent); }
.field { width: 100%; height: 44px; padding: 0 14px; border-radius: 999px; background: transparent; border: 1px solid var(--line-2); font: 500 12.5px/1 var(--f-ui); letter-spacing: .03em; outline: none; transition: border-color .2s; }
.field::placeholder { color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.field:focus { border-color: var(--accent); }
.btn--wa { --bg-btn: var(--accent); }

/* ------------------------------------------------------------ vista rápida / modal */
.modal { position: fixed; inset: 0; z-index: 78; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s; }
.modal.is-open { visibility: visible; opacity: 1; transition: opacity .3s; }
.modal__card { position: relative; width: min(880px, 100%); max-height: min(92vh, 720px); background: #0d0d0d; border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); overflow: hidden; transform: translateY(26px) scale(.98); transition: transform .5s var(--ease-out); }
.modal.is-open .modal__card { transform: none; }
.modal__img { background: var(--panel); min-height: 0; }
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__info { padding: clamp(18px, 3vw, 34px); display: grid; gap: 14px; align-content: start; overflow: auto; }
.modal__info h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 46px); line-height: .95; }
.modal .x { position: absolute; right: 12px; top: 12px; z-index: 3; background: rgba(0, 0, 0, .6); }
@media (max-width: 700px) { .modal { align-items: end; padding: 0; } .modal__card { grid-template-columns: 1fr; max-height: 92vh; border-radius: 14px 14px 0 0; } .modal__img { max-height: 38vh; } .modal__info { padding-bottom: 26px; } }

.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size { min-width: 44px; height: 38px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 12px/1 var(--f-mono); transition: background .2s, color .2s, box-shadow .2s; }
.size:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.size[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.sizes.shake { animation: shake .4s; }
/* precio distinto por tamaño (decants, combos): cada opción muestra su precio */
.sizes--price { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.sizes--price .size { height: auto; padding: 11px 10px 10px; border-radius: 12px; display: grid; gap: 5px; justify-items: start; text-align: left; font-size: 13px; }
.sizes--price .size small { font: 500 11px/1.1 var(--f-mono); opacity: .72; white-space: nowrap; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ------------------------------------------------------------ pie de página */
.ftr { border-top: 1px solid var(--line); margin-top: clamp(50px, 8vw, 110px); padding-top: clamp(34px, 5vw, 64px); }
.ftr__grid { display: grid; grid-template-columns: 1.1fr repeat(4, minmax(0, .7fr)) 1.6fr; gap: 28px 24px; align-items: start; }
.ftr__logo { width: 150px; color: var(--ink); }
.ftr h4 { font: 700 10.5px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.ftr li a, .ftr li span { display: inline-block; padding: 3.5px 0; font: 500 10.5px/1.3 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: color .2s; }
.ftr li a:hover { color: var(--accent); }
.ftr__art { position: relative; aspect-ratio: 2.3 / 1; background: var(--accent); overflow: hidden; border-radius: var(--r); display: grid; place-items: center; color: #000; }
.ftr__art .logo { width: 62%; filter: blur(.4px); }
.ftr__art::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(0, 0, 0, .09) 22px 23px); mix-blend-mode: multiply; }
.ftr__legal { margin-top: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line); padding-block: 18px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font: 500 10px/1.3 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ftr__legal a:hover { color: var(--accent); }
@media (max-width: 1000px) { .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr__brand, .ftr__art { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ flotantes */
.wa-fab { position: fixed; right: 16px; bottom: 16px; z-index: 55; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .4s var(--ease-out), background .2s; }
.wa-fab svg { width: 26px; height: 26px; }
.wa-fab:hover { transform: scale(1.08) rotate(-6deg); background: #fff; }
.wa-fab::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.6s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 95; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #000; padding: 12px 18px; border-radius: 999px; font: 700 11px/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; transition: transform .45s var(--ease-out), opacity .3s; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* cursor propio (solo con mouse) */
.cur { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; font: 700 9px/1 var(--f-ui); letter-spacing: .08em; color: var(--accent-ink); transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background .25s, opacity .3s; opacity: 0; mix-blend-mode: normal; }
.cur.is-on { opacity: 1; }
.cur.is-link { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--accent); }
.cur.is-view { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: var(--accent); }
.cur.is-view::after { content: attr(data-label); }
@media (hover: none), (pointer: coarse) { .cur { display: none; } }

/* intro */
.intro { position: fixed; inset: 0; z-index: 110; background: #050505; display: grid; place-items: center; transition: clip-path .9s var(--ease-out), visibility 0s .9s; clip-path: inset(0); }
.intro.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.intro__logo { position: relative; width: min(52vw, 420px); color: #1d1d1d; }
.intro__fill { position: absolute; inset: 0; color: var(--accent); clip-path: inset(calc(100% - var(--p, 0) * 1%) 0 0 0); }
.intro__n { position: absolute; left: var(--pad); bottom: 24px; font: 400 12px/1 var(--f-mono); color: var(--ink-2); }
.intro__t { position: absolute; right: var(--pad); bottom: 24px; font-family: var(--f-goth); font-weight: 700; font-size: 18px; color: var(--ink-2); }

/* aparición al hacer scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
[data-reveal].in { opacity: 1; transform: none; }
/* nota: se deja 1% visible (con opacidad 0) porque el observador ignora elementos recortados al 100% */
[data-reveal='clip'] { opacity: 0; transform: none; clip-path: inset(0 0 99% 0); transition: clip-path 1.1s var(--ease-out), opacity .01s; transition-delay: calc(var(--d, 0) * 1ms); }
[data-reveal='clip'].in { opacity: 1; clip-path: inset(0); }
.line { display: block; clip-path: inset(-45% -12% 0 -6%); padding-bottom: .14em; margin-bottom: -.14em; }
.line > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.in .line > span, .line.in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], .line > span { opacity: 1; transform: none; clip-path: none; }
  @view-transition { navigation: none; }
}

.seen .intro { display: none; }

/* el botón "+" va sobre la esquina de la foto (la tarjeta mide 3:4 de su ancho) */
.pcard { container-type: inline-size; }
.pcard__add { bottom: auto; top: calc(100cqw * 4 / 3 - 46px); }
@media (hover: none) { .pcard__add { top: calc(100cqw * 4 / 3 - 42px); } }
@media (max-width: 720px) { .pcard__info { grid-template-columns: 1fr; gap: 3px; } .pcard__name { font-size: 11.5px; } }

/* ==========================================================================
   CELULARES Y TABLETS (táctil): mismo diseño, animaciones baratas.
   Regla: solo se anima transform y opacidad (lo resuelve la GPU sin repintar).
   Se quitan desenfoques de fondo, modos de fusión a pantalla completa y recortes animados,
   que son lo que hace sentir lento el scroll en un teléfono.
   ========================================================================== */
@media (hover: none), (pointer: coarse) {
  body::after { display: none; }                                  /* grano a pantalla completa con fusión */
  .hdr.is-stuck { background: rgba(7, 7, 7, .96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tag { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tag:not(.tag--accent):not(.tag--pink):not(.tag--out) { background: rgba(0, 0, 0, .82); }
  .scrim { background: rgba(0, 0, 0, .76); backdrop-filter: none; -webkit-backdrop-filter: none; }
  [data-reveal] { transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .55s var(--ease-out); transition-delay: calc(var(--d, 0) * .6ms); }
  [data-reveal='clip'] { clip-path: none; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .55s var(--ease-out); transition-delay: calc(var(--d, 0) * .6ms); }
  [data-reveal='clip'].in { clip-path: none; opacity: 1; transform: none; }
  .line > span { transition-duration: .65s; }
  .menu { clip-path: none; transform: translate3d(0, -101%, 0); transition: transform .45s var(--ease-out), visibility 0s .45s; }
  .menu.is-open { clip-path: none; transform: none; transition: transform .45s var(--ease-out); }
  .menu__links a { transition-duration: .2s, .4s; }
  .menu.is-open .menu__links a { transition-delay: calc(.08s + var(--i) * .03s); }
  .intro { transition: opacity .35s var(--ease), visibility 0s .35s; }
  .intro.is-done { clip-path: none; opacity: 0; }
  .drawer { transition-duration: .38s; }
  .modal__card { transition-duration: .35s; }
  .pcard__media img { transition: none; }
  .wa-fab::before { animation: none; }
  ::view-transition-old(root) { animation-duration: .16s; }
  ::view-transition-new(root) { animation-duration: .24s; }
}
