/* Christmas ceah · estética común
   VOICE: tierno, sereno, artesanal
   IDEA: una felicitación de papel: recortes, pegatinas, tinta y pan de oro
   PICTURE: belén y bolas en papel recortado, árbol a pincel
   COLOUR: papel cálido, tinta negra, oro; acentos granate y azul mariano
   TYPE: Instrument Serif (titulares) + Hanken Grotesk (texto) */

@font-face { font-family: 'Instrument Serif'; src: url(fonts/InstrumentSerif_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(fonts/InstrumentSerif_400Regular_Italic.ttf) format('truetype'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url(fonts/HankenGrotesk_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url(fonts/HankenGrotesk_500Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url(fonts/HankenGrotesk_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f2efe9;
  --paper-2: #fbf9f4;
  --paper-3: #e7e0d3;
  --ink: #1b1a17;
  --ink-2: #4b4740;
  --ink-3: #8a8378;
  --gold: #b48f5c;
  --gold-2: #d2b689;
  --red: #9b3a2c;
  --blue: #3d5878;
  --line: rgba(27, 26, 23, .14);
  --shadow: 0 1px 1px rgba(40, 30, 15, .08), 0 6px 18px -8px rgba(40, 30, 15, .28);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .33 0 0 0 0 .22 0 0 0 .14 -.04'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
:root[data-theme=dark], :root[data-theme=light] { color-scheme: light; }
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 16px/1.55 var(--sans);
  background-color: var(--paper);
  background-image: var(--grain), var(--fibers);
  background-size: 220px 220px, 600px 600px;
  overflow-x: clip; min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 7vw, 60px); }
h2 { font-size: clamp(28px, 4.6vw, 38px); }
h3 { font-size: 24px; }
em, .it { font-family: var(--serif); font-style: italic; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 13px; color: var(--ink-3); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* marca */
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px max(5vw, 18px); font-size: 14px; color: var(--ink-2); }
.brand b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ink); letter-spacing: .01em; }
.brand .star { width: 16px; height: 16px; vertical-align: -2px; margin-left: 4px; }

.wrap { width: min(100%, 1080px); margin-inline: auto; padding-inline: max(5vw, 18px); }

/* papel: tarjetas, pegatinas, cinta */
.sheet {
  position: relative; background: var(--paper-2);
  background-image: var(--grain); background-size: 220px;
  border-radius: 3px; box-shadow: var(--shadow);
}
.tape::before {
  content: ''; position: absolute; top: -10px; left: 50%; width: 74px; height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(210, 182, 137, .55); background-image: var(--grain); background-size: 120px;
  clip-path: polygon(3% 0, 97% 4%, 100% 100%, 0 96%);
  mix-blend-mode: multiply;
}

/* botones */
.btn {
  appearance: none; border: 0; cursor: pointer; font: 600 16px/1 var(--sans);
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--paper-2); background: var(--ink);
  box-shadow: 0 2px 0 rgba(0,0,0,.18), 0 8px 18px -10px rgba(0,0,0,.5);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.gold { background: var(--gold); color: #fff; }
.btn.red { background: var(--red); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.linkbtn { appearance: none; background: none; border: 0; padding: 6px 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* formularios */
label.f { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], input[type=number], textarea, select {
  width: 100%; font: 16px/1.3 var(--sans); color: var(--ink);
  padding: 12px 14px; min-height: 48px; border-radius: 4px;
  background: rgba(255,255,255,.65); border: 1px solid var(--line);
  border-bottom: 1.5px solid var(--ink-2);
  transition: border-color .15s, background .15s;
}
input:focus, textarea:focus, select:focus { outline: none; background: #fff; border-color: var(--gold); }
textarea { min-height: 120px; resize: vertical; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }

.msg { font-size: 14px; padding: 10px 14px; border-radius: 4px; background: rgba(155,58,44,.09); color: var(--red); }
.msg.ok { background: rgba(180,143,92,.14); color: #6d532d; }

/* chips de estado */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); white-space: nowrap; }
.chip.pending { background: #efe3c9; color: #7a5a22; }
.chip.approved { background: #e3e6da; color: #46512f; }
.chip.rejected { background: #f0d9d3; color: var(--red); }
.chip.gold { background: var(--gold); color: #fff; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(27,26,23,.42); backdrop-filter: blur(3px); }
.modal .sheet { width: min(100%, 520px); max-height: calc(100svh - 36px); overflow: auto; padding: 28px 24px 24px; }
.modal .close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--ink-2); }

/* pie */
.foot { padding: 40px max(5vw, 18px) 32px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* animación suave */
@keyframes drop { from { opacity: 0; transform: translateY(-8px) rotate(var(--r, 0deg)); } to { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); } }
@keyframes sway { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes twinkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .65; transform: scale(.92); } }
