/* HolyGlam - página "Próximamente"
   Paleta derivada de las fotos de marca (crema, durazno, oro/bronce).
   Forma: radio único de 20px; solo el arco del hero y los botones (pill) son excepción. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fcf7f3;
  --surface: #f5e9e0;
  --ink: #33261f;
  --muted: #6b5a50;
  --accent: #8a6236;
  --on-accent: #fffaf5;
  --line: rgb(51 38 31 / 0.14);
  --glow: rgb(246 214 190 / 0.55);
  --shadow: 0 24px 60px -28px rgb(112 72 40 / 0.45);

  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1819;
    --surface: #2a2223;
    --ink: #f4ebe4;
    --muted: #c2b3a9;
    --accent: #d4ae78;
    --on-accent: #1d1819;
    --line: rgb(244 235 228 / 0.16);
    --glow: rgb(150 96 62 / 0.28);
    --shadow: 0 24px 60px -28px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, 1240px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav { position: relative; z-index: 10; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__note { display: none; font-size: 0.875rem; color: var(--muted); letter-spacing: 0.04em; }
.wordmark {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
}
.wordmark span { font-weight: 300; color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 8px 72px;
  background: radial-gradient(60% 55% at 82% 28%, var(--glow), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__copy { display: grid; justify-items: start; gap: 24px; }

.eyebrow {
  font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent);
}
.hero__title {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  font-weight: 300; line-height: 1.04; letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}
.hero__title strong { font-weight: 600; color: var(--accent); }
.hero__lead { max-width: 44ch; color: var(--muted); font-size: 1.0625rem; }

/* Countdown */
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: min(100%, 460px);
  padding: 18px 8px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}
.countdown__cell {
  display: grid; justify-items: center; gap: 2px;
  padding-inline: 4px;
}
.countdown__cell + .countdown__cell { border-left: 1px solid var(--line); }
.countdown__num {
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 2.75rem);
  font-weight: 500; line-height: 1.1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.countdown__label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.countdown.is-done { display: none; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 0.9375rem; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); }
[hidden] { display: none !important; }

/* Hero media */
.hero__media { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.arch {
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.inset {
  position: absolute; left: -6%; bottom: -5%;
  width: 36%; aspect-ratio: 1;
  border-radius: var(--radius); overflow: hidden;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow);
}
.inset img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }

/* ---------- Secciones ---------- */
.section { padding-block: 72px; }
.section__head { display: grid; gap: 12px; margin-bottom: 40px; }
.h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__lead { color: var(--muted); max-width: 52ch; }

/* Productos: recortes de la foto de la bandeja */
.products__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px; align-items: start;
}
.product__frame {
  aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius); background: var(--surface);
}
.product__img {
  width: 100%; height: 100%;
  background: url("../assets/img/productos-bandeja.jpg") no-repeat;
  background-size: var(--z) auto;
  background-position: var(--pos);
  transition: transform 0.9s var(--ease);
}
.product:hover .product__img { transform: scale(1.06); }
.product figcaption { display: grid; gap: 2px; padding-top: 14px; }
.product h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.product p { font-size: 0.875rem; color: var(--muted); }
.product:nth-child(even) { margin-top: 28px; }

/* Historia: imagen con panel superpuesto */
.story { padding-block: 24px 72px; }
.story__wrap { position: relative; }
.story__image { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.story__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.story__panel {
  position: relative; z-index: 1;
  margin: -64px 12px 0;
  padding: 28px 24px;
  display: grid; gap: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.story__panel p { color: var(--muted); max-width: 44ch; }

/* Fecha */
.date__grid { display: grid; gap: 40px; align-items: center; }
.date__copy { display: grid; gap: 12px; justify-items: start; }
.date__value {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.035em;
  color: var(--accent);
  text-wrap: balance;
}
.date__image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.date__image img { width: 100%; height: auto; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer__inner { display: grid; gap: 8px; justify-items: start; }
.footer__note { color: var(--muted); font-size: 0.9375rem; }
.footer__copy { color: var(--muted); font-size: 0.8125rem; margin-top: 12px; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .nav__note { display: block; }
  .hero { padding-block: 16px 96px; }
  .products__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .product:nth-child(even) { margin-top: 56px; }
  .section { padding-block: 96px; }
  .story { padding-block: 24px 96px; }
  .story__image { aspect-ratio: 16 / 9; }
  .story__panel {
    position: absolute; left: 40px; bottom: -40px;
    margin: 0; width: min(440px, 46%); padding: 36px;
  }
  .date__grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer__note { justify-self: center; }
  .footer__copy { margin-top: 0; }
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; min-height: min(calc(100dvh - 120px), 760px); }
  .hero__media { justify-self: end; }
}

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  .arch img { animation: settle 1.6s var(--ease) both; }
  .inset { animation: rise 1s var(--ease) 0.7s both; }

  .js [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product__img, .btn { transition: none; }
}
