/* Legado: misma estética que la web (fondo oscuro, bordes negros, colores vivos) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #0B0A10; color: #F4EEF8; font: 16px/1.6 Inter, system-ui, 'Noto Sans Arabic', sans-serif; }
a { color: #FFD84D; } a:hover { color: #FFE88A; }
:focus-visible { outline: 3px solid #FFD84D; outline-offset: 2px; }
.serif { font-family: 'DM Serif Display', Georgia, 'Noto Sans Arabic', serif; font-weight: 400; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1.serif { font-size: clamp(34px, 6vw, 56px); } h2.serif { font-size: clamp(28px, 4vw, 40px); } h3 { font-size: 19px; }
em { font-style: italic; color: #FF8FB8; }
.top { max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { font-size: 24px; color: #F4EEF8; text-decoration: none; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; } .top nav a { color: #DCD3EE; text-decoration: none; font-weight: 600; }
.top nav a.legado { color: #FFD84D; border: 2px solid #FFD84D; border-radius: 999px; padding: 2px 12px; }
.foot { max-width: 1200px; margin: 40px auto 0; padding: 28px 24px 40px; border-top: 1px solid #2A2540; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.foot a { color: #B5ABC9; }
.page { max-width: 1200px; margin: 0 auto; padding: 16px 24px 40px; display: flex; flex-direction: column; gap: 40px; }
.page.narrow { max-width: 720px; }
.loading { text-align: center; padding: 80px; color: #B5ABC9; }
.card { background: #14111C; border: 2px solid #2A2540; border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card.light { background: #F7F2FA; color: #1A1724; border-color: #0B0A10; box-shadow: 8px 8px 0 #B79CFF; }
.card.light a { color: #7A3FD0; } .card.light em { color: #C2185B; }
.card.green { background: #6FD99A; color: #0B0A10; border-color: #0B0A10; box-shadow: 8px 8px 0 #FFD84D; }
.card.warn-card { background: #FFD84D; color: #0B0A10; border-color: #0B0A10; }
.card.danger { border-color: #FF6B6B; }
.card.top0 { border-top: 8px solid #FF8FB8; } .card.top1 { border-top: 8px solid #FFD84D; } .card.top2 { border-top: 8px solid #6FD99A; }
.form { gap: 16px; }
.lbl { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.fld { width: 100%; font: inherit; font-size: 16px; color: #1A1724; background: #fff; border: 2px solid #0B0A10; border-radius: 14px; padding: 11px 14px; min-height: 48px; }
.card:not(.light) .fld { color: #F4EEF8; background: #1A1724; border-color: #3B3552; color-scheme: dark; }
textarea.fld { min-height: 220px; resize: vertical; line-height: 1.6; }
.hint { font-size: 13px; font-weight: 400; color: #6B6280; } .card:not(.light) .hint, .page > .hint { color: #B5ABC9; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid #0B0A10; background: #FF8FB8; color: #0B0A10; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 #6FD99A; }
.btn:hover { color: #0B0A10; transform: translate(-1px, -1px); }
.btn.dark { background: #0B0A10; color: #FFD84D; box-shadow: 4px 4px 0 #FF8FB8; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; box-shadow: none; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #7A3FD0; text-decoration: underline; cursor: pointer; align-self: flex-start; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.wrap { flex-wrap: wrap; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 2px solid currentColor; font-size: 13px; font-weight: 700; }
.chip.dark { background: #0B0A10; color: #FFD84D; border-color: #FFD84D; text-transform: uppercase; letter-spacing: .06em; }
.chip.pink { background: #C2185B; color: #F4EEF8; border-color: #0B0A10; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9C93B3; }
.lead { font-size: 19px; color: #DCD3EE; max-width: 760px; margin: 0; }
.big { font-size: 40px; }
.note { margin: 0; padding: 12px 16px; border-radius: 14px; border: 2px dashed #3B3552; font-size: 15px; }
.note.ok { border: 2px solid #0B0A10; background: #6FD99A; color: #0B0A10; }
.note.warn { border: 2px solid #0B0A10; background: #FFD84D; color: #0B0A10; }
.note.err { border: 2px solid #0B0A10; background: #FF8FB8; color: #0B0A10; font-weight: 600; }
.hero { display: flex; flex-direction: column; gap: 18px; padding: 40px 0 10px; }
.free-note { margin: 0; padding: 12px 16px; border-radius: 14px; border: 2px dashed #6FD99A; color: #DCD3EE; max-width: 760px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { border: 2px solid #0B0A10; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 8px; color: #0B0A10; }
.step.s1 { background: #FF8FB8; } .step.s2 { background: #B79CFF; } .step.s3 { background: #6FD99A; } .step.s4 { background: #FFD84D; }
.step .num { width: 38px; height: 38px; border-radius: 999px; background: #0B0A10; color: #F4EEF8; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ticks { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; }
.sealed { display: flex; flex-direction: column; gap: 24px; }
.seal-head { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; align-items: center; }
.seal { width: 110px; height: 110px; border-radius: 999px; background: #C2185B; border: 3px solid #0B0A10; display: flex; align-items: center; justify-content: center; font-size: 44px; box-shadow: 0 0 0 6px #14111C, 0 0 0 8px #FF8FB8; }
.plans-wrap { display: flex; flex-direction: column; gap: 24px; }
.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.calc-in { display: flex; flex-direction: column; gap: 16px; } .calc-in input[type=range] { width: 100%; accent-color: #FF8FB8; }
.calc-out { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: #FFD84D; color: #0B0A10; border: 2px solid #0B0A10; border-radius: 20px; padding: 22px; }
.plan { border: 2px solid #0B0A10; border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 10px; color: #0B0A10; }
.plan-0 { background: #B79CFF; } .plan-1 { background: #FF8FB8; box-shadow: 8px 8px 0 #F4EEF8; } .plan-2 { background: #FFD84D; }
.plan .serif { font-size: 30px; } .plan .price { font-size: 44px; } .plan ul { margin: 0; padding-inline-start: 18px; font-size: 14px; } .plan .btn { margin-top: auto; }
.plan .hint { color: #2A2540; }
.faq details { border-bottom: 1px solid #2A2540; padding: 14px 0; } .faq summary { cursor: pointer; font-weight: 600; font-size: 17px; } .faq p { color: #DCD3EE; }
.total { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 16px; background: #fff; border: 2px solid #0B0A10; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; } .check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: #C2185B; }
.check.big { padding: 14px; border: 2px solid #0B0A10; border-radius: 16px; background: #fff; }
.code { font: 700 22px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .06em; background: #fff; border: 2px dashed #0B0A10; border-radius: 14px; padding: 14px; text-align: center; margin: 0; word-break: break-all; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-top: 20px; }
.meter { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #B5ABC9; min-width: 220px; } .meter progress { width: 100%; accent-color: #6FD99A; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 2px solid #2A2540; padding-bottom: 12px; }
.tabs button { font: inherit; font-weight: 600; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 0; background: transparent; color: #DCD3EE; cursor: pointer; }
.tabs button[aria-selected=true] { background: #FF8FB8; color: #0B0A10; }
.dash-body { display: flex; flex-direction: column; gap: 20px; }
.letters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.letter { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 14px; border-radius: 16px; border: 2px solid #2A2540; background: #1A1724; }
.letter .meta { grid-column: 2 / 3; font-size: 13px; color: #B5ABC9; } .letter .when { font-size: 14px; color: #FFD84D; font-weight: 600; }
.letter.cofre { border-style: dashed; border-color: #B79CFF; } .letter.cofre.opened { border-style: solid; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #2A2540; color: #DCD3EE; font-size: 12px; font-weight: 600; }
.badge.seal-ok { background: #C2185B; color: #F4EEF8; } .badge.st-delivered { background: #6FD99A; color: #0B0A10; } .badge.st-failed { background: #FF6B6B; color: #0B0A10; } .badge.st-scheduled { background: #B79CFF; color: #0B0A10; }
.person h3 { font-size: 22px; }
fieldset { border: 2px solid #D9CFEA; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; margin: 0; } legend { font-weight: 700; padding: 0 6px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border: 2px solid #0B0A10; border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; }
.pill:has(input:checked) { background: #FFD84D; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .files li { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; }
.box-head { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
.grid-box { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.grid-box > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.grid-box .letter { grid-template-columns: minmax(0, 1fr) auto; } .grid-box .letter .when { grid-column: 1 / -1; }
.cofre-card { border-color: #B79CFF; border-style: dashed; }
.letter-view .letter-text { white-space: pre-wrap; font-size: 18px; line-height: 1.7; }
.letter-view h2 { font-size: 34px; } .signer { font-style: italic; font-size: 18px; margin: 0; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.att { margin: 0; display: flex; flex-direction: column; gap: 6px; } .att img { width: 100%; border-radius: 12px; border: 2px solid #0B0A10; } .att img.sticker { border: 0; max-width: 140px; }
.att audio, .att video { width: 100%; } .media .att:has(video), .media .att:has(audio) { grid-column: 1 / -1; }
.seal-box { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: #FBEAF0; border: 2px solid #C2185B; font-size: 14px; }
@media (max-width: 900px) {
  .steps, .grid3 { grid-template-columns: 1fr 1fr; } .grid2, .calc, .grid-box { grid-template-columns: 1fr; }
  .letter { grid-template-columns: 1fr; } .letter .meta { grid-column: auto; }
}
@media (max-width: 560px) { .steps, .grid3 { grid-template-columns: 1fr; } .seal-head { grid-template-columns: 1fr; } .page { padding: 10px 16px 30px; } }
@media print {
  body { background: #fff; color: #000; } .top, .foot, .btn, .tabs, button, .box-head .row { display: none !important; }
  .card, .card.light { box-shadow: none; background: #fff; color: #000; border-color: #999; } .grid-box { grid-template-columns: 1fr; }
}
.box-head .chip, .hero .chip, .dash-head .chip { align-self: flex-start; }
.calc-out .hint, .calc-out .kicker { color: #2A2540; }
.legal { gap: 22px; } .legal h1 { font-size: clamp(34px, 6vw, 50px); } .legal h2 { font-size: 22px; margin-top: 10px; color: #FFD84D; }
.legal p, .legal li { color: #DCD3EE; line-height: 1.7; margin: 0; } .legal ul { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal .updated { color: #9C93B3; font-size: 14px; } .legal section:target h2, .legal section#legado h2 { color: #FF8FB8; }
