@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; }
: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: linear-gradient(var(--bg), transparent);
}
.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 14px; min-height: 36px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.hero { display: flex; flex-direction: column; align-items: center; padding: 8px 16px 40px; }
.eyebrow { margin: 0 0 18px; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.card-wrap { perspective: 1400px; width: min(88vw, 420px); }
.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: 26px 24px 54px; display: flex; flex-direction: column;
}
.back { padding: 22px 22px 18px; }
.back-title { font-family: var(--display); font-style: italic; font-size: 1.7rem; line-height: 1.1; color: var(--accent); margin-bottom: 6px; }
.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: .92rem; }
.specs dt, .specs dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 380px) { .back { padding: 16px 16px 14px; } .specs { font-size: .8rem; } .specs dt, .specs dd { padding: 5px 0; } .specs dt { font-size: .64rem; } }
.specs dt { color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; align-self: 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: 26px; grid-template-columns: 1fr 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 small { font-weight: 400; font-size: .7rem; opacity: .75; margin-top: 2px; }
.btn.primary { grid-column: 1 / -1; background: var(--accent); color: var(--accent-ink); border-color: transparent; min-height: 60px; font-size: 1rem; }
.btn.primary:hover { background: #c6d6f5; }
.btn.wa { background: #1f8f55; border-color: transparent; color: #fff; }
.btn.wa:hover { background: #26a763; }
.btn.ghost { background: transparent; }

.gallery-sec { padding: 24px 12px 60px; max-width: 1200px; margin: 0 auto; }
.gallery-sec h2 { font-family: var(--display); font-weight: 500; font-size: 2rem; margin: 0 4px 18px; }
.gallery { columns: 2; column-gap: 10px; }
.gallery button { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: var(--panel); border-radius: 12px; overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.gallery img { width: 100%; height: auto; transition: transform .5s ease, opacity .5s ease; opacity: 0; }
.gallery img.loaded { opacity: 1; }
.gallery button:hover img { transform: scale(1.03); }

footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px 16px 48px; border-top: 1px solid var(--line); }

.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: 560px) { .actions { grid-template-columns: repeat(4, 1fr); width: min(92vw, 640px); } .btn.primary { grid-column: 1 / -1; } }
@media (min-width: 760px) { .gallery { columns: 3; column-gap: 14px; } .gallery button { margin-bottom: 14px; } }
@media (min-width: 1100px) { .gallery { columns: 4; } }

@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; }
  .gallery img, .toast { transition: none; }
}
