/* Capimercenarios · una sola hoja de estilos, mobile first */

:root {
  --ink: #2a0f06;
  --ink-2: #5b2a17;
  --cream: #fff4e6;
  --paper: #fffaf3;
  --red: #c3260f;
  --red-dark: #8f1408;
  --orange: #ff6a13;
  --amber: #ffb347;
  --gold: #ffd166;
  --night: #1c0904;
  --ok: #1f7a3a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(60, 10, 0, .25);
  --display: Impact, "Anton", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.05; letter-spacing: .5px; margin: 0 0 .4em; }
h2 { font-size: clamp(2rem, 7vw, 3rem); text-transform: uppercase; color: var(--red-dark); text-align: center; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 .8em; }
code { font-size: .85em; background: rgba(0,0,0,.06); padding: .1em .35em; border-radius: 6px; word-break: break-all; }
.muted { color: #8a6a5c; font-weight: normal; }
.fine { font-size: .85rem; color: #7a5a4c; }
[hidden] { display: none !important; }

.test-banner {
  background: repeating-linear-gradient(45deg, #ffd166 0 14px, #ffbf3c 14px 28px);
  color: var(--ink); text-align: center; font-weight: 800; font-size: .85rem; padding: 6px 10px; letter-spacing: .5px;
}

/* ---------- botones */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--display); font-size: 1.25rem; letter-spacing: .5px; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, var(--orange), var(--red));
  padding: .7em 1.3em; border-radius: 999px;
  box-shadow: 0 5px 0 var(--red-dark), 0 10px 20px rgba(143, 20, 8, .35);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--red-dark), 0 5px 12px rgba(143, 20, 8, .3); }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-big { font-size: 1.5rem; padding: .8em 1.6em; }
.btn-sm { font-size: .95rem; padding: .45em .9em; box-shadow: 0 3px 0 var(--red-dark); }
.btn-ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 3px var(--red); }
.btn-ghost:active { box-shadow: inset 0 0 0 3px var(--red); }
.btn-danger { background: linear-gradient(180deg, #a3200d, #6d0f04); }
.btn-off, .btn[disabled] { background: #b9a79c; box-shadow: 0 5px 0 #8c7a70; cursor: not-allowed; color: #fff; }

/* ---------- hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 50% 30%, #ff8a2a 0%, #e0420f 35%, #8f1408 75%, #4a0a03 100%);
  padding: 28px 16px 40px;
}
.hero-rays {
  position: absolute; inset: -50%;
  background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 210, 120, .16) 0 6deg, transparent 6deg 16deg);
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-rays { animation: none; } html { scroll-behavior: auto; } }
.hero-inner { position: relative; max-width: 1040px; margin: 0 auto; display: grid; gap: 18px; justify-items: center; text-align: center; }
.hero-pic img {
  width: min(78vw, 360px); border-radius: 50%;
  border: 6px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .15), 0 20px 50px rgba(0, 0, 0, .45);
}
.kicker {
  display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem;
  background: rgba(0, 0, 0, .28); color: var(--gold); padding: .35em .9em; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.6rem, 11vw, 5rem); text-shadow: 0 4px 0 var(--red-dark), 0 8px 24px rgba(0, 0, 0, .4); margin-top: .2em; }
.lead { font-size: clamp(1.25rem, 4.6vw, 1.7rem); font-weight: 600; max-width: 30ch; margin: 0 auto 1.1em; }
.lead strong { color: var(--gold); }
.hl { display: inline-block; background: var(--ink); color: #fff; padding: 0 .3em; transform: rotate(-1.5deg); font-weight: 800; }
@media (min-width: 820px) {
  .hero { padding: 56px 24px 64px; }
  .hero-inner { grid-template-columns: 380px 1fr; text-align: left; justify-items: start; align-items: center; gap: 48px; }
  .lead { margin-left: 0; }
}

/* ---------- secciones */
main { display: block; }
main > section { padding: 40px 16px; max-width: 1040px; margin: 0 auto; }
.notice { max-width: 1040px; margin: 16px auto; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
main > .notice { margin: 16px; }
@media (min-width: 1072px) { main > .notice { margin: 16px auto; } }
.notice-warn { background: #ffe1cf; color: #7a1d05; border-left: 6px solid var(--red); }
.notice-ok { background: #ddf3e3; color: #134d25; border-left: 6px solid var(--ok); }
.notice-info { background: #fff0c9; color: #5b3d00; border-left: 6px solid var(--amber); }

/* ---------- contador */
.counter {
  text-align: center; background: var(--night); color: #fff; border-radius: 0 0 var(--radius) var(--radius);
  max-width: none !important; margin: 0 !important;
}
.counter-text { font-size: clamp(1.25rem, 5vw, 1.8rem); font-weight: 700; margin-bottom: .5em; }
.counter-text strong { font-family: var(--display); font-size: clamp(2.6rem, 12vw, 4.2rem); color: var(--gold); display: block; line-height: 1; }
.counter-sub { color: #f5c9a8; margin-top: .6em; }
.bar {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 640px; height: 26px; margin: 0 auto;
  border: 3px solid var(--gold); border-radius: 999px; background: #3a1608; overflow: hidden;
}
.bar::-webkit-progress-bar { background: #3a1608; border-radius: 999px; }
.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--amber), var(--orange), var(--red)); border-radius: 999px; }
.bar::-moz-progress-bar { background: linear-gradient(90deg, var(--amber), var(--orange), var(--red)); border-radius: 999px; }

/* ---------- planes */
.plan-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan {
  position: relative; background: var(--paper); border-radius: var(--radius); padding: 22px 18px 20px; text-align: center;
  box-shadow: var(--shadow); border: 3px solid transparent; display: flex; flex-direction: column; align-items: center;
}
.plan > .btn { margin-top: auto; width: 100%; }
.plan-emoji { font-size: 2.6rem; line-height: 1; margin: 0 0 .2em; }
/* Sin foto: el emoji ocupa el mismo cuadro que la imagen, así todas las tarjetas miden igual. */
.slot-media .plan-emoji {
  width: 100%; max-width: 220px; aspect-ratio: 1; margin: 0 auto 11px; display: grid; place-items: center;
  font-size: 4.5rem; border-radius: 14px; background: #fbeee2;
}
.plan.bando-vikingo .slot-media .plan-emoji { background: radial-gradient(circle at 50% 40%, #2c4a6e 0%, #15263c 60%, #0a121d 100%); }
.plan h3 { font-size: 2rem; text-transform: uppercase; color: var(--red-dark); margin-bottom: .1em; }
.plan-price { font-family: var(--display); font-size: 2.6rem; color: var(--red); margin: 0; line-height: 1.1; }
.plan-mercs { font-size: 1.1rem; margin-bottom: .4em; }
.plan-mercs strong { font-size: 1.4rem; }
.plan-credit { color: var(--ink-2); font-size: .98rem; margin-bottom: 1.1em; }
.plan-slots {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: var(--gold); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px;
  padding: .35em .9em; border-radius: 999px;
}
.plan-patrocinador { border-color: var(--amber); }
.plan-general { border-color: var(--red); background: linear-gradient(180deg, #fff3df, var(--paper)); }
.plan.is-out { opacity: .65; }
.plan.is-out .plan-price { text-decoration: line-through; }
.plans .fine { text-align: center; margin-top: 1.2em; }

/* ---------- pasos */
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .step-list { grid-template-columns: repeat(3, 1fr); } }
.step-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.step-n {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.6rem; color: #fff; background: var(--red);
}

/* ---------- muro de honor */
.honor { text-align: center; }
.honor-group { margin-bottom: 22px; }
.honor-group h3 { color: var(--ink); text-transform: uppercase; }
.honor-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.honor-list li { background: var(--paper); border: 2px solid #f0d7c2; border-radius: 999px; padding: .3em .9em; font-weight: 700; overflow-wrap: anywhere; }
.honor-list a { color: inherit; text-decoration-color: var(--orange); }
.honor-general .honor-list li, .honor-patrocinador .honor-list li { background: var(--ink); color: var(--gold); border-color: var(--ink); font-size: 1.15rem; }
.honor-empty { font-size: 1.1rem; color: var(--ink-2); }

/* ---------- FAQ */
.faq details { background: var(--paper); border-radius: 14px; margin-bottom: 10px; box-shadow: 0 4px 14px rgba(60, 10, 0, .1); }
.faq summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 800; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }

/* ---------- pie */
.foot { background: var(--night); color: #f5c9a8; text-align: center; padding: 28px 16px 36px; font-size: .95rem; }
.foot a { color: var(--gold); }
.foot .muted { color: #b08a76; }
.foot-brand { font-family: var(--display); color: #fff; font-size: 1.3rem; letter-spacing: 1px; }
.foot-brand span { color: var(--orange); margin: 0 .4em; }

/* ---------- páginas tipo tarjeta (gracias, checkout de prueba, login) */
.page-narrow { background: radial-gradient(circle at 50% 0%, #ff8a2a 0%, #c3260f 45%, #4a0a03 100%) fixed; min-height: 100vh; }
.card-page { padding: 24px 16px 48px; }
.card { max-width: 560px; margin: 0 auto; background: var(--paper); border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow); }
.card h1 { font-size: clamp(2rem, 8vw, 2.8rem); color: var(--red-dark); }
.card .kicker { background: var(--ink); }
.card.center { text-align: center; }
.lead-sm { font-size: 1.1rem; }
.save-link { background: #fff0c9; border-radius: 12px; padding: 14px; margin: 14px 0; font-size: .95rem; }
.save-link input { width: 100%; margin-bottom: 8px; }
.name-status { margin: 12px 0; font-size: 1.05rem; }
.spinner {
  width: 64px; height: 64px; margin: 6px auto 16px; border-radius: 50%;
  border: 7px solid #f3d3bd; border-top-color: var(--red); animation: spin 0.9s linear infinite;
}

/* ---------- formularios */
.form { display: grid; gap: 14px; margin-top: 10px; }
.form label { display: grid; gap: 6px; font-weight: 700; position: relative; }
.form .check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="password"], select {
  font: inherit; font-size: 1.1rem; width: 100%; padding: .7em .8em; border-radius: 12px;
  border: 2px solid #e4c3ac; background: #fff; color: var(--ink);
}
input:focus, select:focus { border-color: var(--orange); }
.char-count { position: absolute; right: 12px; bottom: 12px; font-size: .8rem; color: #a08070; font-weight: 600; pointer-events: none; }
.form-inline { margin-top: 18px; padding-top: 14px; border-top: 2px dashed #ecd2bf; }

/* ---------- panel admin */
.admin { background: #f6ece2; font-size: 16px; }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 16px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-top h1 { font-size: 2rem; color: var(--red-dark); margin: 0; }
.admin-box { background: var(--paper); border-radius: 14px; padding: 16px; margin: 16px 0; box-shadow: 0 4px 14px rgba(60, 10, 0, .08); }
.admin-box h2 { font-size: 1.5rem; text-align: left; }
.admin-battle select { max-width: 520px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #ecd9ca; vertical-align: top; }
th { background: #fbe6d4; white-space: nowrap; }
tr.total td { font-weight: 800; }
tr.st-oversold td { background: #ffe1cf; }
tr.st-mismatch td { background: #fff0c9; }
tr.st-refunded td { color: #9a8378; }
.actions { min-width: 220px; }
.actions form.inline, .review form.inline { display: inline-flex; gap: 6px; margin: 4px 4px 0 0; flex-wrap: wrap; }
.mini-link { font-size: .75rem !important; padding: .3em .5em !important; }
.review { border-bottom: 1px dashed #ecd2bf; padding: 10px 0; }
.review input[type="text"] { font-size: .95rem; padding: .4em .6em; width: auto; min-width: 220px; }

/* ---------- armadura, estadísticas (de adorno) y frase */
.plan-armor {
  display: inline-block; margin: 0 0 .5em; padding: .25em .8em; border-radius: 999px;
  font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px;
  background: linear-gradient(180deg, #e9e2da, #b9aea3); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}
.plan-general .plan-armor {
  background: linear-gradient(180deg, #f4f7fa 0%, #b8c4cf 45%, #7d8b98 100%); color: #1b2530;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 2px #5e6c79;
}
.plan-price .per { font-family: var(--body); font-size: .95rem; color: var(--ink-2); font-weight: 700; }
.stats { width: 100%; margin: 0 0 .8em; padding: 10px 12px; background: #fbeee2; border-radius: 12px; display: grid; gap: 5px; }
.stat { display: grid; grid-template-columns: 5.6em 1fr; align-items: center; gap: 8px; }
.stat dt { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-2); text-align: left; }
.stat dd { margin: 0; }
.pips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.pips i { display: block; height: 10px; border-radius: 3px; background: #ead3c1; }
.pips i.on { background: linear-gradient(180deg, var(--amber), var(--orange)); }
.plan-general .pips i.on { background: linear-gradient(180deg, var(--orange), var(--red)); }
.plan-quote { font-style: italic; color: var(--ink-2); font-size: .95rem; margin: 0 0 1em; }

/* ---------- compra: cantidad de packs */
.buy-area { margin-top: auto; width: 100%; }
.buy-area .btn { width: 100%; }
.buy-form { display: grid; gap: 8px; }
.qty { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; align-items: center; }
.qty-btn {
  height: 52px; border: 0; border-radius: 14px; cursor: pointer; font: 900 1.8rem/1 var(--display);
  color: var(--red-dark); background: #ffe3cc; box-shadow: inset 0 -3px 0 #f2b98f;
}
.qty-btn:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 #f2b98f; }
.qty-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
input.qty-input {
  height: 52px; text-align: center; font-family: var(--display); font-size: 1.6rem; padding: 0 .3em;
  -moz-appearance: textfield; appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-total { margin: 0; font-size: .98rem; color: var(--ink-2); }
.qty-total strong { color: var(--red); font-size: 1.1rem; }

/* ---------- muro de honor: cuántos mandó cada nombre */
.honor-n {
  display: inline-block; margin-left: .4em; padding: 0 .5em; border-radius: 999px;
  font-size: .78rem; font-weight: 800; background: var(--orange); color: #fff; vertical-align: 1px;
}

/* ---------- Ernesto VS Ragnar: dos paneles (naranja / azul noche), como un cartel de pelea */
.versus { padding-top: 24px !important; padding-bottom: 20px !important; }
.vs-panels {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.vs-side { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 18px 10px 16px; text-align: center; color: #fff; }
.vs-ernesto { background: radial-gradient(circle at 50% 35%, #ff9a3c 0%, #e0420f 50%, #8f1408 100%); }
.vs-ragnar  { background: radial-gradient(circle at 50% 35%, #2c4a6e 0%, #15263c 55%, #0a121d 100%); }
.vs-frame {
  display: block; width: min(36vw, 200px); aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
}
.vs-ernesto .vs-frame { border: 4px solid var(--gold); }
.vs-ragnar .vs-frame { border: 4px solid #8fa8c4; }
.vs-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-ragnar .vs-frame img { object-position: 50% 20%; } /* retrato de medio cuerpo: prioriza la cara */
.vs-placeholder {
  display: grid; place-items: center; color: #a9b8c5;
  background: radial-gradient(circle at 50% 35%, #4b5a68 0%, #26303a 70%, #151b21 100%);
}
.vs-placeholder svg { width: 62%; height: 62%; fill: currentColor; opacity: .55; }
.vs-name { font-family: var(--display); font-size: clamp(1.4rem, 6vw, 2.2rem); text-transform: uppercase; margin: 6px 0 0; line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.vs-sub, .vs-army { margin: 0; font-weight: 800; font-size: clamp(.8rem, 3.4vw, 1rem); }
.vs-sub { color: #ffe1b0; }
.vs-army { color: #b9cde2; font-family: var(--display); font-weight: 400; font-size: clamp(1rem, 4.4vw, 1.4rem); letter-spacing: .5px; }
.vs-mark {
  position: absolute; left: 50%; top: calc(18px + min(18vw, 100px)); /* centro vertical de las fotos */ transform: translate(-50%, -50%) rotate(-8deg);
  margin: 0; width: clamp(54px, 15vw, 84px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; z-index: 1;
  font-family: var(--display); font-size: clamp(1.5rem, 7vw, 2.6rem); line-height: 1; color: #fff;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
@media (min-width: 820px) {
  .vs-side { padding: 28px 16px 24px; }
  .vs-frame { width: 240px; }
  .vs-mark { top: 148px; }
}

/* ---------- marca del canal y redes */
.hero-top {
  position: relative; max-width: 1040px; margin: 0 auto 14px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 10px;
}
.brand { margin: 0; font-family: var(--display); font-size: 1.25rem; letter-spacing: 1px; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 var(--red-dark); }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(0, 0, 0, .28); color: #fff; transition: transform .1s ease, background .1s ease;
}
.social-btn:hover { background: rgba(0, 0, 0, .45); transform: translateY(-1px); }
.social-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.social-btn svg { width: 22px; height: 22px; fill: currentColor; }
.social-btn svg .cut { fill: #000; opacity: .55; }
.social-btn svg .ring { fill: none; stroke: currentColor; stroke-width: 2; }
.social-foot { justify-content: center; margin: 4px 0 12px; }
.social-foot .social-btn { background: #3a1608; color: var(--gold); }
.social-foot .social-btn svg .cut { fill: #3a1608; opacity: 1; }
@media (max-width: 380px) { .hero-top { justify-content: center; } }

/* ---------- contador creciente */
.counter-text strong { margin: .1em 0; }

/* ---------- imagen opcional de la tarjeta */
.plan-img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin: 0 auto 11px; }

/* ---------- bando vikingo (separado y más oscuro) */
.viking {
  max-width: none !important; margin: 0 !important; padding: 44px 16px 48px !important;
  background: radial-gradient(circle at 50% 0%, #34404c 0%, #1b2229 55%, #0e1216 100%);
  color: #dfe6ec; text-align: center;
}
.viking > * { max-width: 1008px; margin-left: auto; margin-right: auto; } /* mismo ancho útil que la fila de Ernesto */
.viking h2 { color: #e8eef3; }
.viking-kicker {
  display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem;
  background: #0b0e11; color: #9fb3c4; padding: .35em .9em; border-radius: 999px; margin-bottom: 10px;
}
.viking-lead { font-family: var(--display); font-size: clamp(1.4rem, 6vw, 2rem); color: #c9d4dd; margin-bottom: .3em; }
.viking-count { color: #9fb3c4; margin-bottom: 26px; }
.viking-count strong { font-family: var(--display); font-size: 1.6rem; color: #fff; }
.plan.bando-vikingo { background: #222b33; color: #dfe6ec; border-color: #5e6c79; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.plan.bando-vikingo h3 { color: #f0f4f7; }
.plan.bando-vikingo .plan-price { color: #ff6a4d; }
.plan.bando-vikingo .plan-credit, .plan.bando-vikingo .plan-quote, .plan.bando-vikingo .plan-price .per { color: #b4c2ce; }
.plan.bando-vikingo .plan-slots { background: #0b0e11; color: #ff8a6a; }
.plan.bando-vikingo .stats { background: #1a2128; }
.plan.bando-vikingo .stat dt { color: #9fb3c4; }
.plan.bando-vikingo .pips i { background: #34404c; }
.plan.bando-vikingo .pips i.on { background: linear-gradient(180deg, #c9d4dd, #7d8b98); }
.plan.bando-vikingo .plan-armor { background: linear-gradient(180deg, #4a4f55, #1d2125); color: #e8eef3; box-shadow: 0 0 0 2px #0b0e11; }
.plan.bando-vikingo .btn:not(.btn-off) {
  background: linear-gradient(180deg, #ff8a1f, #f05a0a); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.35);
  box-shadow: 0 5px 0 #9c3204, 0 0 0 2px rgba(255, 170, 90, .35), 0 12px 26px rgba(255, 106, 19, .35);
}
.plan.bando-vikingo .btn-off { background: #3a444e; box-shadow: 0 5px 0 #1b2229; color: #9fb3c4; }
.honor-traitors { padding-top: 34px; }
.honor-traitors h3 { color: #e8eef3; }
.honor-traitors .honor-list li { background: #0b0e11; color: #ff8a6a; border-color: #34404c; }
.honor-traitors .honor-n { background: #5e6c79; }
.honor-traitors .honor-empty, .honor-traitors .muted { color: #9fb3c4; }

/* panel: separación por bando */
tr.side-head th { background: var(--ink); color: var(--gold); text-transform: uppercase; letter-spacing: .5px; }
tbody.side-vikingo tr.side-head th { background: #26303a; color: #dfe6ec; }

/* ---------- a qué bando pertenece cada tarjeta */
.side-tag {
  margin: 0 0 .5em; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px;
  padding: .2em .7em; border-radius: 6px;
}
.side-tag-ernesto { background: #ffe1cf; color: var(--red-dark); }
.side-tag-vikingo { background: #0b0e11; color: #ff8a6a; border: 1px solid #5e6c79; }

/* ---------- bando vikingo plegado (secundario) */
.viking { padding: 28px 16px 32px !important; }
.viking-toggle > summary {
  list-style: none; cursor: pointer; display: grid; justify-items: center; gap: 6px;
  padding: 18px 16px; border: 2px dashed #5e6c79; border-radius: var(--radius); background: rgba(0,0,0,.25);
}
.viking-toggle > summary::-webkit-details-marker { display: none; }
.viking-toggle > summary:focus-visible { outline: 3px solid #9fb3c4; outline-offset: 3px; }
.viking-q { font-family: var(--display); font-size: clamp(1.6rem, 7vw, 2.4rem); color: #f0f4f7; text-transform: uppercase; line-height: 1.05; }
.viking-toggle .viking-kicker { margin: 0; }
.viking-toggle .viking-lead { font-family: var(--body); font-size: 1rem; font-weight: 700; color: #c9d4dd; margin: 0; }
.viking-toggle .viking-count { margin: 0; font-size: .95rem; }
.viking-open-btn {
  margin-top: 8px; display: inline-block; padding: .65em 1.5em; border-radius: 999px;
  font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .5px; color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  background: linear-gradient(180deg, #ff8a1f, #f05a0a);
  box-shadow: 0 5px 0 #9c3204, 0 0 0 3px rgba(255, 170, 90, .3), 0 14px 30px rgba(255, 106, 19, .4);
}
.viking-toggle > summary:hover .viking-open-btn { filter: brightness(1.08); }
.viking-illus {
  width: min(52vw, 220px); aspect-ratio: 1; object-fit: cover; border-radius: 18px; margin-bottom: 6px;
  border: 4px solid #5e6c79; box-shadow: 0 10px 28px rgba(0,0,0,.5);
}
.viking-toggle .when-open { display: none; }
.viking-toggle[open] .when-open { display: inline; }
.viking-toggle[open] .when-closed { display: none; }
.viking-body { padding-top: 26px; }
.viking-note { color: #c9d4dd; max-width: 34em; margin: 0 auto 22px; }
.viking-note strong { color: #ff8a6a; }

/* ---------- checkout de prueba y gracias: bando visible */
.side-banner { display: block; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; font-weight: 800; text-align: center; }
.side-banner-ernesto { background: #ffe1cf; color: var(--red-dark); }
.side-banner-vikingo { background: #1b2229; color: #ff8a6a; border: 2px solid #5e6c79; }

/* etiquetas cortas en una sola línea para que las tarjetas de los dos bandos midan igual */
.side-tag { white-space: nowrap; }
.plan-armor { font-size: .68rem; letter-spacing: .2px; padding: .25em .65em; }

/* =====================================================================
   Tarjetas con estructura rígida: 11 ranuras siempre presentes, en el mismo orden.
   Con subgrid, cada ranura se alinea con la misma ranura de las otras tarjetas de la fila
   (precio con precio, crédito con crédito, botón con botón). Sin subgrid: columna flexible
   y app.js iguala alturas en escritorio.
   ===================================================================== */
.plan { text-align: center; }
.plan > *:not(.plan-slots) { width: 100%; }
.plan > .side-tag { width: auto; justify-self: center; }
.slot-media { display: flex; justify-content: center; margin: 0 0 11px; }
.slot-media .plan-img, .slot-media .plan-emoji { margin: 0; }
.plan h3 { margin: 0 0 4px; line-height: 1.05; }
.slot-armor { min-height: 26px; display: flex; justify-content: center; align-items: center; margin: 0 0 6px; }
.slot-armor .plan-armor { margin: 0; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.plan-price { white-space: nowrap; margin: 0; }
.plan-per { margin: 0 0 6px; font-size: .9rem; font-weight: 700; color: var(--ink-2); text-transform: lowercase; }
.plan.bando-vikingo .plan-per { color: #b4c2ce; }
.plan-mercs { margin: 0 0 8px; }
.plan-credit { margin: 0 0 14px; }
.stats { margin: 0 0 12px; align-self: start; }
.plan-quote { margin: 0 0 14px; }
.buy-area { align-self: end; margin-top: 0; }

@supports (grid-template-rows: subgrid) {
  .plan-grid { row-gap: 0; }
  .plan {
    display: grid; grid-row: span 11; grid-template-rows: subgrid; row-gap: 0;
    justify-items: center; align-items: start; margin-bottom: 18px;
  }
}
@supports not (grid-template-rows: subgrid) {
  .plan { display: flex; flex-direction: column; align-items: center; }
  .buy-area { margin-top: auto; }
}

/* total en vivo legible sobre las tarjetas oscuras */
.plan.bando-vikingo .qty-total { color: #c9d4dd; }
.plan.bando-vikingo .qty-total strong { color: #ff9a4d; }

/* panel: avisos de reembolso/disputa y contenido de webhooks */
tr.is-flagged td { background: #ffd6d6; }
.flag { color: #8f1408; }
.log-body summary { cursor: pointer; color: var(--red); font-size: .85rem; }
.log-body pre { white-space: pre-wrap; word-break: break-all; font-size: .75rem; max-height: 260px; overflow: auto; background: #fff; padding: 8px; border-radius: 8px; }
/* aviso de compra en Whop y enlaces legales */
.qty-note { margin: 0 0 8px; font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.plan.bando-vikingo .qty-note { color: #c9d4dd; }
.legal-near { text-align: center; }
.viking .legal-near, .viking .legal-near a { color: #9fb3c4; }
.foot-legal a { color: var(--gold); }

/* páginas legales */
.legal-card { max-width: 760px; text-align: left; }
.legal-card h2 { font-size: 1.5rem; text-align: left; color: var(--ink); margin-top: 1.2em; }
.legal-card ul { padding-left: 1.2em; }
.legal-card li { margin-bottom: .4em; }
.legal-card hr { border: 0; border-top: 2px dashed #ecd2bf; margin: 24px 0 12px; }

/* ---------- cuenta regresiva a la batalla */
.countdown {
  text-align: center; margin: 22px auto 0 !important; padding: 22px 16px 20px !important;
  max-width: 1008px !important; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, #8f1408 0%, #3a1608 50%, #15263c 100%);
  box-shadow: var(--shadow);
}
.cd-label { margin: 0 0 10px; font-family: var(--display); font-size: clamp(1.3rem, 5.5vw, 2rem); text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 520px; margin: 0 auto 12px; }
.cd-cell { background: rgba(0, 0, 0, .35); border: 2px solid rgba(255, 209, 102, .35); border-radius: 14px; padding: 10px 4px 8px; }
.cd-num { display: block; font-family: var(--display); font-size: clamp(2.2rem, 11vw, 3.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-unit { display: block; margin-top: 4px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: #ffd9a8; }
.cd-when { margin: 0 0 4px; font-weight: 800; font-size: 1.05rem; }
.cd-sales { margin: 0; font-size: .92rem; color: #ffd9a8; }

/* ---------- después de la cuenta: la batalla ya empezó */
.battle-live {
  text-align: center; margin: 22px auto 0 !important; padding: 26px 16px 22px !important; max-width: 1008px !important;
  border-radius: var(--radius); color: #fff; box-shadow: var(--shadow);
  background: radial-gradient(circle at 50% 0%, #ff8a2a 0%, #c3260f 45%, #4a0a03 100%);
}
.battle-live h2 { color: #fff; font-size: clamp(2.2rem, 9vw, 3.6rem); text-shadow: 0 4px 0 var(--red-dark); margin-bottom: 14px; }
.battle-live .kicker { background: rgba(0, 0, 0, .3); }
.battle-live .fine { color: #ffe1cf; margin: 14px 0 0; }
.watch-grid { display: grid; gap: 12px; max-width: 560px; margin: 0 auto; }
.watch-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--red-dark); box-shadow: 0 5px 0 #6d0f04, 0 12px 24px rgba(0,0,0,.3); }
.watch-btn svg { width: 28px; height: 28px; fill: currentColor; flex: 0 0 auto; }
.watch-btn svg .cut { fill: #fff; }
.watch-btn svg .ring { fill: none; stroke: currentColor; stroke-width: 2; }
.battle-soon { font-size: 1.15rem; font-weight: 800; margin: 0 0 12px; }
.social-live { justify-content: center; }
.social-live .social-btn { width: 52px; height: 52px; }
.social-live .social-btn svg { width: 28px; height: 28px; }
.viking-after { padding: 34px 16px 40px !important; }

/* ---------- panel: configuración */
.settings-grid { display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 720px; }
@media (min-width: 700px) { .settings-grid { grid-template-columns: 1fr 1fr; } }
.settings-summary { background: #fff7ee; border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }
.settings-summary p { margin: 0 0 4px; }
.phase-badge { display: inline-block; padding: .15em .6em; border-radius: 999px; font-weight: 800; font-size: .85rem; background: var(--ink); color: var(--gold); }

/* Botón de compra con lo que recibe el comprador debajo del verbo */
.buy-area .btn { display: block; width: 100%; border-radius: 18px; padding: .6em .8em .65em; }
.btn .btn-main { display: block; font-size: 1.3rem; line-height: 1.1; white-space: nowrap; }
.btn .btn-sub {
  display: block; margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .45);
  font-family: var(--body); font-size: .82rem; font-weight: 700; line-height: 1.25;
  text-transform: none; letter-spacing: 0; text-shadow: none; -webkit-text-stroke: 0; color: #fff;
}
