@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/bodoni-moda.woff2) format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/bodoni-moda-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/inter.woff2) format("woff2"); }
:root {
  --bg: #0c0d11;
  --panel: #14161c;
  --ink: #f3f0ea;
  --muted: #9a9ca6;
  --accent: #b4c8ef; /* azul cielo de la capa */
  --accent-ink: #0c0d11;
  --line: rgba(243, 240, 234, .14);
  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
html { scrollbar-color: #2a2d38 var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px max(16px, env(safe-area-inset-left)); position: sticky; top: 0; z-index: 20;
  background: rgba(12,13,17,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--display); font-size: 1.25rem; letter-spacing: .08em; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; background: rgba(12,13,17,.7); backdrop-filter: blur(8px); }
.lang button {
  font: 600 .75rem var(--sans); letter-spacing: .08em; color: var(--muted);
  background: none; border: 0; border-radius: 99px; padding: 8px 16px; min-height: 44px; min-width: 48px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.hero { display: flex; flex-direction: column; align-items: center; padding: 14px 16px 40px; }
.lede { margin: 26px 0 4px; font: italic 500 clamp(1.5rem, 6vw, 1.9rem)/1.15 var(--display); color: var(--accent); text-align: center; text-wrap: balance; }
.meta { white-space: pre-line; margin: 0; font-size: .85rem; color: var(--muted); text-align: center; text-wrap: balance; max-width: 34ch; }

.card-wrap { perspective: 1400px; width: max(260px, min(88vw, 420px, calc((100svh - 330px) * .6667))); }
.card {
  position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; cursor: pointer;
  transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .7, .2, 1);
  border-radius: 22px; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.card.flipped { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.front img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,17,0) 45%, rgba(12,13,17,.85) 100%); }
.name {
  position: absolute; left: 22px; bottom: 54px; display: flex; flex-direction: column;
  font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 15vw, 4.6rem); line-height: .88;
  letter-spacing: -.01em;
}
.name span:last-child { font-style: italic; color: var(--accent); }
.flip-hint {
  position: absolute; left: 22px; bottom: 20px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(243,240,234,.75);
}
.back {
  transform: rotateY(180deg); background: var(--panel); border: 1px solid var(--line);
  padding: 20px 22px 16px; display: flex; flex-direction: column;
}
.back-title { font-family: var(--display); font-style: italic; font-size: 1.6rem; line-height: 1.1; color: var(--accent); margin-bottom: 4px; }
.back .flip-hint { position: static; margin-top: auto; padding-top: 10px; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 0; font-size: .86rem; line-height: 1.3; }
.specs dt, .specs dd { margin: 0; padding: 5px 0; border-bottom: 1px solid var(--line); }
.specs dt.group { grid-column: 1 / -1; padding: 18px 0 4px; border-bottom: 0; font-family: var(--display); font-style: italic; font-size: 1.6rem; line-height: 1.1; letter-spacing: 0; text-transform: none; color: var(--accent); }
@media (max-width: 380px) { .back { padding: 14px 16px 12px; } .back-title { font-size: 1.35rem; } .specs { font-size: .78rem; } .specs dt, .specs dd { padding: 3px 0; } .specs dt { font-size: .62rem; } .specs dt.group { padding: 12px 0 3px; font-size: 1.35rem; } }
.specs dt { color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; }
.specs dd { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }

.actions { display: grid; gap: 10px; width: min(88vw, 420px); margin-top: 22px; grid-template-columns: 1fr; }
.btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 12px 16px; border-radius: 14px; text-decoration: none;
  font: 600 .92rem var(--sans); border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: #1c1f27; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; min-height: 60px; font-size: 1rem; }
.btn.primary:hover { background: #c6d6f5; }

.gallery-sec { padding: 24px 12px 12px; max-width: 1200px; margin: 0 auto; }
.gallery-sec h2 { font-family: var(--display); font-weight: 500; font-size: 2rem; margin: 0 4px 18px; }
.t10 { display: grid; gap: 10px; }
.t10-frame { position: relative; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #1b1e27, var(--panel)); }
.t10-slide { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; opacity: 0; transition: opacity .9s cubic-bezier(.2, .7, .2, 1); }
.t10-slide.on { opacity: 1; z-index: 1; }
.t10-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.05); transition: transform 5.5s cubic-bezier(.2, .7, .2, 1), opacity .5s ease; opacity: 0; }
.t10-slide.on img { transform: scale(1); }
.t10-slide img.loaded, .t10-thumb img.loaded, .fcard img.loaded { opacity: 1; }
.t10-bar { display: flex; gap: 4px; margin-top: 10px; }
.t10-bar[hidden] { display: none; }
.t10-bar i { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.t10-bar i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.t10-bar i.on::after { transform: scaleX(1); }
.t10-bar.run i.on::after { animation: t10fill 4.5s linear; }
@keyframes t10fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.t10-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.t10-thumb { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #1b1e27, var(--panel)); cursor: zoom-in; }
.t10-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; opacity: 0; transition: transform .5s ease, opacity .5s ease; }
.t10-thumb:hover img { transform: scale(1.04); }
.t10-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--accent); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.t10-thumb.live::after { opacity: 1; }

.fan-sec { overflow: hidden; padding: 20px 0 52px; }
.fan { --w: clamp(210px, 60vw, 300px); position: relative; isolation: isolate; height: calc(var(--w) * 1.5 + 120px); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.fan.drag { cursor: grabbing; }
.fan:focus-visible { outline-offset: -6px; border-radius: 16px; }
.fcard { position: absolute; left: 50%; top: 24px; width: var(--w); margin-left: calc(var(--w) / -2); aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; transform-origin: 50% 180%; background: linear-gradient(160deg, #1b1e27, var(--panel)); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .75); will-change: transform; }
.fcard img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.fan-ctl { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 4px; }
.fan-count { margin: 0; min-width: 8ch; text-align: center; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.fan-nav { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: background .2s ease, transform .15s ease; }
.fan-nav:hover:not(:disabled) { background: #1c1f27; }
.fan-nav:active:not(:disabled) { transform: scale(.96); }
.fan-nav:disabled { opacity: .35; cursor: default; }
.fan-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.closing { max-width: 520px; margin: 0 auto; padding: 56px 16px 72px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.05; margin: 0 0 12px; text-wrap: balance; }
.closing-text { margin: 0 0 6px; color: var(--muted); max-width: 36ch; text-wrap: balance; }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 28px 16px 48px; border-top: 1px solid var(--line); }
footer p { margin: 14px 0 0; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.foot-links a, .foot-links button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 99px;
  font: 500 .9rem var(--sans); color: var(--ink); text-decoration: none; background: none; border: 1px solid var(--line); cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.foot-links a:hover, .foot-links button:hover { background: var(--panel); border-color: var(--accent); }
.foot-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 99px; font-size: .85rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: .3s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.lightbox { position: fixed; inset: 0; z-index: 50; background: #08090c; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100vw; max-height: 92vh; object-fit: contain; }
.lb-close, .lb-nav { position: absolute; background: rgba(243,240,234,.1); color: var(--ink); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); margin: 0; font-size: .75rem; letter-spacing: .16em; color: var(--muted); }

@media (min-width: 900px) {
  .t10 { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .t10-frame { aspect-ratio: 4 / 5; }
  .t10-grid { gap: 12px; }
  .fan { --w: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card.flipped { transform: none; }
  .card .face { transition: opacity .2s; }
  .card .back { transform: none; opacity: 0; pointer-events: none; }
  .card.flipped .back { opacity: 1; }
  .card.flipped .front { opacity: 0; }
  .t10-slide, .t10-slide img, .t10-thumb img, .t10-thumb::after, .fcard img, .toast { transition: none; }
  .t10-slide img { transform: none; }
}
