/* CORTALE — tokens y layout según docs/web-spec.md */
:root {
  --canvas: #faf8f4;
  --ink: #1a1815;
  --ink-soft: #6b6660;
  --oxblood: #7a2e2e;
  --hairline: #e4e0d8;
  --night: #12100e;
  --canvas-on-night: #f5f2ec;
  --max: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }

h1, h2, .price-big { font-family: "Marcellus", serif; font-weight: 400; }
h1 { font-size: clamp(2.4rem, 8vw, 4.5rem); line-height: 1.05; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.15; margin-bottom: 16px; }

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px;
}
.night .eyebrow { color: #a89f93; }

.sub { color: var(--ink-soft); max-width: 34em; }

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

.btn {
  display: inline-block; padding: 14px 28px; min-height: 44px;
  background: var(--oxblood); color: var(--canvas); text-decoration: none;
  font-weight: 500; font-size: 16px; border-radius: 4px; border: 1px solid var(--oxblood);
}
.btn:hover { background: #632424; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.btn-ghost:hover { border-color: var(--oxblood); color: var(--oxblood); background: transparent; }
.night .btn-ghost { color: var(--canvas-on-night); border-color: #3a352e; }

.microcopy { font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); margin-top: 12px; }
.night .microcopy { color: #a89f93; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-family: "Marcellus", serif; font-size: 20px; letter-spacing: 0.18em; text-decoration: none; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--oxblood); }
.nav-links a.btn { padding: 9px 18px; font-size: 14px; color: var(--canvas); }
.nav-links a.btn:hover { color: var(--canvas); }
@media (max-width: 700px) { .nav-links a.hide-m { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 72px 20px 96px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 48px 20px 64px; } }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Mockup — MacBook en desktop, iPhone en mobile */
.mockup { position: relative; margin: 0 auto; width: 100%; max-width: 560px; }
.screen {
  position: relative; overflow: hidden; background: #000;
  border-radius: 14px; border: 2px solid #2a2a2a;
  box-shadow: 0 24px 60px rgba(20, 16, 10, 0.28);
  aspect-ratio: 16 / 10;
}
.screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.screen img.on { opacity: 1; }
.notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 18%; height: 14px; background: #000; border-radius: 0 0 8px 8px; z-index: 3;
}
.mac-base {
  height: 14px; background: linear-gradient(#d8d5cf, #b8b5af);
  border-radius: 0 0 16px 16px; margin: 0 -6%;
}
.clock {
  position: absolute; top: 10%; left: 0; right: 0; z-index: 2;
  text-align: center; color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
.clock .date { font-size: clamp(11px, 1.6vw, 15px); font-weight: 500; }
.clock .time { font-size: clamp(40px, 7vw, 64px); font-weight: 700; letter-spacing: 0.01em; line-height: 1; }
.phone-only { display: none; }
@media (max-width: 700px) {
  .mockup { max-width: 250px; }
  .screen { aspect-ratio: 9 / 19; border-radius: 34px; border-width: 3px; }
  .notch { width: 34%; height: 22px; border-radius: 0 0 12px 12px; }
  .mac-base { display: none; }
  .clock { top: 12%; }
  .clock .time { font-size: 56px; }
  .desk-only { display: none; }
  .phone-only { display: block; }
}

/* Featured (night) */
.night { background: var(--night); color: var(--canvas-on-night); }
.featured-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .featured-grid { grid-template-columns: 1fr; } }
.featured-img img {
  width: 100%; border-radius: 6px; border: 1px solid #2e2a24; display: block;
}
.bullets { font-size: 14px; color: #cfc8bd; margin: 18px 0 22px; }
.buy-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.price-big { font-size: 44px; }

/* Gallery */
.grid-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; margin-top: 40px; }
.pack-card { border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.pack-card img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.35s ease; }
.pack-card:hover img { transform: scale(1.02); }
.pack-card:hover { border-color: var(--oxblood); }
.pack-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pack-name { font-family: "Marcellus", serif; font-size: 20px; }
.pack-meta { font-size: 13px; color: var(--ink-soft); }
.pack-body .btn { margin-top: auto; text-align: center; }
.soon { display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--hairline); border-radius: 6px; color: var(--ink-soft); min-height: 280px; padding: 24px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step h3 { font-family: "Marcellus", serif; font-size: 19px; font-weight: 400; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-soft); }
.step .n { font-size: 12px; color: var(--oxblood); letter-spacing: 0.12em; }

/* Free sample */
.free { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); text-align: center; }
.free .btn { margin-top: 22px; }

/* Story */
.story { max-width: 620px; margin: 0 auto; text-align: center; }
.story p { font-size: 18px; }
.story .sign { margin-top: 18px; color: var(--ink-soft); font-size: 15px; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; min-height: 44px; align-items: center; }
.faq summary::after { content: "+"; color: var(--oxblood); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-soft); padding-top: 8px; font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 40px 0 60px; font-size: 13px; color: var(--ink-soft); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--oxblood); }

/* Reveal (solo imágenes de packs) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .screen img { transition: none; }
  .pack-card img, .pack-card:hover img { transition: none; transform: none; }
}
