/* yodelfuturo — hoja de estilos del sitio (2026)
   Paleta: ciruela profundo de fondo, la carta es una hoja de papel, naranja para la accion. */

:root {
  --plum: #431052;
  --plum-2: #6b1a80;
  --plum-3: #8b2aa3;
  --plum-soft: #5a1a6c;
  --lilac: #d9c4e3;
  --lilac-2: #b797c6;
  --paper: #fffbf3;
  --paper-2: #f6efe2;
  --paper-line: #e6dac6;
  --ink: #26182b;
  --ink-2: #5d4f63;
  --flame: #f26a2e;
  --flame-2: #d9561d;
  --ok: #2f8f5b;
  --danger: #c8321f;

  --display: "Caveat", "Segoe Script", cursive;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --shadow-paper: 0 24px 60px rgba(20, 5, 28, 0.45), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--plum);
  color: var(--lilac);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, iframe { max-width: 100%; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
main { overflow-x: clip; }
.hero .wrap > *, .write .wrap > * { min-width: 0; }

.display { font-family: var(--display); font-weight: 600; line-height: 0.95; letter-spacing: 0.005em; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lilac-2);
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(67, 16, 82, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { font-family: var(--display); font-size: 34px; font-weight: 700; color: #fff; text-decoration: none; line-height: 1; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: rgba(255, 255, 255, 0.1); }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer;
}
.nav-toggle svg { display: block; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--plum); padding: 12px 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
}

/* ---------- botones ---------- */

.btn {
  display: inline-block; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 0;
  background: var(--flame); color: #fff;
  box-shadow: 0 6px 18px rgba(242, 106, 46, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--flame-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 18px 34px; font-size: 18px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: none; border: 2px solid rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-paper { background: var(--plum-2); box-shadow: 0 6px 18px rgba(107, 26, 128, 0.3); }
.btn-paper:hover { background: var(--plum); }

/* ---------- hero ---------- */

.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(56px, 8vw, 96px); color: #fff; margin: 0 0 20px; max-width: 12ch; }
.hero h1 em { font-style: normal; color: #ffd9c2; }
.hero p.lead { font-size: 19px; max-width: 46ch; margin: 0 0 28px; color: var(--lilac); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .count { margin-top: 28px; font-size: 15px; color: var(--lilac-2); }
.hero .count strong { font-family: var(--display); font-size: 34px; color: #fff; font-weight: 700; margin-right: 4px; line-height: 1; }
.hero .video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); background: #000; }
.hero .video iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { max-width: none; }
}

/* ---------- la hoja (formulario) ---------- */

.write { padding: 32px 0 80px; }
.write .wrap { display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 32px; justify-content: center; align-items: start; }
@media (max-width: 1000px) {
  .write .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { order: -1; }
}

.sheet {
  background: var(--paper); color: var(--ink);
  border-radius: 6px; box-shadow: var(--shadow-paper);
  padding: 44px 48px 40px; position: relative;
}
.sheet::before {
  /* borde superior "rasgado" muy sutil: una linea de perforado */
  content: ""; position: absolute; left: 24px; right: 24px; top: 14px; height: 0;
  border-top: 2px dotted var(--paper-line);
}
@media (max-width: 640px) { .sheet { padding: 32px 20px 28px; border-radius: 4px; } .sheet::before { left: 14px; right: 14px; } }

.sheet h2 { font-family: var(--display); font-size: 44px; font-weight: 600; color: var(--plum-2); margin: 0 0 4px; line-height: 1; }
.sheet .hint { color: var(--ink-2); margin: 0 0 24px; font-size: 15px; }

.field { margin: 0 0 20px; }
.field label, .field .label { display: block; font-weight: 700; font-size: 14px; letter-spacing: 0.02em; color: var(--ink); margin-bottom: 6px; }
.field .help { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.input, .select, .textarea {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid var(--paper-line); border-radius: 8px; padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--plum-3); box-shadow: 0 0 0 4px rgba(139, 42, 163, 0.15); }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

.textarea {
  font-family: var(--serif); font-size: 18px; line-height: 32px; min-height: 340px; resize: vertical;
  padding: 0 18px 8px; border-color: transparent; border-radius: 4px;
  background: repeating-linear-gradient(transparent 0 31px, var(--paper-line) 31px 32px);
  background-color: #fff;
  background-attachment: local;
}
.textarea:focus { border-color: var(--plum-3); }
.counter { text-align: right; font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* chips de "enviar en" */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--paper-line);
  background: #fff; font-weight: 700; font-size: 15px; color: var(--ink); transition: all 0.15s ease;
}
.chip input:checked + span { background: var(--plum-2); border-color: var(--plum-2); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--flame); outline-offset: 2px; }
.chip:hover span { border-color: var(--plum-3); }
.date-box { margin-top: 12px; display: none; }
.date-box.open { display: block; }
.date-box .input { max-width: 260px; }

/* opciones de envio: gratis / con donacion */
.options { display: grid; gap: 10px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option .box {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--paper-line); background: #fff; transition: all 0.15s ease;
}
.option .box strong { font-weight: 700; }
.option .box small { display: block; color: var(--ink-2); font-size: 13px; }
.option .price { font-weight: 800; color: var(--plum-2); white-space: nowrap; }
.option input:checked + .box { border-color: var(--plum-2); box-shadow: 0 0 0 3px rgba(107, 26, 128, 0.12); }
.option input:focus-visible + .box { outline: 3px solid var(--flame); outline-offset: 2px; }

.captcha { display: flex; justify-content: center; margin: 8px 0 4px; }
.legal { font-size: 13px; color: var(--ink-2); text-align: center; margin: 16px 0 20px; }
.legal a { color: var(--plum-2); }
.submit { text-align: center; }

.alert {
  border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-size: 15px; font-weight: 600;
  background: #fdebe7; color: var(--danger); border: 1px solid #f3c5bc;
}

.hp { position: absolute; left: -5000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- el matasellos ---------- */

.rail { position: sticky; top: 92px; }
.postmark {
  width: 220px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  border: 3px double var(--lilac); color: var(--lilac);
  display: grid; place-content: center; text-align: center; padding: 20px;
  transform: rotate(-8deg); opacity: 0.95;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 70%);
  transition: transform 0.3s ease;
}
.postmark:hover { transform: rotate(-4deg); }
.postmark .pm-top { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 800; }
.postmark .pm-date { font-family: var(--display); font-size: 40px; line-height: 1; font-weight: 700; color: #fff; margin: 8px 0; }
.postmark .pm-date.secret { font-size: 30px; }
.postmark .pm-bottom { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.rail p { text-align: center; font-size: 14px; color: var(--lilac-2); margin: 14px 12px 0; }
@media (max-width: 1000px) {
  .rail { position: static; }
  .postmark { width: 180px; transform: rotate(-4deg); }
  .postmark .pm-date { font-size: 32px; }
}

/* ---------- ideas ---------- */

.ideas { padding: 24px 0 80px; }
.ideas .head { text-align: center; margin-bottom: 28px; }
.ideas h2 { font-family: var(--display); font-size: clamp(44px, 6vw, 64px); color: #fff; margin: 0 0 8px; line-height: 1; }
.ideas .head p { color: var(--lilac-2); margin: 0; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; }
.faq details[open] { background: rgba(255, 255, 255, 0.08); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; color: #fff; display: flex; gap: 12px; align-items: center; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: var(--display); font-size: 28px; line-height: 1; color: var(--flame); width: 20px; flex: none; }
.faq details[open] summary::before { content: "–"; }
.faq .body { padding: 0 20px 20px 52px; color: var(--lilac); }
.faq .body p { margin: 0 0 12px; }
.faq .body ul { padding-left: 18px; margin: 0; }
.faq .body li { margin-bottom: 8px; }
.faq .body strong { color: #fff; }
@media (max-width: 560px) { .faq .body { padding-left: 20px; } }

/* ---------- paginas interiores ---------- */

.page { padding: 48px 0 80px; }
.page-head { text-align: center; margin-bottom: 32px; }
.page-head h1 { font-family: var(--display); font-size: clamp(46px, 7vw, 76px); color: #fff; margin: 0 0 8px; line-height: 1; }
.page-head p { color: var(--lilac-2); margin: 0; font-size: 18px; }

.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 28px; }
.tabs a { text-decoration: none; color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.25); font-size: 15px; }
.tabs a.active { background: var(--paper); color: var(--plum-2); border-color: var(--paper); }

.letters { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
.letter-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--paper); border-radius: 6px; padding: 26px 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.letter-card:hover { transform: translateY(-2px); }
.letter-card .meta { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.letter-card h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 10px; color: var(--plum-2); }
.letter-card p { font-family: var(--serif); white-space: pre-line; margin: 0; line-height: 1.6; color: var(--ink); }
.letter-card.clamp p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.letter-card .more { display: block; margin-top: 12px; font-weight: 700; color: var(--plum-2); font-size: 14px; }
@media (max-width: 560px) { .letter-card { padding: 20px 18px; } }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pager a, .pager span { min-width: 40px; text-align: center; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: #fff; font-weight: 700; font-size: 15px; }
.pager a:hover { background: rgba(255, 255, 255, 0.1); }
.pager span.current { background: var(--paper); color: var(--plum-2); }
.pager span.dots { color: var(--lilac-2); }

/* carta individual */
.letter-sheet { max-width: 760px; margin: 0 auto; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 48px 52px; box-shadow: var(--shadow-paper); }
.letter-sheet .meta { color: var(--ink-2); font-size: 14px; margin: 0 0 4px; }
.letter-sheet h1 { font-family: var(--serif); font-size: 28px; color: var(--plum-2); margin: 0 0 22px; line-height: 1.3; }
.letter-sheet .body { font-family: var(--serif); font-size: 18px; line-height: 1.7; white-space: pre-line; }
.letter-sheet .images { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.letter-sheet .images img { width: 180px; height: 180px; object-fit: cover; border-radius: 6px; }
.letter-sheet .sig { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--paper-line); color: var(--ink-2); font-size: 14px; }
.premium { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #a67c00; }
@media (max-width: 640px) { .letter-sheet { padding: 30px 22px; } }

.private { text-align: center; max-width: 560px; margin: 0 auto; }
.private .lock { font-family: var(--display); font-size: 120px; line-height: 1; color: var(--lilac-2); }
.private h1 { font-family: var(--display); font-size: 64px; color: #fff; margin: 0 0 12px; line-height: 1; }
.private p { color: var(--lilac); }

/* enviado / donar */
.done { text-align: center; max-width: 640px; margin: 0 auto; }
.done .stamp { display: inline-grid; place-content: center; width: 120px; height: 120px; border-radius: 50%; border: 3px double var(--flame); color: var(--flame); font-family: var(--display); font-size: 40px; font-weight: 700; transform: rotate(-10deg); margin-bottom: 20px; }
.done h1 { font-family: var(--display); font-size: clamp(48px, 7vw, 76px); color: #fff; margin: 0 0 12px; line-height: 1; }
.done p { font-size: 18px; color: var(--lilac); }
.done .name { color: #fff; font-weight: 700; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 36px auto 0; }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.card h2 { font-family: var(--display); font-size: 34px; color: var(--plum-2); margin: 0 0 8px; line-height: 1; }
.card p { color: var(--ink-2); font-size: 15px; margin: 0 0 18px; }
.card .donate { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bmc { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: #ffdd00; color: #000; font-weight: 800; padding: 10px 18px; border-radius: 8px; font-size: 15px; }
.bmc img { height: 22px; }
.tweet { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: #000; color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 999px; font-size: 15px; }

/* terminos */
.prose { max-width: 760px; margin: 0 auto; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 44px 48px; box-shadow: var(--shadow-paper); }
.prose h1 { font-family: var(--display); font-size: 52px; color: var(--plum-2); margin: 0 0 20px; line-height: 1; }
.prose h2 { font-family: var(--display); font-size: 36px; color: var(--plum-2); margin: 36px 0 10px; line-height: 1; }
.prose h3 { font-size: 17px; margin: 22px 0 6px; }
.prose p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; }
@media (max-width: 640px) { .prose { padding: 30px 22px; } }

/* ---------- footer ---------- */

.site-footer { background: #2f0a3a; color: var(--lilac-2); padding: 56px 0 28px; margin-top: 20px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 32px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h3 { font-family: var(--display); font-size: 36px; color: #fff; margin: 0 0 6px; line-height: 1; }
.site-footer h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.site-footer p { margin: 0 0 10px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--lilac); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a { display: inline-grid; place-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
