/* ============ Postalbird — hoja de estilos ============ */
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-Variable.ttf') format('truetype'); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: 'Amatic SC'; src: url('../fonts/AmaticSC-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Amatic SC'; src: url('../fonts/AmaticSC-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'La Belle Aurore'; src: url('../fonts/LaBelleAurore.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Handlee'; src: url('../fonts/Handlee-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Allura'; src: url('../fonts/Allura-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Montez'; src: url('../fonts/Montez-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  --cream: #fbf3e6; --paper: #fffdf8; --kraft: #ecdcc0; --kraft-d: #c9ad84;
  --ink: #2b1d1a; --muted: #7b6a61; --line: #eadfcd;
  --red: #d83a34; --red-d: #b32a25; --blue: #1e5b8e; --leaf: #4f8a52;
  --radius: 16px; --shadow: 0 10px 30px rgba(43, 29, 26, .10); --shadow-s: 0 2px 8px rgba(43, 29, 26, .08);
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Amatic SC', 'Nunito', cursive;
  --f-hand: 'La Belle Aurore', cursive;
  --airmail: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--cream) 14px 24px, var(--blue) 24px 38px, var(--cream) 38px 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 1.05rem; line-height: 1.6; color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(rgba(201, 173, 132, .18) 1px, transparent 1.2px);
  background-size: 22px 22px;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
#site-header { display: contents; }
img { max-width: 100%; display: block; }
a { color: var(--red-d); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(3rem, 8vw, 5.4rem); }
h2 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
h3 { font-size: 1.9rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hand { font-family: var(--f-hand); color: var(--blue); font-weight: 400; }
.muted { color: var(--muted); }
.center { text-align: center; }
section { padding: 56px 0; }
.eyebrow { font-family: var(--f-hand); color: var(--blue); font-size: 1.5rem; display: block; margin-bottom: 6px; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid var(--bg); background: var(--bg); color: var(--fg);
  font: 800 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 4px 0 var(--red-d);
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 6px 0 var(--red-d); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-d); }
.btn.ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn.small { padding: .6em 1.1em; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Cabecera ---------- */
.topbar { background: var(--ink); color: var(--cream); text-align: center; font-size: .9rem; padding: 6px 12px; }
.topbar b { color: #ffd479; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 243, 230, .94); backdrop-filter: blur(8px); border-bottom: 3px solid transparent; border-image: var(--airmail) 6; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--kraft); color: var(--ink); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { background: var(--red); color: #fff; }
.burger { display: none; background: none; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }
@media (max-width: 820px) {
  .burger { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 3px solid var(--kraft); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--red); display: inline-block; transform: rotate(-2deg); }
.hero p.lead { font-size: 1.25rem; max-width: 34ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 18px; }
.hero .perks { display: flex; gap: 8px 22px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; font-weight: 700; font-size: .95rem; color: var(--muted); }
.hero .perks li::before { content: '✓ '; color: var(--leaf); font-weight: 900; }
.collage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; width: 100%; }
.collage .photo { position: absolute; background: #fff; padding: 10px 10px 34px; box-shadow: var(--shadow); border-radius: 4px; }
.collage .photo img { width: 100%; height: 100%; object-fit: cover; }
.collage .p1 { width: 58%; aspect-ratio: 1 / 1.12; left: 2%; top: 4%; transform: rotate(-5deg); z-index: 2; }
.collage .p2 { width: 64%; aspect-ratio: 1.3 / 1; right: 0; bottom: 4%; transform: rotate(4deg); z-index: 1; }
.collage .tape { position: absolute; width: 90px; height: 26px; background: rgba(216, 58, 52, .55); left: 26%; top: 0; transform: rotate(-4deg); z-index: 4; }
.collage .stamp { position: absolute; right: 4%; top: 2%; width: 110px; height: 110px; z-index: 5; transform: rotate(9deg); }
.stamp-box { background: var(--paper); padding: 8px; border: 2px dashed var(--kraft-d); border-radius: 6px; box-shadow: var(--shadow-s); }
.stamp-box img { width: 100%; }
.collage .note { position: absolute; left: 0; bottom: 0; z-index: 6; background: var(--paper); border-radius: 10px; padding: 8px 16px; box-shadow: var(--shadow); font-family: var(--f-hand); color: var(--blue); font-size: 1.25rem; transform: rotate(-3deg); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .collage { max-width: 420px; } }

/* ---------- Pasos ---------- */
.band { background: var(--paper); border-block: 2px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: paso; margin-top: 30px; }
.step { position: relative; background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius); padding: 30px 24px 24px; }
.step::before { counter-increment: paso; content: counter(paso); position: absolute; top: -26px; left: 22px; width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 700 2.2rem/1 var(--f-display); box-shadow: 0 3px 0 var(--red-d); }
.step h3 { margin-bottom: .2em; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Categorías (píldoras) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 800 .95rem var(--f-body); text-decoration: none; cursor: pointer; transition: .15s; }
.chip small { font-weight: 700; opacity: .6; }
.chip:hover { background: var(--kraft); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--cream); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 22px; }
.cat-tile { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-align: center; transition: .2s; }
.cat-tile:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--red); color: var(--ink); box-shadow: var(--shadow); }
.cat-tile b { font: 700 2rem/1 var(--f-display); display: block; }
.cat-tile span { font-size: .85rem; color: var(--muted); font-weight: 700; }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.pcard { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); border: 2px solid var(--line); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow); color: var(--ink); }
.pcard .ph { aspect-ratio: 1 / 1; background: var(--kraft); overflow: hidden; position: relative; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .ph img { transform: scale(1.05); }
.pcard .ph img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.pcard:hover .ph img.alt { opacity: 1; }
.pcard .tag { position: absolute; left: 10px; top: 10px; background: var(--paper); border-radius: 999px; padding: 2px 12px; font-size: .78rem; font-weight: 800; box-shadow: var(--shadow-s); }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard h3 { font-size: 1.7rem; margin: 0; line-height: 1.02; }
.pcard .price { margin-top: auto; font-weight: 800; color: var(--red-d); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { margin: 0; }

/* ---------- Tienda ---------- */
.page-head { padding: 44px 0 10px; }
.page-head p { max-width: 60ch; color: var(--muted); font-size: 1.1rem; }
.toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 20px 0 26px; }
.search { flex: 1 1 240px; max-width: 360px; position: relative; }
.search input { width: 100%; padding: 11px 16px 11px 42px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); font: 600 1rem var(--f-body); color: var(--ink); }
.search::before { content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: .95rem; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.more { text-align: center; margin-top: 34px; }

/* ---------- Ficha de postal ---------- */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 26px; }
.crumbs a { color: var(--muted); }
.detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; padding: 20px 0 60px; align-items: start; }
.gallery .main { background: #fff; padding: 12px; border-radius: 6px; box-shadow: var(--shadow); }
.gallery .main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.thumbs { display: flex; gap: 12px; margin-top: 16px; }
.thumbs button { width: 84px; padding: 4px; background: #fff; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--red); }
.thumbs img { aspect-ratio: 1/1; object-fit: cover; width: 100%; border-radius: 4px; }
.info h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); }
.info .price { font: 700 2.6rem/1 var(--f-display); color: var(--red-d); margin: 4px 0 14px; }
.facts { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; }
.facts li::before { content: '✓'; color: var(--leaf); font-weight: 900; }
.prose { max-width: 70ch; color: #4a3b35; }
.prose h2 { font-size: 2.4rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .4em; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Formularios ---------- */
label, .lbl { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
label .opt, .lbl .opt { font-weight: 600; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
  font: 600 1rem var(--f-body); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 91, 142, .15); }
input.bad, select.bad, textarea.bad { border-color: var(--red); background: #fff5f4; }
textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row.r3 { grid-template-columns: 1fr 2fr; }
@media (max-width: 560px) { .row, .row.r3 { grid-template-columns: 1fr; gap: 0; } }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.err { color: var(--red-d); font-size: .85rem; font-weight: 700; margin-top: 4px; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: none; }
.hp { position: absolute; left: -9999px; }
.counter { text-align: right; font-size: .85rem; color: var(--muted); font-weight: 700; }
.counter.warn { color: var(--red-d); }

/* ---------- Editor (personalizar) ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; padding: 18px 0 70px; align-items: start; }
.stepper { display: flex; gap: 6px; margin-bottom: 22px; }
.stepper button { width: 100%; min-width: 0; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 8px 6px; font: 800 .82rem var(--f-body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.stepper button:disabled { cursor: default; opacity: .7; }
.stepper button b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink); margin-right: 5px; font-size: .74rem; }
@media (max-width: 420px) { .stepper button { font-size: 0; padding: 6px; } .stepper button b { margin: 0; font-size: .8rem; } .stepper button.on { font-size: .82rem; } .stepper button.on b { margin-right: 5px; } }
.stepper button.on { border-color: var(--ink); color: var(--ink); background: #fff; }
.stepper button.on b { background: var(--red); color: #fff; }
.stepper button.done b { background: var(--leaf); color: #fff; }
.panel { display: none; }
.panel.on { display: block; animation: fade .3s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.panel h2 { font-size: 2.6rem; }
.nav-steps { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.fonts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fonts label { margin: 0; cursor: pointer; }
.fonts input { position: absolute; opacity: 0; }
.fonts span { display: block; text-align: center; padding: 10px 8px; border: 2px solid var(--line); background: var(--paper); border-radius: 12px; font-size: 1.5rem; line-height: 1.2; color: var(--blue); }
.fonts small { display: block; font: 700 .72rem var(--f-body); color: var(--muted); }
.fonts input:checked + span { border-color: var(--red); box-shadow: 0 0 0 3px rgba(216, 58, 52, .18); background: #fff; }
.fonts input:focus-visible + span { outline: 3px solid var(--blue); }
.inks { display: flex; gap: 12px; }
.inks label { margin: 0; cursor: pointer; }
.inks input { position: absolute; opacity: 0; }
.inks i { display: block; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.inks input:checked + i { box-shadow: 0 0 0 3px var(--ink); }
.inks input:focus-visible + i { outline: 3px solid var(--blue); outline-offset: 3px; }
.opts { display: grid; gap: 10px; }
.opt-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--line); background: var(--paper); border-radius: 14px; cursor: pointer; margin: 0; font-weight: 600; }
.opt-card input { accent-color: var(--red); width: 20px; height: 20px; }
.opt-card:has(input:checked) { border-color: var(--red); background: #fff; }
.opt-card .t { flex: 1; } .opt-card .t small { display: block; color: var(--muted); font-weight: 600; }
.opt-card b { color: var(--red-d); white-space: nowrap; }
.selected-card { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 22px; }
.selected-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.selected-card div { flex: 1; line-height: 1.25; }
.selected-card b { font: 700 1.5rem/1 var(--f-display); display: block; }
.summary { background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; }
.summary dt { color: var(--muted); font-weight: 700; } .summary dd { margin: 0; font-weight: 800; text-align: right; }
.summary .total { border-top: 2px dashed var(--line); padding-top: 10px; margin-top: 6px; font-size: 1.25rem; }
.summary dt.total { color: var(--ink); }
.summary dd.total { color: var(--red-d); }
.demo-note { background: #fff4d6; border: 2px solid #f0d488; border-radius: 12px; padding: 12px 14px; font-size: .92rem; margin-bottom: 14px; }
.msg { border-radius: 12px; padding: 12px 14px; font-weight: 700; margin: 12px 0; }
.msg.err-box { background: #fdeceb; border: 2px solid #f0b3af; color: #8a1f1a; }
.msg.ok-box { background: #e8f4e8; border: 2px solid #b7d9b8; color: #2c5d2f; }

/* Vista previa */
.preview { position: sticky; top: 92px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button { flex: 1; padding: 8px 6px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); font: 800 .9rem var(--f-body); cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.stage { background: var(--kraft); border-radius: var(--radius); padding: 22px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.stage .view { display: none; } .stage .view.on { display: block; }
/* Hoja de dedicatoria: 11,5 × 15,5 cm. Márgenes = los de la hoja de impresión (1,4 / 1,2 / 1,4 / 1,6 cm) */
.paper { position: relative; aspect-ratio: 11.5 / 15.5; width: min(82%, 400px); margin-inline: auto; background: #fffdf6; box-shadow: var(--shadow); border-radius: 2px; }
.hw { font-family: var(--f-hand); color: var(--blue); white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden; line-height: 1.5; }
.paper .hw { position: absolute; top: 9.03%; right: 10.43%; bottom: 9.03%; left: 13.91%; }
.cover { aspect-ratio: 11.5 / 15.5; width: min(70%, 320px); margin-inline: auto; box-shadow: var(--shadow); background: #fff; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.envelope { position: relative; aspect-ratio: 18 / 12.5; background: #fbf6ea; box-shadow: var(--shadow); border-radius: 3px; overflow: hidden; }
.envelope .to { position: absolute; left: 30%; top: 40%; right: 6%; }
.envelope .from { position: absolute; left: 5%; top: 6%; width: 46%; }
.envelope .sello { position: absolute; right: 4%; top: 6%; width: 11%; aspect-ratio: 3 / 3.6; border: 2px dashed rgba(43, 29, 26, .3); border-radius: 3px; display: grid; place-items: center; font-size: .6rem; color: rgba(43, 29, 26, .4); text-align: center; font-weight: 800; }
.stage-cap { text-align: center; font-size: .85rem; color: #5b4a3c; margin: 12px 0 0; font-weight: 700; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; } .preview { position: static; order: -1; } }

/* ---------- Confirmación ---------- */
.done-card { background: var(--paper); border: 2px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); text-align: center; border-top: 10px solid; border-image: var(--airmail) 12; }
.code-box { width: 100%; font: 500 .8rem/1.4 ui-monospace, Consolas, monospace; min-height: 90px; word-break: break-all; }

/* ---------- Texto largo / FAQ / legal ---------- */
details { background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style-position: outside; }
details[open] { border-color: var(--kraft-d); }
details p { color: #4a3b35; }
.legal h1 { font-size: 3.6rem; }
.legal h2 { font-size: 2.2rem; margin-top: 1.6em; }
.legal .todo { background: #fff4d6; border: 2px dashed #e0b840; padding: 2px 6px; border-radius: 6px; font-weight: 800; }
.notice { background: #fff4d6; border: 2px solid #f0d488; border-radius: 12px; padding: 14px 16px; margin-bottom: 26px; font-size: .95rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }
.price-table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-s); }
.price-table td, .price-table th { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-weight: 800; color: var(--red-d); }
@media (max-width: 640px) {
  .price-table.stack, .price-table.stack tbody, .price-table.stack tr, .price-table.stack td, .price-table.stack th { display: block; width: 100%; text-align: left !important; }
  .price-table.stack tr:first-child { display: none; }
  .price-table.stack tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  .price-table.stack td { border: 0; padding: 4px 16px; color: var(--ink) !important; font-weight: 600 !important; }
  .price-table.stack td:first-child { font-weight: 800 !important; }
}
.cta-band { background: var(--ink); color: var(--cream); text-align: center; padding: 60px 0; position: relative; }
.cta-band::before { content: ''; position: absolute; inset: 0 0 auto; height: 12px; background: var(--airmail); }
.cta-band h2 { color: #fff; } .cta-band p { max-width: 50ch; margin-inline: auto; opacity: .85; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #d9cbb8; padding: 46px 0 22px; position: relative; margin-top: 0; }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 12px; background: var(--airmail); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 12px; }
.site-footer img.logo { width: 200px; margin-bottom: 12px; }
.site-footer h4 { font: 700 1.6rem var(--f-display); color: #fff; margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #d9cbb8; text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legalbar { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 28px; padding-top: 16px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Aviso de cookies ---------- */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; background: var(--ink); color: var(--cream); padding: 16px 18px; border-radius: 16px; box-shadow: var(--shadow); z-index: 99; display: flex; gap: 14px; align-items: center; font-size: .9rem; }
.cookies a { color: #ffd479; }
.cookies .btn { flex: none; --bg: #ffd479; --fg: var(--ink); box-shadow: none; padding: .6em 1.2em; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 800; z-index: 100; box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
