:root {
  --bg: #fff6ec;
  --surface: #ffffff;
  --ink: #2a160f;
  --muted: #74625a;
  --line: #f1dfcf;
  --brand: #e3262f;   /* rojo navideño */
  --brand-dk: #b3121d;
  --green: #0f8a4f;   /* verde pino */
  --green-dk: #0a5e37;
  --gold: #ffb703;    /* dorado */
  --brand-ink: #fff;
  --radius: 14px;
  --sw: min(82vw, 380px); /* ancho de una hoja en el visor */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

/* ===== Encabezado ===== */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { font: 600 1.25rem 'Fraunces', serif; text-decoration: none; }
.logo span { color: var(--brand); }
.top nav { display: flex; gap: clamp(12px, 3vw, 28px); font-size: .92rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* ===== Intro de carga ===== */
.intro-on { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: #f3f3f3; /* mismo blanco que el fondo del video, para que Santa se vea integrado */
  transition: opacity .8s ease, visibility .8s;
}
.intro.out { opacity: 0; visibility: hidden; }
.intro video {
  height: min(72vh, 680px); width: auto; max-width: 90vw; object-fit: contain;
  background: #f3f3f3;
  /* Orillas difuminadas para que el video se funda con el fondo */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
}
.intro-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.intro-logo { font: 600 1.5rem 'Fraunces', serif; color: var(--ink); letter-spacing: .02em; }
.intro-logo b { color: var(--brand); font-weight: 600; }
.intro-bar { width: 200px; height: 4px; border-radius: 4px; background: #f1e4e4; overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--gold)); transition: width .25s linear; }
.intro-skip {
  position: absolute; bottom: 24px; right: 24px; background: transparent;
  border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 8px 18px; font-size: .9rem;
}
.intro-skip:hover { color: var(--brand); border-color: var(--brand); }

/* ===== Hero navideño ===== */
.hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background:
    radial-gradient(circle at 15% 110%, rgba(255, 183, 3, .35), transparent 45%),
    radial-gradient(circle at 90% -10%, rgba(255, 255, 255, .18), transparent 40%),
    linear-gradient(160deg, #f0323b 0%, var(--brand) 45%, var(--brand-dk) 100%);
  padding: clamp(54px, 9vw, 96px) 16px clamp(70px, 10vw, 110px);
  clip-path: ellipse(140% 100% at 50% 0%);
}
/* Video de fondo: lento, borroso y suave, como un sueño */
.hero-video {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover; z-index: 0; pointer-events: none;
  filter: blur(3.5px) saturate(1.2) brightness(1.05);
  opacity: 0; transition: opacity 2.5s ease;
}
.hero-video.on { opacity: .9; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(120, 0, 10, .28), transparent 65%),
    linear-gradient(160deg, rgba(240, 50, 59, .32), rgba(179, 18, 29, .48));
}
.hero-in { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--ink); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em; padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.badge svg { width: 14px; height: 14px; }
.hero h1 { font: 600 clamp(2.1rem, 6vw, 3.6rem)/1.05 'Fraunces', serif; margin: 18px 0 14px; letter-spacing: -.01em; text-shadow: 0 2px 4px rgba(60, 0, 0, .45), 0 3px 22px rgba(60, 0, 0, .5); }
.hero h1 span { color: var(--gold); }
.hero p { margin: 0 auto; max-width: 560px; color: #fff; font-size: clamp(1rem, 2.2vw, 1.18rem); font-weight: 500; text-shadow: 0 1px 3px rgba(60, 0, 0, .6), 0 2px 14px rgba(60, 0, 0, .45); }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-cta .btn { width: auto; padding: 13px 26px; }
.btn.light { background: #fff; color: var(--brand); }
.btn.light:hover { background: var(--gold); color: var(--ink); }
.btn.outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn.outline:hover { background: rgba(255, 255, 255, .12); }
.countdown { margin-top: 26px; display: inline-flex; align-items: baseline; gap: 10px; background: rgba(0, 0, 0, .18); padding: 10px 20px; border-radius: 14px; font-size: .95rem; }
.countdown b { font: 600 2rem/1 'Fraunces', serif; color: var(--gold); }
.countdown:empty { display: none; }

/* Nieve (dos capas que caen a distinta velocidad) */
.snow, .snow::after {
  position: absolute; inset: -100% 0 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 90px 120px, #fff, transparent),
    radial-gradient(4px 4px at 160px 60px, rgba(255,255,255,.9), transparent),
    radial-gradient(2px 2px at 230px 170px, #fff, transparent),
    radial-gradient(3px 3px at 300px 90px, rgba(255,255,255,.8), transparent);
  background-size: 320px 220px;
  animation: snow 14s linear infinite; opacity: .75;
}
.snow::after { content: ''; inset: 0; background-size: 220px 180px; animation-duration: 9s; opacity: .6; }
@keyframes snow { to { transform: translateY(50%); } }

/* Luces de colores */
.lights { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-around; pointer-events: none; }
.lights::before { content: ''; position: absolute; top: -14px; left: -2%; right: -2%; height: 28px; border-bottom: 2px solid rgba(0, 0, 0, .35); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.lights i {
  width: 11px; height: 17px; margin-top: 10px; border-radius: 50%;
  background: var(--c); box-shadow: 0 4px 14px 2px var(--c);
  animation: blink 1.6s ease-in-out infinite; animation-delay: var(--d);
}
.lights i:nth-child(even) { margin-top: 15px; }
@keyframes blink { 50% { opacity: .35; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .snow, .snow::after, .lights i { animation: none; } }

/* ===== Explorador ===== */
.explorer { max-width: 1320px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 40px) 40px; }

.models {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.model {
  flex: 0 0 auto; scroll-snap-align: start;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px; min-width: 200px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  text-align: left; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.model:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(60, 40, 20, .08); }
.model.on { border-color: var(--brand); box-shadow: 0 6px 20px rgba(227, 38, 47, .22); background: #fff5f4; }
.model-cover { width: 46px; flex: none; border-radius: 3px 6px 6px 3px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.18); display: block; }
.model-txt { display: flex; flex-direction: column; line-height: 1.25; }
.model-txt b { font-size: .95rem; }
.model-txt small { color: var(--muted); font-size: .78rem; }
.model-txt em { font-style: normal; font-weight: 600; font-size: .85rem; margin-top: 2px; }

.stage { display: grid; gap: 28px; margin-top: 12px; }
.viewer { min-width: 0; }

.book-wrap { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: clamp(6px, 2vw, 18px); }
.book {
  display: flex; justify-content: center; perspective: 1800px;
  height: calc(var(--sw) / var(--ratio, .7048)); cursor: zoom-in;
}
.nav {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 1.6rem; line-height: 1; display: grid; place-items: center; padding-bottom: 3px;
  box-shadow: 0 2px 8px rgba(60, 40, 20, .08); transition: transform .15s, opacity .15s;
}
.nav:hover:not(:disabled) { transform: scale(1.08); background: var(--brand); color: #fff; border-color: var(--brand); }
.nav:disabled { opacity: .3; cursor: default; }

.sheet { width: calc(var(--sw) * var(--pr, 1)); position: relative; box-shadow: 0 14px 34px rgba(50, 35, 20, .18), 0 2px 6px rgba(50, 35, 20, .1); }
.sheet.solo { border-radius: 4px 10px 10px 4px; overflow: hidden; }
.sheet.left { border-radius: 8px 0 0 8px; overflow: hidden; }
.sheet.right { border-radius: 0 8px 8px 0; overflow: hidden; }
.sheet.left::after, .sheet.right::after { content: ''; position: absolute; top: 0; bottom: 0; width: 8%; pointer-events: none; }
.sheet.left::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.13), transparent); }
.sheet.right::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.13), transparent); }

.anim-next { animation: inNext .38s cubic-bezier(.2, .7, .3, 1); }
.anim-prev { animation: inPrev .38s cubic-bezier(.2, .7, .3, 1); }
.anim-swap { animation: swap .35s ease; }
@keyframes inNext { from { opacity: 0; transform: translateX(28px) rotateY(-10deg); } }
@keyframes inPrev { from { opacity: 0; transform: translateX(-28px) rotateY(10deg); } }
@keyframes swap { from { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { .anim-next, .anim-prev, .anim-swap { animation: none; } }

.viewer-foot { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 16px 0 10px; font-size: .9rem; color: var(--muted); }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

.thumbs { display: flex; gap: 8px; overflow-x: auto; justify-content: safe center; padding: 6px 2px 10px; }
.thumb {
  flex: none; width: 46px; padding: 0; border: 2px solid transparent; border-radius: 4px;
  background: none; opacity: .6; transition: opacity .15s, border-color .15s;
}
.thumb:hover { opacity: 1; }
.thumb.on { opacity: 1; border-color: var(--brand); }
.thumb .page { border-radius: 2px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.hint { text-align: center; color: var(--muted); font-size: .8rem; margin: 4px 0 0; }

/* ===== Panel de información ===== */
.info {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; align-self: start;
}
.eyebrow { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.info h1 { font: 600 1.9rem/1.15 'Fraunces', serif; margin: 0 0 6px; }
.tagline { margin: 0 0 12px; color: var(--muted); }
.price { font-size: 1.6rem; font-weight: 700; margin: 0 0 16px; color: var(--brand); }
.price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.swatches p { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.swatches p b { color: var(--ink); }
.swatches div { display: flex; gap: 10px; }
.sw {
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  border: 3px solid var(--surface); outline: 1.5px solid var(--line);
  background: linear-gradient(135deg, var(--c) 62%, var(--t) 62%);
  transition: outline-color .15s, transform .15s;
}
.sw:hover { transform: scale(1.08); }
.sw.on { outline: 2px solid var(--ink); }
.specs { margin: 20px 0 14px; display: grid; gap: 8px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; font-weight: 500; }
.incluye { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; font-size: .9rem; }
.incluye li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 8px; }
.btn {
  display: block; width: 100%; text-align: center; text-decoration: none;
  padding: 13px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.acabados {
  margin: 0 0 18px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(120deg, #fff4d6, #ffe3ec 40%, #e1f4ff 70%, #eaffe9);
  border: 1px solid #f3dcb5;
}
.acabados p { margin: 0 0 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-dk); }
.acabados ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; font-weight: 500; }
.acabados li::before { content: '★'; color: var(--gold); margin-right: 8px; }
.info .btn.primary { background: var(--green); box-shadow: 0 6px 16px rgba(15, 138, 79, .3); }
.btn.ghost { background: transparent; border-color: var(--line); font-weight: 500; font-size: .88rem; padding: 10px; }
.btn.ghost:hover { border-color: var(--muted); }
.info-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

/* ===== Secciones ===== */
.block { max-width: 1100px; margin: 0 auto; padding: 40px clamp(16px, 3vw, 40px); }
.block h2 { font: 600 clamp(1.5rem, 3.5vw, 2.1rem) 'Fraunces', serif; margin: 0 0 4px; text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 0 0 24px; }
/* ===== Catálogo ===== */
.catalog { max-width: 1320px; margin: 0 auto; padding: 36px clamp(16px, 3vw, 40px) 20px; scroll-margin-top: 60px; }
.catalog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.catalog-head h2 { font: 600 clamp(1.6rem, 4vw, 2.3rem) 'Fraunces', serif; margin: 0; }
.catalog-head .sub { text-align: left; margin: 2px 0 0; }
.search {
  display: flex; align-items: center; gap: 8px; min-width: min(100%, 300px);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px;
}
.search:focus-within { border-color: var(--brand); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: none; font: inherit; padding: 11px 0; width: 100%; color: var(--ink); }
.grid { display: grid; gap: clamp(12px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card[hidden] { display: none; }
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(120, 30, 20, .14); border-color: #f5c6c0; }
.card-cover {
  display: grid; place-items: center; padding: 26px 18px;
  background: radial-gradient(circle at 50% 35%, #fff, #fbeee4 75%);
}
.card-book { width: min(62%, 150px); border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: 0 12px 24px rgba(50, 30, 20, .25); transition: transform .35s; }
.card:hover .card-book { transform: rotate(-3deg) scale(1.04); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font: 600 1.1rem/1.2 'Fraunces', serif; }
.card-body p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.4; flex: 1; }
.card-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.card-row b { color: var(--brand); font-size: 1.1rem; }
.dots { display: flex; gap: 4px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.card-cta { font-size: .85rem; font-weight: 600; color: var(--green); }
.vacio { text-align: center; color: var(--muted); padding: 40px 0; }

/* ===== Página de una agenda ===== */
.detail-band { position: relative; overflow: hidden; background: linear-gradient(160deg, #f0323b, var(--brand-dk)); padding: 34px clamp(16px, 3vw, 40px) 14px; }
.back { position: relative; z-index: 4; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; }
.back:hover { color: var(--gold); }
.others { margin-top: 40px; }
.others h2 { font: 600 1.4rem 'Fraunces', serif; margin: 0 0 12px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; color: var(--muted); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps li:nth-child(2)::before { background: var(--green); }
.steps li:nth-child(3)::before { background: var(--gold); color: var(--ink); }
.steps b { color: var(--ink); }

.foot { position: relative; overflow: hidden; text-align: center; color: #fff; font-size: .9rem; padding: 52px 16px 34px; margin-top: 30px; background: var(--green-dk); }
.foot b { color: var(--gold); }

/* ===== Vista ampliada ===== */
.zoom {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(28, 24, 20, .82); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px;
}
.zoom[hidden] { display: none; }
.book.big { --sw: min(92vw - 120px, (100vh - 60px) * 148 / 210); cursor: default; }
.zoom-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; }

/* ===== Tamaños de pantalla ===== */
@media (max-width: 599px) {
  .top nav a:nth-child(n+3) { display: none; }
  .nav { width: 36px; height: 36px; font-size: 1.3rem; }
  :root { --sw: min(100vw - 120px, 380px); }
  .book.big { --sw: min(100vw - 100px, (100vh - 60px) * 148 / 210); }
  .hint { display: none; }
}
@media (min-width: 900px) {
  :root { --sw: min((100vw - 200px) / 2, 360px, (100vh - 300px) * 148 / 210); }
  .book.big { --sw: min((100vw - 160px) / 2, (100vh - 60px) * 148 / 210); }
}
@media (min-width: 1140px) {
  .stage { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  :root { --sw: min((100vw - 600px) / 2, 340px, (100vh - 300px) * 148 / 210); }
  .info { position: sticky; top: 76px; }
}

/* =====================================================================
   PÁGINAS DE LA AGENDA (todo en cqw = % del ancho de la hoja)
   ===================================================================== */
.page {
  --ln: #ddd6c8;
  container-type: inline-size;
  aspect-ratio: var(--ratio, 148 / 210);
  position: relative; overflow: hidden;
  background: #fffdf8; color: #3a3a3a;
}
.pg {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 2.6cqw;
  padding: 6cqw 6cqw 8cqw;
  font: 400 2.6cqw/1.3 'Inter', system-ui, sans-serif;
}
.pg-h { display: flex; align-items: baseline; gap: 2cqw; border-bottom: .45cqw solid var(--ac); padding-bottom: 1.6cqw; flex: none; }
.pg-t { font: 600 7.2cqw/1 var(--ft); color: var(--ac); }
.pg-s { margin-left: auto; font-size: 2.3cqw; text-transform: uppercase; letter-spacing: .14em; color: #8d877d; }
.pg-h .flor { width: 6.5cqw; color: var(--ac); align-self: center; }
.pg-n { position: absolute; bottom: 3cqw; right: 6cqw; font-size: 2.2cqw; color: #a9a294; }
.left .pg-n { right: auto; left: 6cqw; }
.pg-foot { margin: 0; text-align: center; font-size: 2.4cqw; color: #8d877d; }

.bx {
  border: .3cqw solid var(--ln); border-radius: 1.4cqw;
  padding: 1.6cqw 2.2cqw; display: flex; flex-direction: column; gap: 1cqw; min-height: 0;
}
.bx-l { font-size: 2.2cqw; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ac); display: flex; align-items: baseline; gap: 1.6cqw; }
.bx-l .num { font: 600 4.6cqw/1 var(--ft); letter-spacing: 0; }
.fill { flex: 1; min-height: 6cqw; }
.grow { flex: 1; min-height: 0; }

.r-lines { background: linear-gradient(to bottom, transparent calc(100% - .25cqw), var(--ln) 0) 0 0 / 100% 5.4cqw; }
.r-dots { background: radial-gradient(circle, #bdb5a6 .32cqw, transparent .4cqw) 0 0 / 4cqw 4cqw; }
.r-grid {
  background:
    linear-gradient(var(--ln) .2cqw, transparent .2cqw) 0 0 / 4cqw 4cqw,
    linear-gradient(90deg, var(--ln) .2cqw, transparent .2cqw) 0 0 / 4cqw 4cqw;
}

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; height: 4.8cqw; border-bottom: .22cqw solid var(--ln); }
.checks li::before { content: ''; width: 2.4cqw; height: 2.4cqw; border: .28cqw solid var(--ac); border-radius: .5cqw; margin-right: 1.6cqw; opacity: .8; }

/* Datos */
.fields { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6cqw; }
.fields.tight { gap: 0; justify-content: space-around; }
.field span { font-size: 2.2cqw; text-transform: uppercase; letter-spacing: .08em; color: #8d877d; }
.field i { display: block; height: 5cqw; border-bottom: .3cqw solid var(--ln); }

/* Año */
.ygrid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); gap: 2cqw 4cqw; }
.mini span { display: block; font: 600 2.8cqw var(--ft); color: var(--ac); margin-bottom: .8cqw; }
.mini-g { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 1.75cqw; line-height: 1.6; text-align: center; }
.mini-g i { font-style: normal; font-weight: 700; color: #a9a294; }
.mini-g em { font-style: normal; }

/* Metas */
.metas { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 3cqw; min-height: 0; }

/* Mes */
.mgrid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); border-top: .3cqw solid var(--ln); border-left: .3cqw solid var(--ln); min-height: 0; }
.mh, .mc { border-right: .3cqw solid var(--ln); border-bottom: .3cqw solid var(--ln); }
.mh { font-size: 2cqw; font-weight: 600; text-transform: uppercase; text-align: center; padding: 1cqw 0; color: var(--ac); }
.mc { padding: .8cqw 1.2cqw; }
.mc b { font-size: 2.4cqw; font-weight: 600; }
.mc.we { background: color-mix(in srgb, var(--ac) 6%, transparent); }

/* Hábitos */
.hab { flex: 1.6; display: grid; grid-template-columns: 15cqw repeat(31, 1fr); grid-template-rows: auto repeat(10, 1fr); min-height: 0; }
.hb-n { font-size: 1.3cqw; text-align: center; color: #8d877d; padding-bottom: .6cqw; }
.hb-l { font-size: 2cqw; border-bottom: .22cqw solid var(--ln); display: flex; align-items: center; }
.hb-c { border: .12cqw solid var(--ln); margin: .25cqw; border-radius: .4cqw; }

/* Semana */
.week { flex: 1; display: grid; grid-template-rows: repeat(4, 1fr); gap: 2.4cqw; min-height: 0; }
.wv { flex: 1; display: grid; grid-template-columns: 1fr 28cqw; gap: 3cqw; min-height: 0; }
.wv-days { display: grid; grid-template-rows: repeat(7, 1fr); }
.wv-d { display: flex; gap: 2cqw; border-bottom: .3cqw solid var(--ln); padding: 1cqw 0; min-height: 0; }
.wv-d span { width: 8cqw; display: flex; flex-direction: column; font-size: 2cqw; text-transform: uppercase; color: var(--ac); }
.wv-d b { font: 600 4.4cqw/1 var(--ft); }
.wv-d .fill { min-height: 0; }
.col { display: flex; flex-direction: column; gap: 2.4cqw; min-height: 0; }

/* Horas */
.hgrid { flex: 1; display: grid; min-height: 0; border-top: .3cqw solid var(--ln); }
.hg-h { font-size: 2cqw; font-weight: 600; text-transform: uppercase; text-align: center; color: var(--ac); padding: 1cqw 0; border-bottom: .3cqw solid var(--ac); }
.hg-h b { font-family: var(--ft); font-size: 2.8cqw; }
.hg-l { font-size: 1.8cqw; color: #8d877d; border-bottom: .22cqw solid var(--ln); padding-top: .3cqw; }
.hg-c { border-bottom: .22cqw solid var(--ln); border-left: .22cqw solid var(--ln); }

/* Día */
.day { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.4cqw; min-height: 0; }
.hrs { display: grid; grid-template-rows: repeat(15, 1fr); }
.hrs div { border-bottom: .22cqw solid var(--ln); display: flex; align-items: flex-start; padding-top: .4cqw; }
.hrs b { font-size: 1.9cqw; font-weight: 600; color: var(--ac); }
.agua div { display: flex; gap: 1.4cqw; margin-top: 1cqw; }
.agua i { width: 3cqw; height: 3.8cqw; border: .3cqw solid var(--ac); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; opacity: .7; }

/* Portada real (imagen) */
.cover-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Foto real */
.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== Portadas ===== */
.cover { background: var(--cv); color: var(--ct); align-items: center; justify-content: center; padding: 0; }
/* Brillo de vinyl holográfico */
.cover::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 22%, rgba(255, 0, 200, .2) 34%, rgba(0, 240, 255, .22) 44%, rgba(255, 255, 0, .18) 54%, rgba(120, 255, 120, .14) 62%, transparent 74%) 0 0 / 260% 100%;
  mix-blend-mode: screen; animation: holo 7s ease-in-out infinite alternate;
}
@keyframes holo { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* Protecciones metálicas en las esquinas */
.corner { position: absolute; right: 0; width: 12cqw; height: 12cqw; z-index: 5; background: linear-gradient(135deg, #fafafa, #b9b9b9 40%, #efefef 58%, #8f8f8f); }
.corner.tr { top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.corner.br { bottom: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
@media (prefers-reduced-motion: reduce) { .cover::after { animation: none; } }
.cover-art { position: absolute; inset: 0; }
.cover-txt { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2cqw; text-align: center; }
.cover-year { font: 600 24cqw/1 var(--ft); }
.cover-name { font-size: 3.6cqw; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; padding: 0 8cqw; }

.motif-marco .cover-art { inset: 7cqw; border: .5cqw solid var(--ct); opacity: .55; box-shadow: inset 0 0 0 1.6cqw var(--cv), inset 0 0 0 1.95cqw var(--ct); }
.motif-franja .cover-art { top: auto; height: 13cqw; background: var(--ct); }
.motif-franja .cover-year { font-weight: 700; letter-spacing: -.02em; }
.motif-puntos .cover-art { background: radial-gradient(circle, var(--ct) .55cqw, transparent .65cqw) 0 0 / 6cqw 6cqw; opacity: .22; }
.motif-puntos .cover-year { font-weight: 500; font-size: 20cqw; }
.motif-flores .cover-art .flor { position: absolute; color: var(--ct); opacity: .45; }
.motif-flores .flor:nth-child(1) { width: 26cqw; top: -6cqw; left: -6cqw; }
.motif-flores .flor:nth-child(2) { width: 14cqw; top: 14cqw; right: 8cqw; }
.motif-flores .flor:nth-child(3) { width: 34cqw; bottom: -8cqw; right: -8cqw; }
.motif-flores .flor:nth-child(4) { width: 12cqw; bottom: 22cqw; left: 10cqw; }
.motif-flores .flor:nth-child(5) { width: 9cqw; top: 40cqw; left: 6cqw; }
.motif-flores .cover-year { font-size: 30cqw; }
.motif-linea .cover-art { inset: auto 14cqw 34cqw; height: .4cqw; background: var(--ct); }
.motif-linea .cover-name { letter-spacing: .45em; font-weight: 500; }
.motif-rayas .cover-art { background: repeating-linear-gradient(135deg, transparent 0 7cqw, color-mix(in srgb, var(--ct) 20%, transparent) 7cqw 10cqw); }
.motif-rayas .cover-year { font-weight: 700; }

/* Selector de portada con miniaturas (agendas con varias portadas) */
.swatches .covers-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.sw-cover {
  padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none;
  aspect-ratio: 150 / 190; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); transition: transform .15s, border-color .15s;
}
.sw-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-cover:hover { transform: translateY(-2px); }
.sw-cover.on { border-color: var(--brand); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.card-row small { color: var(--muted); font-size: .8rem; }
.card-row b.pendiente, .price.pendiente { font-size: .85rem; font-weight: 600; color: var(--muted); }

/* ===== Botón de música ===== */
.musica {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: #fff;
  background: var(--brand); box-shadow: 0 8px 22px rgba(179, 18, 29, .35);
  transition: transform .2s, background .2s;
}
.musica:hover { transform: scale(1.08); }
.musica svg { width: 24px; height: 24px; }
.musica .ico-on { display: none; }
.musica.on .ico-on { display: block; animation: bailar 1.2s ease-in-out infinite; }
.musica.on .ico-off { display: none; }
.musica:not(.on) { background: #8d7f77; }
.musica.espera { background: var(--brand); animation: invitar 1.6s ease-in-out infinite; }
@keyframes bailar { 50% { transform: rotate(-12deg) scale(1.08); } }
@keyframes invitar { 50% { box-shadow: 0 0 0 10px rgba(227, 38, 47, .18), 0 8px 22px rgba(179, 18, 29, .35); } }
@media (prefers-reduced-motion: reduce) { .musica.on .ico-on, .musica.espera { animation: none; } }
