/* tornio — verde salvia del logo, tinta verde profunda y un toque de pelota */
:root {
  --bg: #e8ece6;
  --paper: #f5f7f3;
  --ink: #1b3a31;
  --ink-2: #2b5145;
  --muted: #5f7068;
  --line: #d2dad1;
  --ball: #d4ec5c;
  --warn: #b5562b;
  --radius: 14px;
  --f: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.05; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
section { padding-block: 72px; }

.logo { font-weight: 600; font-size: 26px; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--ink-2); }
.logo.sm { font-size: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--ink); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.light { background: var(--ball); color: var(--ink); border-color: var(--ball); }
.btn.sm { padding: 8px 16px; font-size: 14px; }

.kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.kicker.light { color: var(--ball); }
.lead { color: var(--muted); font-size: 18px; max-width: 56ch; }
.sec-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); max-width: 22ch; margin-bottom: 10px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Portada */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 48px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 88px); letter-spacing: -0.045em; line-height: .98; margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14.5px; color: var(--muted); }
.hero-facts b { color: var(--ink); font-weight: 600; margin-right: 4px; }

.phone { margin: 0; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone-frame { width: 300px; height: 600px; border-radius: 42px; background: #0d1512; padding: 10px; box-shadow: 0 30px 60px -30px rgba(27, 58, 49, .55); }
.phone-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 33px; background: #060a12; }
.phone figcaption { font-size: 13.5px; color: var(--muted); }

/* Lo más importante */
.key { background: var(--ink); color: var(--paper); }
.key h2 { font-size: clamp(30px, 4.4vw, 48px); max-width: 20ch; }
.key-list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.key-list li { border-top: 2px solid var(--ball); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.key-list span { color: #b7c6bd; font-size: 15px; }

/* Demo */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: 15px; }
.panel-head span { color: var(--muted); font-size: 13px; }
.status.ok { color: var(--ink-2); font-weight: 600; }
.status.bad { color: var(--warn); font-weight: 600; }

.avail { display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)); gap: 5px; font-size: 13px; }
.avail .h { color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; font-size: 12px; padding-bottom: 2px; }
.avail .zone { grid-column: 1 / -1; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.avail .name { padding-right: 10px; display: flex; align-items: center; white-space: nowrap; font-weight: 500; }
.avail button { height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; transition: background .15s; }
.avail button.on { background: var(--ink-2); border-color: var(--ink-2); }
.avail button:hover { border-color: var(--ink); }
.legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); background: #fff; display: inline-block; }
.sw.on { background: var(--ink-2); border-color: var(--ink-2); }

.board { display: grid; grid-template-columns: 52px repeat(2, minmax(0, 1fr)); gap: 6px; }
.board .h { font-size: 12px; color: var(--muted); text-align: center; }
.board .t { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.slot { height: 56px; border: 1px dashed var(--line); border-radius: 9px; }
.match { height: 56px; border-radius: 9px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ball); padding: 6px 10px; font-size: 13px; line-height: 1.3; display: flex; flex-direction: column; justify-content: center; }
.match.fresh { animation: drop .35s ease both; }
.match.z2 { border-left-color: var(--ink-2); }
.match small { color: var(--muted); font-size: 11px; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* Funcionalidades: tarjetas con una mini pantalla y "+" para ver más */
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.fc:hover { border-color: #bfcabd; box-shadow: 0 18px 36px -28px rgba(27, 58, 49, .45); }
.fc-vis { height: 150px; background: #dfe6dc; display: grid; place-items: center; padding: 18px; position: relative; overflow: hidden; }
.fc:nth-child(3n+2) .fc-vis { background: #e4e9e1; }
.fc:nth-child(3n) .fc-vis { background: #d8e1d6; }
.fc-txt { padding: 18px 20px 20px; }
.fc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.fc h3 { font-size: 18.5px; letter-spacing: -0.015em; }
.fc p { color: var(--muted); font-size: 15px; }
.fc-plus { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; position: relative; cursor: pointer; transition: background .2s, transform .25s; }
.fc-plus::before, .fc-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: background .2s; }
.fc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.fc-plus:hover { background: var(--ball); }
.fc.open .fc-plus { transform: rotate(45deg); background: var(--ink); }
.fc.open .fc-plus::before, .fc.open .fc-plus::after { background: var(--paper); }
.fc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.fc-more > p { overflow: hidden; color: var(--ink); font-size: 14.5px; }
.fc.open .fc-more { grid-template-rows: 1fr; }
.fc.open .fc-more > p { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }

/* Mini pantallas */
.fc-vis > * { font-size: 12.5px; }
.vx-live { position: absolute; top: 14px; left: 16px; display: flex; align-items: center; gap: 6px; font-size: 11px !important; font-weight: 600; color: var(--ink-2); }
.vx-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #3fae5a; animation: pulse 1.6s infinite; }
.vx-score { background: #fff; border-radius: 10px; padding: 10px 14px; display: grid; grid-template-columns: 1fr 22px 22px; gap: 6px 4px; width: 210px; box-shadow: 0 8px 20px -14px rgba(0,0,0,.4); }
.vx-score b, .vx-score i { text-align: center; font-style: normal; font-variant-numeric: tabular-nums; }
.vx-score b { font-weight: 700; } .vx-score i { color: var(--muted); }
.vx-score .w { font-weight: 700; }
.vx-sets { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; text-align: center; }
.vx-sets span { font-size: 10.5px; color: var(--muted); }
.vx-sets b { height: 36px; display: grid; place-items: center; background: #fff; border-radius: 8px; border: 1px solid var(--line); font-size: 16px; }
.vx-sets b.cur { border: 2px solid var(--ink-2); box-shadow: 0 0 0 3px var(--ball); }
.vx-grid { display: grid; grid-template-columns: repeat(4, 38px); gap: 5px; }
.vx-grid i { height: 24px; border-radius: 5px; background: #fff; border: 1px dashed #b9c4b8; }
.vx-grid i.f { background: var(--ink-2); border: 0; animation: drop .5s ease both; }
.vx-grid i.f:nth-child(odd) { background: #6f9a62; }
.fc:hover .vx-grid i.f { animation: drop .4s ease both; }
.vx-grid i:nth-child(2n) { animation-delay: .08s; } .vx-grid i:nth-child(3n) { animation-delay: .16s; }
.vx-bracket { width: 200px; height: 100px; position: relative; }
.vx-bracket span { position: absolute; left: 0; width: 70px; height: 18px; background: #fff; border-radius: 4px; }
.vx-bracket span:nth-child(1) { top: 0; } .vx-bracket span:nth-child(2) { top: 26px; } .vx-bracket span:nth-child(3) { top: 56px; } .vx-bracket span:nth-child(4) { top: 82px; }
.vx-bracket em { position: absolute; left: 70px; width: 34px; border: 1.5px solid var(--ink-2); border-left: 0; background: none; padding: 0; margin: 0; border-radius: 0 6px 6px 0; }
.vx-bracket em:nth-of-type(1) { top: 9px; height: 26px; } .vx-bracket em:nth-of-type(2) { top: 65px; height: 26px; }
.vx-bracket em::after { content: ''; position: absolute; left: 34px; top: 12px; width: 50px; height: 18px; background: #fff; border-radius: 4px; }
.vx-bracket strong { position: absolute; right: 0; top: 36px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--ball); border-radius: 50%; font-size: 14px; }
.vx-stack { position: relative; width: 210px; height: 96px; }
.vx-stack div { position: absolute; left: 0; right: 0; background: #fff; border-radius: 9px; padding: 9px 12px; display: flex; justify-content: space-between; font-weight: 600; box-shadow: 0 6px 14px -10px rgba(0,0,0,.35); }
.vx-stack small { color: var(--muted); font-weight: 500; }
.vx-stack div:nth-child(1) { top: 0; z-index: 3; } .vx-stack div:nth-child(2) { top: 26px; left: 10px; right: -10px; z-index: 2; opacity: .85; } .vx-stack div:nth-child(3) { top: 52px; left: 20px; right: -20px; z-index: 1; opacity: .65; }
.vx-chat { background: #fff; border-radius: 12px 12px 12px 3px; padding: 10px 12px 6px; max-width: 230px; box-shadow: 0 8px 20px -14px rgba(0,0,0,.4); }
.vx-chat p { color: var(--ink) !important; font-size: 12.5px !important; line-height: 1.4; }
.vx-chat span { display: block; text-align: right; font-size: 10px; color: #4fa3d8; margin-top: 2px; }
.vx-form { background: #fff; border-radius: 10px; padding: 8px; width: 210px; display: flex; flex-direction: column; gap: 4px; }
.vx-form span { display: flex; flex-direction: column; font-size: 9.5px; line-height: 1.25; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.vx-form b { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.vx-form button { border: 0; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 5px; font: inherit; font-size: 12px; font-weight: 600; }
.vx-pay { background: #fff; border-radius: 12px; padding: 12px 14px; width: 210px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 8px 20px -14px rgba(0,0,0,.4); }
.vx-pay span { display: block; font-size: 10.5px; color: var(--muted); }
.vx-pay b { font-size: 18px; letter-spacing: -0.02em; }
.vx-pay em { margin: 0; vertical-align: 0; background: #e3f1d9; color: #2f6b2a; text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.vx-rank { list-style: none; margin: 0; padding: 0; width: 200px; display: flex; flex-direction: column; gap: 5px; }
.vx-rank li { background: #fff; border-radius: 8px; padding: 6px 10px; display: grid; grid-template-columns: 20px 1fr auto 14px; gap: 6px; align-items: center; font-weight: 600; }
.vx-rank li:first-child b { background: var(--ball); border-radius: 50%; text-align: center; }
.vx-rank span { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.vx-rank i { font-style: normal; font-size: 9px; color: #3f9a4f; }

em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: var(--ball); color: var(--ink); padding: 2px 7px; border-radius: 999px; vertical-align: 3px; margin-left: 4px; white-space: nowrap; }

/* Antes y después: tarjetas que se dan vuelta */
.ba-sec { background: linear-gradient(180deg, var(--bg) 0%, #dde4da 100%); }
.ba-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.ba-top .sec-head { margin-bottom: 0; }
.ba-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.ba-switch button { position: relative; z-index: 1; border: 0; background: none; font: inherit; font-weight: 600; font-size: 15px; padding: 10px 22px; color: var(--muted); cursor: pointer; transition: color .3s; }
.ba-switch button.on { color: var(--paper); }
.ba-switch i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform .4s cubic-bezier(.3,.7,.2,1), background .3s; }
.ba-switch.antes i { background: #8a6f62; }
.ba-switch:not(.antes) i { transform: translateX(100%); }
.ba-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ba-card { border: 0; padding: 0; background: none; font: inherit; text-align: left; color: inherit; height: 280px; perspective: 1200px; cursor: pointer; }
.ba-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,.7,.2,1); }
.ba-card.flip .ba-inner { transform: rotateY(180deg); }
.ba-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ba-face b { font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.ba-n { font-size: 12px; font-weight: 600; letter-spacing: .08em; opacity: .55; }
.ba-txt { font-size: 15px; line-height: 1.45; }
.ba-chip { margin-top: auto; align-self: flex-start; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.ba-before { background: #f3efe9; border: 1px dashed #cdbfb2; color: #6b5a50; }
.ba-before .ba-txt { text-decoration: line-through; text-decoration-color: rgba(107, 90, 80, .4); }
.ba-before .ba-chip { background: #f6dccf; color: #9a4a2a; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; font-weight: 500; transform: rotate(-2deg); }
.ba-after { background: var(--ink); color: var(--paper); transform: rotateY(180deg); box-shadow: 0 22px 40px -26px rgba(27, 58, 49, .7); }
.ba-after .ba-txt { color: #d3ddd6; }
.ba-after .ba-chip { background: var(--ball); color: var(--ink); }
.ba-hint { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan.star { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan .ribbon { position: absolute; top: 22px; right: 22px; background: var(--ball); color: var(--ink); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 28px; }
.plan .for { color: var(--muted); font-size: 15px; min-height: 3.2em; }
.plan.star .for, .plan.star .price span { color: #b7c6bd; }
.price { border-block: 1px solid var(--line); padding-block: 14px; display: flex; flex-direction: column; gap: 2px; }
.plan.star .price { border-color: rgba(255, 255, 255, .14); }
.price b { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 500; opacity: .7; }
.price span { font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--ball); }
.plan:not(.star) li::before { box-shadow: inset 0 0 0 1.5px var(--ink); }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 80ch; }

/* Contacto */
.cta { background: var(--ink); color: var(--paper); }
.cta-in { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta h2 { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -0.04em; }
.cta p { color: #b7c6bd; font-size: 18px; max-width: 54ch; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 28px; color: var(--muted); font-size: 14px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .key-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan .for { min-height: 0; }
}
@media (max-width: 600px) {
  section { padding-block: 52px; }
  .wrap { padding-inline: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .key-list, .feat { grid-template-columns: minmax(0, 1fr); }
  .ba-cards { grid-template-columns: minmax(0, 1fr); }
  .ba-card { height: 200px; }
  .phone-frame { width: 270px; height: 540px; }
}
@media (prefers-reduced-motion: reduce) { .ba-inner, .ba-switch i { transition: none; } .match.fresh { animation: none; } html { scroll-behavior: auto; } }

/* Panel del organizador (demo) */
.admin { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -34px rgba(27, 58, 49, .5); min-width: 0; }
.admin-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #dfe5dd; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #c3ccc2; }
.admin-url { font-size: 12.5px; color: var(--muted); background: var(--paper); border-radius: 6px; padding: 3px 10px; flex: 1; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 470px; }
.admin-tabs { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; border-right: 1px solid var(--line); background: #eef1ec; }
.admin-tabs button { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; padding: 10px 10px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.admin-tabs button b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1.5px solid currentColor; flex: none; }
.admin-tabs button:hover { color: var(--ink); }
.admin-tabs button.on { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 1px 0 var(--line); }
.admin-tabs button.on b { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.admin-view { padding: 18px 20px; min-width: 0; }
.v-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 15px; }
.v-head span { color: var(--muted); font-size: 13px; }
.v-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.v-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.v-note b { color: var(--warn); }
.st { font-size: 13px; font-weight: 600; }
.st.ok { color: var(--ink-2); }
.st.warn, .st.bad { color: var(--warn); }

.res { display: flex; flex-direction: column; gap: 8px; }
.res-row { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; }
.res-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.res-side { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 34px); gap: 5px; align-items: center; font-size: 14px; padding: 2px 0; }
.res-side span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-side.win span { font-weight: 700; }
.res-side.win span::after { content: ' ✓'; color: var(--ink-2); }
.res-side input { width: 34px; height: 30px; text-align: center; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-variant-numeric: tabular-nums; background: var(--paper); color: var(--ink); }
.res-side input:focus { outline: 2px solid var(--ball); border-color: var(--ink-2); }

/* Web pública dentro del celular */
.phone.small .phone-frame { width: 280px; height: 560px; }
.pub { width: 100%; height: 100%; border-radius: 33px; background: #f7f8f6; overflow-y: auto; font-size: 12.5px; color: var(--ink); scrollbar-width: none; }
.pub::-webkit-scrollbar { display: none; }
.p-top { background: var(--pt-main, var(--ink)); color: #fff; transition: background .4s; padding: 30px 16px 12px; display: flex; justify-content: space-between; align-items: center; }
.p-brand { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.p-live { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--pt-accent, var(--ball)); font-weight: 600; }
.p-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--pt-accent, var(--ball)); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.p-cat { background: var(--pt-main, var(--ink)); color: rgba(255,255,255,.72); transition: background .4s; padding: 0 16px 12px; font-size: 12px; }
.p-tabs { display: flex; gap: 4px; padding: 10px 10px 0; position: sticky; top: 0; background: #f7f8f6; z-index: 1; }
.p-tabs button { flex: 1; border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); padding: 7px 0; border-bottom: 2px solid transparent; cursor: pointer; }
.p-tabs button.on { color: var(--pt-main, var(--ink)); border-bottom-color: var(--pt-main, var(--ink)); }
.p-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.p-zone { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-main, var(--ink-2)); margin: 2px 0 6px; }
.p-card table { width: 100%; border-collapse: collapse; }
.p-card th { font-size: 10.5px; color: var(--muted); font-weight: 600; text-align: left; padding: 3px 4px; }
.p-card td { padding: 5px 4px; border-top: 1px solid #edf0ec; white-space: nowrap; }
.p-card th:nth-child(n+3), .p-card td:nth-child(n+3) { text-align: center; width: 30px; }
.p-card tr.q td:first-child { box-shadow: inset 3px 0 0 var(--pt-accent, var(--ball)); }
.p-ms, .p-prog { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.p-ms li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; background: #f3f5f2; border-radius: 7px; padding: 5px 8px; }
.p-ms li span:last-child { text-align: right; }
.p-ms .w { font-weight: 700; }
.p-ms em, .p-prog em { font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; text-transform: none; background: none; padding: 0; letter-spacing: 0; font-weight: 500; margin: 0; }
.p-prog li { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; padding: 6px 2px; border-top: 1px solid #edf0ec; }
.p-prog li:first-child { border-top: 0; }
.p-prog small { display: block; color: var(--muted); font-size: 10.5px; }
.p-x { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.p-x span { display: block; padding: 6px 8px; }
.p-x span + span { border-top: 1px solid var(--line); }
.p-hint { color: var(--muted); font-size: 11.5px; margin-top: 4px; }

@media (max-width: 920px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-grid .phone { justify-self: center; }
  .ba-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-card { height: 230px; }
}
@media (max-width: 680px) {
  .admin-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .admin-tabs { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; overflow-x: auto; }
  .admin-tabs button { white-space: nowrap; padding: 8px; font-size: 13px; }
  .admin-view { padding: 14px; }
}

/* Web pública: tabla completa y partidos con horario y cancha */
.p-tbl { overflow-x: auto; margin: 0 -10px; padding: 0 10px; scrollbar-width: none; }
.p-tbl::-webkit-scrollbar { display: none; }
.p-tbl table { width: max-content; min-width: 100%; }
.p-card .p-tbl td, .p-card .p-tbl th { padding: 5px 5px; }
.p-card .p-tbl th:nth-child(n+3), .p-card .p-tbl td:nth-child(n+3) { width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.p-card .p-tbl td.pn { white-space: normal; line-height: 1.2; font-weight: 500; min-width: 92px; position: sticky; left: 0; background: #fff; }
.p-card .p-tbl td.pts { font-weight: 700; }
.p-card .p-tbl th:nth-child(2) { min-width: 92px; position: sticky; left: 0; background: #fff; }
.p-card .p-tbl td:first-child, .p-card .p-tbl th:first-child { width: 16px; }
.p-swipe { font-size: 10px; color: var(--muted); margin: 4px 0 2px; text-align: right; }
.p-zone.sub { margin-top: 10px; }
.pm { border: 1px solid #e6eae4; border-radius: 9px; padding: 6px 8px; margin-top: 6px; background: #fbfcfa; }
.pm-meta { display: flex; gap: 6px; align-items: center; font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.pm-meta span:first-child { font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.pm-meta i { margin-left: auto; font-style: normal; font-weight: 700; font-size: 9.5px; padding: 1px 6px; border-radius: 999px; }
.pm-meta i.fin { background: #e3eae0; color: var(--ink-2); }
.pm-meta i.live { background: var(--pt-accent, var(--ball)); color: var(--pt-on-accent, var(--ink)); }
.pm-line { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 18px); gap: 2px; align-items: center; padding: 2px 0; font-size: 12px; }
.pm-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-line b { text-align: center; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.pm-line.w span, .pm-line.w b { font-weight: 700; color: var(--ink); }

/* Inscripciones (paso 1 de la demo) */
.insc-axis, .insc-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.insc-axis { grid-template-columns: 0 repeat(5, minmax(0, 1fr)); margin-left: auto; width: 46%; font-size: 10.5px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.insc-zone { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
.insc-row { display: grid; grid-template-columns: minmax(0, 1fr) 46%; grid-template-areas: "who bar" "when bar"; gap: 2px 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 6px; }
.insc-who { grid-area: who; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.insc-ok { font-size: 10.5px; color: var(--ink-2); font-weight: 600; }
.insc-when { grid-area: when; font-size: 12.5px; color: var(--muted); }
.insc-when select { font: inherit; font-size: 12.5px; color: var(--ink); font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 1px 2px; background: var(--paper); cursor: pointer; }
.insc-bar { grid-area: bar; }
.insc-bar i { height: 22px; border-radius: 5px; background: #eef1ec; border: 1px dashed #cfd7ce; transition: background .2s; }
.insc-bar i.on { background: var(--ink-2); border: 0; }
@media (max-width: 680px) {
  .insc-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "when" "bar"; }
  .insc-axis { width: 100%; }
}

/* Tarjeta ancha: patrocinadores */
.fc.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.fc.wide .fc-vis { height: auto; min-height: 170px; }
.fc.wide .fc-txt { align-self: center; padding: 24px 28px; }
.vx-spon { background: #fff; border-radius: 12px; padding: 12px 14px; width: 250px; box-shadow: 0 8px 20px -14px rgba(0,0,0,.4); }
.vx-spon-top { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; display: flex; flex-direction: column; }
.vx-spon-top small { font-weight: 500; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.vx-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.vx-logos span { height: 34px; display: grid; place-items: center; text-align: center; border-radius: 6px; background: #eef1ec; font-size: 8.5px !important; font-weight: 800; letter-spacing: .04em; color: var(--ink-2); line-height: 1.1; padding: 0 4px; }
.vx-logos span:first-child { background: var(--ink); color: var(--ball); }
@media (max-width: 920px) { .fc.wide { grid-template-columns: minmax(0, 1fr); } }
.pm-meta { flex-wrap: wrap; row-gap: 2px; }
.pm-meta span, .pm-meta i { white-space: nowrap; }

/* Acompañamiento */
.sup { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 44px; }
.sup h2 { font-size: clamp(30px, 4.2vw, 44px); max-width: 16ch; margin-bottom: 12px; }
.sup-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
.sup-list li { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 3px solid var(--ball); }
.sup-list span { color: var(--muted); font-size: 14.5px; }
.sup-chat { background: #e5ebe3; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sup-chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sup-chat-top div { display: flex; flex-direction: column; line-height: 1.2; }
.sup-chat-top small { color: #3f9a4f; font-size: 12px; }
.sup-av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; }
.msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; line-height: 1.4; box-shadow: 0 4px 10px -8px rgba(0,0,0,.35); }
.msg.in { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: var(--ink); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
@media (max-width: 920px) { .sup { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; } }
@media (max-width: 600px) { .sup-list { grid-template-columns: minmax(0, 1fr); } }

/* Personalización: colores y nombre del torneo */
.brand-sec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.brand-sec .sec-head { margin-bottom: 22px; }
.presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.preset { display: flex; align-items: center; gap: 12px; text-align: left; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s, transform .15s; }
.preset:hover { transform: translateY(-1px); border-color: #b8c3b6; }
.preset.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27, 58, 49, .12); }
.preset .sw2 { flex: none; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--a) 0 58%, var(--b) 58% 100%); }
.preset b { display: block; font-size: 14.5px; }
.preset small { color: var(--muted); font-size: 12.5px; }
.custom { margin-top: 14px; max-width: 520px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: end; }
.custom label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.custom input[type=text] { font: inherit; font-size: 14.5px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; min-width: 0; }
.custom input[type=color] { width: 54px; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: #fff; cursor: pointer; }
.brand-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14.5px; }
.brand-list li::before { content: '✓ '; color: var(--ink-2); font-weight: 700; }
@media (max-width: 920px) { .brand-sec { grid-template-columns: minmax(0, 1fr); } .brand-sec .phone { justify-self: center; } }
@media (max-width: 600px) { .presets { grid-template-columns: minmax(0, 1fr); } .custom { grid-template-columns: 1fr 1fr; } .custom label:first-child { grid-column: 1 / -1; } }

/* Mini pantallas: jugadores cargan resultados / desarrollos a medida */
.vx-upload { background: #fff; border-radius: 12px; padding: 10px 12px; width: 210px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 8px 20px -14px rgba(0,0,0,.4); }
.vx-up-h { font-weight: 700; font-size: 12.5px; }
.vx-up-s { display: flex; align-items: center; gap: 5px; }
.vx-up-s b { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.vx-up-s span { color: var(--muted); }
.vx-up-row { display: flex; align-items: center; gap: 8px; }
.vx-photo { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #6f9a62, #2b5145); position: relative; }
.vx-photo::after { content: ''; position: absolute; right: 6px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--ball); }
.vx-up-btn { flex: 1; text-align: center; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 5px; font-size: 12px; font-weight: 600; }
.vx-custom { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.vx-custom span { background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px !important; font-weight: 600; box-shadow: 0 6px 14px -10px rgba(0,0,0,.35); }
.vx-custom span:nth-child(2) { margin-left: 22px; }
.vx-custom span:last-child { background: var(--ink); color: var(--ball); margin-left: 8px; }

/* Clubes de ejemplo: tres celulares con logo y colores propios */
.brand-sec { display: block; }
.brand-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; justify-items: center; margin-top: 8px; }
.phone.mini .phone-frame { width: 250px; height: 500px; }
.phone.mini figcaption { font-weight: 600; color: var(--ink); }
.p-hero { flex-direction: column; justify-content: center; gap: 6px; padding: 28px 12px 14px; text-align: center; }
.p-logo svg { width: 56px; height: 56px; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.p-club { display: flex; flex-direction: column; line-height: 1.05; }
.p-club b { font-size: 15px; letter-spacing: .06em; }
.p-club small { font-size: 9.5px; letter-spacing: .2em; color: var(--pt-accent, var(--ball)); font-weight: 700; }
.p-tname { margin-top: 4px; background: var(--pt-accent, var(--ball)); color: var(--pt-on-accent, var(--ink)); font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.brand-list { justify-content: center; margin-top: 26px; }
@media (max-width: 920px) {
  .brand-phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; padding-bottom: 8px; }
  .brand-phones .phone { scroll-snap-align: center; flex: none; }
}
.msg.vid { background: var(--ball); color: var(--ink); font-weight: 600; font-size: 13px; }
