/* =====================================================================
   Estilos — colores y tipografías en :root para cambiarlos en un solo lugar.
   ===================================================================== */
:root {
  --obsidian: #0f1012;   /* fondo principal */
  --graphite: #17181b;   /* superficies */
  --graphite-2: #1f2124;
  --steel: #8d9299;      /* texto secundario */
  --silver: #c9ccd1;
  --ivory: #eeece7;      /* texto principal */
  --paper: #ebebe8;      /* sección clara */
  --paper-ink: #16171a;
  --paper-muted: #55585e;
  --gold: #b39a6b;       /* detalle dorado, usar poco */
  --wa: #25d366;
  --line: rgba(238, 236, 231, 0.1);
  --line-2: rgba(238, 236, 231, 0.2);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 72px;
  --wrap: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--obsidian); color: var(--ivory);
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 400; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.no-scroll, html.modal-open body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; font-optical-sizing: auto; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--obsidian); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ivory); color: var(--obsidian); padding: 10px 16px; transition: top 0.3s; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 80px, var(--wrap)); } }

.section { padding-block: clamp(88px, 12vw, 168px); }
.section-head { max-width: 620px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); letter-spacing: -0.01em; }
.section-head p { color: var(--steel); margin: 22px 0 0; max-width: 52ch; }

mark.pending {
  background: rgba(179, 154, 107, 0.12); color: var(--gold);
  border: 1px dashed rgba(179, 154, 107, 0.55); padding: 0 6px; border-radius: 2px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 1px;
  background: none; cursor: pointer; white-space: nowrap;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--ivory); color: var(--obsidian); }
.btn--primary:hover { background: #fff; }
.btn--ghost { border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ivory); }
.btn--wa { border-color: var(--line-2); }
.btn--wa svg { color: var(--wa); }
.btn--wa:hover { border-color: var(--wa); }
.btn--wa-solid { background: var(--wa); color: #06140b; }
.btn--wa-solid:hover { background: #3ee07c; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s, border-color 0.5s;
}
.nav.is-scrolled {
  background: rgba(15, 16, 18, 0.84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 36px; }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; }
.brand__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: #d4c197; white-space: nowrap; }
.brand img { height: 36px; width: auto; }
.nav__menu { display: flex; align-items: center; margin-left: auto; }
.nav__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav__links a { position: relative; padding: 6px 0; font-size: 0.95rem; color: var(--steel); transition: color 0.3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ivory); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__menu-cta { display: none; }
.nav__toggle { display: none; }

@media (max-width: 1023px) {
  .nav__cta { display: none; }
  .nav__toggle {
    position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 8px;
    width: 44px; height: 44px; margin-left: auto; padding: 0 0 0 10px; border: 0; background: none; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 1px; background: var(--ivory); transition: transform 0.45s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  /* backdrop-filter crea un contenedor para los fixed: se quita al abrir el menú */
  .nav.is-open { background: var(--obsidian); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 1; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 40px;
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 28px calc(40px + env(safe-area-inset-bottom, 0px));
    background: var(--obsidian); opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0.45s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav__links { flex-direction: column; gap: 6px; }
  .nav__links li { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--i) * 50ms + 80ms); }
  .nav.is-open .nav__links li { opacity: 1; transform: none; }
  .nav__links a { font-family: var(--serif); font-size: clamp(2rem, 8vw, 2.6rem); color: var(--ivory); }
  .nav__links a::after { display: none; }
  .nav__menu-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 32px) 0 72px;
  background:
    radial-gradient(55% 55% at 72% 48%, rgba(179, 154, 107, 0.09), transparent 70%),
    radial-gradient(70% 60% at 10% 100%, #16171a, transparent 70%),
    var(--obsidian);
}
.hero__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.hero__kicker { color: var(--gold); font-size: 0.95rem; margin-bottom: 22px; }
.hero__title { font-size: clamp(3.4rem, 12vw, 8.2rem); line-height: 0.94; letter-spacing: -0.02em; }
.hero__line { display: block; }
.hero__line + .hero__line { padding-left: 0.6em; }
.hero__sub { max-width: 42ch; color: var(--steel); font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin: 30px 0 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .hero__actions .btn { flex: 1 1 100%; } }

.hero__visual { position: relative; width: 100%; max-width: 480px; margin-inline: auto; }
.hero__visual > svg, .hero__visual > img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)); }
.hero__visual > svg { -webkit-mask-image: linear-gradient(transparent 2%, #000 22%, #000 78%, transparent 98%); mask-image: linear-gradient(transparent 2%, #000 22%, #000 78%, transparent 98%); }
.hero__halo { position: absolute; inset: 12% 4%; border-radius: 50%; border: 1px solid var(--line); }
.hero__halo::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; border: 1px solid rgba(238, 236, 231, 0.05); }
.hero__time { position: absolute; right: 0; bottom: 4%; margin: 0; font-size: 0.85rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.hero__time span { color: var(--ivory); }
@media (max-width: 959px) {
  .hero { align-items: flex-start; }
  .hero { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 8px); }
  .hero__visual { max-width: 210px; order: -1; margin-bottom: -12px; }
  .hero__halo { display: none; }
  .hero__time { display: none; }
}
@media (max-width: 959px) and (max-height: 720px) { .hero__visual { max-width: 150px; } .hero__sub { margin: 20px 0 28px; } }

/* Un solo momento orquestado de entrada */
.hero__kicker, .hero__line, .hero__sub, .hero__actions { opacity: 0; transform: translateY(18px); }
.hero__visual { opacity: 0; transform: scale(0.97); }
.is-ready .hero__kicker, .is-ready .hero__line, .is-ready .hero__sub, .is-ready .hero__actions {
  animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 150ms);
}
.is-ready .hero__visual { animation: settle 1.8s var(--ease) 0.1s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { to { opacity: 1; transform: none; } }

/* ---------- Colección ---------- */
.filters { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
@media (min-width: 960px) { .filters { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: -20px; padding: 2px 20px; scroll-padding-inline: 20px;
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { flex-wrap: wrap; margin: 0; padding: 2px 0; } }
.chip {
  flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: none; color: var(--steel); font-size: 0.95rem;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.chip:hover { color: var(--ivory); border-color: var(--steel); }
.chip[aria-pressed="true"] { background: var(--ivory); border-color: var(--ivory); color: var(--obsidian); }

.search { position: relative; width: 100%; max-width: 340px; flex: none; }
.search svg { position: absolute; left: 0; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--steel); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 4px 0 30px; border: 0; border-bottom: 1px solid var(--line-2);
  background: transparent; font-size: 16px; border-radius: 0; transition: border-color 0.3s;
}
.search input::placeholder { color: var(--steel); }
.search input:focus { outline: none; border-color: var(--gold); }

.collection__count { color: var(--steel); font-size: 0.9rem; margin-bottom: 30px; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: 1fr; gap: 56px 20px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 64px 24px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 80px 32px; } }

.card { display: flex; flex-direction: column; }
.card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0;
  overflow: hidden; background: var(--graphite); cursor: pointer;
}
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity 0.8s var(--ease); }
.card__img--alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .card__media:hover .card__img { transform: scale(1.035); }
  .card__media:hover .card__img--alt { opacity: 1; }
}
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ivory);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--steel); }
.status[data-tone="ok"]::before { background: #86b394; }
.status[data-tone="wait"]::before { background: var(--gold); }
.status[data-tone="off"] { color: var(--steel); }
.status[data-tone="off"]::before { background: transparent; border: 1px solid var(--steel); }
.card__media .status {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px;
  background: rgba(15, 16, 18, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 22px; }
.card__cat { color: var(--gold); font-size: 0.9rem; margin-bottom: 6px; }
.card__name { font-size: clamp(1.7rem, 2.6vw, 2rem); }
.card__facts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--steel); font-size: 0.95rem; }
.card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 22px; }

.empty { grid-column: 1 / -1; padding: 64px 0; border-top: 1px solid var(--line); color: var(--steel); }
.empty__title { font-family: var(--serif); font-size: 1.8rem; color: var(--ivory); }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Aparición progresiva de imágenes */
.js-reveal .card, .js-reveal .reveal-img { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js-reveal .card.is-in, .js-reveal .reveal-img.is-in { opacity: 1; transform: none; }

.group-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  margin-top: clamp(64px, 8vw, 96px); padding-top: 32px; border-top: 1px solid var(--line);
}
.group-band p { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.3; max-width: 30ch; }
.group-band .btn svg, .contact__actions .btn--ghost svg { color: var(--gold); }

/* ---------- Cómo trabajamos ---------- */
.why { background: var(--graphite); border-block: 1px solid var(--line); }
.why__grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }
.why__item { padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) {
  .why__item { padding: 44px 32px 48px 0; }
  .why__item:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .why__item { border-bottom: 0; padding: 48px 28px 8px; border-left: 1px solid var(--line); }
  .why__item:first-child { border-left: 0; padding-left: 0; }
}
.why__icon { display: block; width: 44px; height: 44px; color: var(--gold); margin-bottom: 28px; }
.why__item h3 { font-size: 1.65rem; margin-bottom: 12px; }
.why__item p { color: var(--steel); margin: 0; max-width: 36ch; }

/* ---------- Sobre nosotros (sección clara) ---------- */
.about { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.about__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 1.1fr 0.9fr; gap: 96px; } }
.about__title { font-family: var(--sans); font-size: 0.95rem; color: #7d6640; margin-bottom: 26px; }
.about__lead { font-family: var(--serif); font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.18; margin-bottom: 36px; }
.about__copy p:not(.about__lead) { color: var(--paper-muted); max-width: 56ch; }
.about mark.pending { color: #7d6640; border-color: rgba(125, 102, 64, 0.5); background: rgba(125, 102, 64, 0.08); }
.about__visual { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--graphite); }
.about__visual img { width: 100%; height: 100%; object-fit: cover; }
.about__visual { background: #0c0c0d; }
.about__visual--logo { aspect-ratio: 1 / 1; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 8px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 26px 52px 26px 0;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.3;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1px; background: var(--gold);
  transition: transform 0.45s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: #fff; }
.faq__a { padding: 0 48px 28px 0; color: var(--steel); max-width: 62ch; }
.faq details[open] .faq__a { animation: fadeIn 0.5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Contacto ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; gap: 64px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.contact__info h2 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); margin-bottom: 22px; }
.contact__text { color: var(--steel); max-width: 40ch; margin-bottom: 32px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .contact__actions .btn { flex: 1 1 100%; } }
.contact__data { margin: 44px 0 0; display: grid; gap: 18px; }
.contact__data dt { font-size: 0.85rem; color: var(--steel); }
.contact__data dd { margin: 2px 0 0; }

.form { display: grid; gap: 26px; align-content: start; }
.field label { display: block; font-size: 0.9rem; color: var(--steel); margin-bottom: 6px; }
.field__opt { opacity: 0.7; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; font-size: 16px; transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
.field textarea::placeholder { color: rgba(141, 146, 153, 0.7); }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d9299' stroke-width='1.3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 18px;
}
.field select option { background: var(--graphite); color: var(--ivory); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #c98a86; }
.field__error { color: #e0a6a2; font-size: 0.88rem; margin: 6px 0 0; min-height: 1.2em; }
.form__note { color: var(--steel); font-size: 0.88rem; margin: -8px 0 0; }

/* ---------- Footer ---------- */
.footer { background: #0b0c0d; border-top: 1px solid var(--line); padding: 80px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer__grid { display: grid; gap: 44px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer__brand { grid-column: auto; } }
.footer__brand p { color: var(--steel); margin: 12px 0 22px; }
.footer__emblem img { width: 120px; height: 120px; object-fit: cover; }
.footer__h { font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--ivory); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--steel); transition: color 0.3s; }
.footer ul a:hover { color: var(--ivory); }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: border-color 0.3s; }
.social a:hover { border-color: var(--ivory); }
.social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--steel); font-size: 0.88rem; }
.footer__bottom p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 0; height: 58px; min-width: 58px; padding: 0 16px; border-radius: 999px;
  background: var(--wa); color: #06140b; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), gap 0.4s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 500; transition: max-width 0.5s var(--ease); }
@media (hover: hover) and (min-width: 768px) {
  .wa-float:hover { gap: 10px; }
  .wa-float:hover .wa-float__label { max-width: 220px; }
}

/* ---------- Modal de producto ---------- */
.modal {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--ivory);
}
.modal[open] { display: grid; place-items: center; }
.modal::backdrop { background: rgba(6, 6, 7, 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open]::backdrop { animation: fadeIn 0.4s var(--ease); }
.modal__panel {
  position: relative; width: 100%; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--graphite);
}
.modal[open] .modal__panel { animation: panelIn 0.55s var(--ease); }
.modal.is-closing .modal__panel { animation: panelOut 0.26s ease forwards; }
.modal.is-closing::backdrop { opacity: 0; transition: opacity 0.26s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes panelOut { to { opacity: 0; transform: translateY(12px); } }

.modal__close {
  position: fixed; z-index: 5; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(15, 16, 18, 0.72); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.modal__close svg { width: 20px; height: 20px; }

.gallery { position: relative; background: #0c0d0f; }
.gallery__main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; touch-action: pan-y; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transition: transform 0.55s var(--ease), opacity 0.16s; }
.gallery__main img.is-swapping { opacity: 0; }
.gallery__main.is-zoomed { cursor: zoom-out; touch-action: none; }
.gallery__main.is-zoomed img { transform: scale(2.2); transition: transform 0.45s var(--ease); }
.gallery__arrow {
  position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-2); background: rgba(15, 16, 18, 0.6); cursor: pointer;
  transition: border-color 0.3s;
}
.gallery__arrow:hover { border-color: var(--ivory); }
.gallery__arrow svg { width: 20px; height: 20px; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; scrollbar-width: none; }
.thumb { flex: none; width: 64px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: 0.5; transition: opacity 0.3s, border-color 0.3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.85; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.gallery__hint { margin: 0; padding: 0 12px 12px; font-size: 0.82rem; color: var(--steel); }

.detail { padding: 32px 22px calc(48px + env(safe-area-inset-bottom, 0px)); }
.detail__cat { color: var(--gold); margin-bottom: 8px; }
.detail__name { font-size: clamp(2.4rem, 6vw, 3.4rem); margin-bottom: 16px; }
.detail__desc { color: var(--silver); margin: 22px 0 0; max-width: 56ch; }
.specs { display: grid; grid-template-columns: 1fr 1fr; margin: 36px 0 0; border-top: 1px solid var(--line); }
.specs > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 0.85rem; color: var(--steel); }
.specs dd { margin: 2px 0 0; }
.detail__sub { font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--steel); margin: 30px 0 10px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.features li { position: relative; padding-left: 22px; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1px; background: var(--gold); }
.ask { margin-top: 30px; padding: 26px 22px; border: 1px solid var(--line-2); background: rgba(238, 236, 231, 0.02); }
.ask__title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin-bottom: 8px; }
.ask__text { color: var(--steel); margin-bottom: 20px; }
.ask__note { color: var(--steel); font-size: 0.85rem; margin: 14px 0 0; }
.detail__share { margin-top: 18px; padding: 8px 0; border: 0; background: none; color: var(--steel); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; word-break: break-all; text-align: left; }
.detail__share:hover { color: var(--ivory); }

.modal__bar {
  position: sticky; bottom: 0; z-index: 4; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, var(--graphite) 30%);
}
@media (min-width: 960px) {
  .modal__bar { display: none; }
  .modal { padding: 32px; }
  .modal__panel {
    display: grid; grid-template-columns: 1.05fr 0.95fr; overflow: hidden;
    width: min(1180px, 100%); height: min(820px, calc(100dvh - 64px));
  }
  .modal__close { position: absolute; top: 16px; right: 16px; }
  .gallery { display: flex; flex-direction: column; min-height: 0; }
  .gallery__main { aspect-ratio: auto; flex: 1; min-height: 0; }
  .gallery__arrow { top: 50%; transform: translateY(-50%); }
  .detail { overflow-y: auto; overscroll-behavior: contain; padding: 64px 56px 48px; }
}

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--nav-h) + 72px) 0 120px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--silver); }
.legal__top { position: fixed; inset: 0 0 auto; z-index: 10; background: rgba(15, 16, 18, 0.9); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.legal__top .wrap { max-width: var(--wrap); height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.legal__top a:last-child { color: var(--steel); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
}
