/* Liquidación — hoja de estilos única, sin frameworks ni compilación.
   Pensada primero para el móvil: el guía apunta los gastos de pie, en la
   puerta de un museo, con una mano. Nada de `gap` en flex (los Chrome de
   Android anteriores al 84 no lo entienden): rejillas o márgenes. */

:root {
  /* Los de la marca: el violeta y el azul del degradado del logo y el azul
     marino de «solucitron». */
  --primary: #5b3df5;
  --primary-dark: #4527d6;
  --primary-soft: #efebfe;
  --azul: #207bf8;
  --cian: #02b6f1;
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --ink: #000752;

  --bg: #f4f5fb;
  --surface: #ffffff;
  --surface-2: #f8f8fd;
  --border: #e1e3f0;
  --border-strong: #c9cce0;

  --text: #161a3a;
  --muted: #5d6283;
  --faint: #9a9eb8;

  --green: #15803d; --green-soft: #e8f7ee;
  --amber: #b45309; --amber-soft: #fdf3e3;
  --red: #c62828;   --red-soft: #fdecec;
  --blue: #1d4ed8;  --blue-soft: #eaf1fe;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 7, 82, .06);
  --shadow: 0 6px 18px rgba(0, 7, 82, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a, button, label, summary, .btn { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17.5px; }
h3 { font-size: 15.5px; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

.ico { width: 18px; height: 18px; flex: 0 0 18px; vertical-align: -3.5px; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.strong { font-weight: 700; } .right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; } .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rojo { color: var(--red); } .verde { color: var(--green); } .ambar { color: var(--amber); }
.mt0 { margin-top: 0; } .mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 26px; }
.mb0 { margin-bottom: 0; } .mb1 { margin-bottom: 8px; } .mb2 { margin-bottom: 16px; }
.hidden { display: none !important; }
.grow { flex: 1 1 auto; min-width: 0; }

/* Filas flexibles sin gap: cada hijo lleva su margen. */
.fila { display: flex; flex-wrap: wrap; align-items: center; margin: -4px; }
.fila > * { margin: 4px; }
.fila-entre { display: flex; align-items: center; justify-content: space-between; }
.fila-entre > * + * { margin-left: 10px; }
.rejilla-2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; }
.rejilla-3 { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 12px; }
.rejilla-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-gap: 12px; }
.principal-lateral { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-gap: 12px; align-items: start; }
.principal-lateral > * { min-width: 0; }
@media (max-width: 640px) {
  .rejilla-2, .rejilla-3 { grid-template-columns: 1fr; }
  .rejilla-2.siempre { grid-template-columns: 1fr 1fr; }
  .principal-lateral { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- armazón */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); color: var(--text);
  border-bottom: 1px solid var(--border);
}
.cabecera .dentro {
  max-width: 1040px; margin: 0 auto; padding: 0 14px; height: 54px;
  display: flex; align-items: center;
}
.marca { display: flex; align-items: center; }
.marca:hover { text-decoration: none; }
.marca img { height: 36px; width: auto; display: block; }
.nav-escritorio { display: flex; margin-left: 22px; }
.nav-escritorio a {
  color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 7px 11px; border-radius: 8px; margin-right: 2px;
  display: flex; align-items: center;
}
.nav-escritorio a .ico { margin-right: 6px; opacity: .85; }
.nav-escritorio a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-escritorio a.activa { background: var(--primary-soft); color: var(--primary-dark); }
.cabecera .avatar-enlace { margin-left: auto; display: flex; align-items: center; color: var(--muted); }
.cabecera .avatar-enlace:hover { text-decoration: none; color: var(--text); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, #903bfc 0%, var(--azul) 70%, var(--cian) 100%);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12.5px;
}
.cabecera .avatar-enlace .nombre { margin-right: 9px; font-size: 14px; font-weight: 600; }

.contenido { max-width: 1040px; margin: 0 auto; padding: 18px 14px 40px; }
.contenido.estrecho { max-width: 720px; }

.barra-inferior { display: none; }
@media (max-width: 899px) {
  .nav-escritorio, .cabecera .avatar-enlace .nombre { display: none; }
  .contenido { padding-bottom: calc(96px + var(--seguro-abajo)); }
  .barra-inferior {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 4px 4px calc(4px + var(--seguro-abajo));
    box-shadow: 0 -4px 14px rgba(10,40,38,.06);
  }
  .barra-inferior a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: var(--muted); padding: 5px 0 3px; border-radius: 10px;
  }
  .barra-inferior a .ico { width: 22px; height: 22px; margin-bottom: 2px; }
  .barra-inferior a.activa { color: var(--primary); }
  .barra-inferior a:hover { text-decoration: none; }
  .barra-inferior a.mas-grande .circulo {
    width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; margin-top: -22px;
    background: linear-gradient(135deg, #903bfc 0%, var(--azul) 100%);
    box-shadow: 0 6px 16px rgba(91,61,245,.35); border: 3px solid var(--surface);
  }
  .barra-inferior a.mas-grande .ico { width: 26px; height: 26px; margin: 0; }
}

/* ------------------------------------------------------------- piezas */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-titulo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-titulo h2, .card-titulo h3 { margin: 0; }
.card.plana { box-shadow: none; }
.card.resaltada { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.seccion-titulo { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  font-weight: 700; margin: 22px 0 8px; }

.cabeza-pagina { margin-bottom: 14px; }
.cabeza-pagina .migas { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.cabeza-pagina .migas a { color: var(--muted); }
.cabeza-pagina h1 { margin: 0; }
.cabeza-pagina .sub { color: var(--muted); margin-top: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 14.5px; line-height: 1.2;
  padding: 10px 15px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none;
  min-height: 42px;
}
.btn .ico { margin-right: 7px; }
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #e48c06; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-danger { color: var(--red); border-color: #f0c4c4; }
.btn-danger:hover { background: var(--red-soft); }
.btn-block { display: flex; width: 100%; }
.btn-lg { font-size: 16px; padding: 14px 18px; min-height: 52px; border-radius: 12px; }
.btn-sm { font-size: 13px; padding: 6px 10px; min-height: 34px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.botones { display: flex; flex-wrap: wrap; margin: -4px; }
.botones > * { margin: 4px; }

.chip {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700;
  padding: 2px 9px; border-radius: 20px; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border); white-space: nowrap;
}
.chip .ico { width: 14px; height: 14px; margin-right: 4px; }
.chip-ok { background: var(--green-soft); color: var(--green); border-color: #c7e9d3; }
.chip-aviso { background: var(--amber-soft); color: var(--amber); border-color: #f3dcb6; }
.chip-mal { background: var(--red-soft); color: var(--red); border-color: #f3c9c9; }
.chip-info { background: var(--blue-soft); color: var(--blue); border-color: #cfdcfb; }
.chip-ruta { background: var(--primary); color: #fff; border-color: var(--primary); }
.punto-color { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; flex: 0 0 10px; }

.alert { border-radius: 10px; padding: 11px 14px; margin-bottom: 12px; font-size: 14.5px; border: 1px solid; }
.alert-success, .alert-ok { background: var(--green-soft); border-color: #c7e9d3; color: #14532d; }
.alert-error { background: var(--red-soft); border-color: #f3c9c9; color: #7f1d1d; }
.alert-aviso { background: var(--amber-soft); border-color: #f3dcb6; color: #78350f; }
.alert-info { background: var(--blue-soft); border-color: #cfdcfb; color: #1e3a8a; }
.alert a { font-weight: 700; color: inherit; text-decoration: underline; }

/* Cifras */
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); grid-gap: 10px; margin-bottom: 14px; }
.cifra { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; color: var(--text); }
a.cifra:hover { text-decoration: none; border-color: var(--primary); }
.cifra .que { font-size: 12px; color: var(--muted); font-weight: 600; }
.cifra .cuanto { font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cifra .pie { font-size: 12px; color: var(--muted); }
.cifra.destacada { background: var(--ink); border-color: var(--ink); color: #fff; }
.cifra.destacada .que, .cifra.destacada .pie { color: #b9bde6; }

/* Listas de filas tocables */
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { border-top: 1px solid var(--border); }
.lista > li:first-child { border-top: 0; }
.lista .fila-enlace { display: flex; align-items: center; padding: 11px 2px; color: var(--text); }
.lista .fila-enlace:hover { text-decoration: none; background: var(--surface-2); }
.lista .fila-enlace .ico-fin { color: var(--faint); margin-left: 8px; }
.lista .titulo { font-weight: 700; }
.lista .detalle { font-size: 13px; color: var(--muted); }
.lista .importe { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: 10px; text-align: right; }
.lista .importe small { display: block; font-weight: 600; color: var(--muted); font-size: 11.5px; }

/* Tarjeta de viaje */
.viaje-tarjeta { display: block; color: var(--text); border-left: 5px solid var(--primary); }
.viaje-tarjeta:hover { text-decoration: none; border-color: var(--primary); box-shadow: var(--shadow); }
.viaje-tarjeta .fechas { font-size: 13px; color: var(--muted); }
.viaje-tarjeta .nombre { font-weight: 800; font-size: 16px; margin: 2px 0; }

/* Día en marcha (inicio) */
.hoy-card { background: linear-gradient(135deg, #7a3cf8 0%, var(--azul) 75%, #1497f2 100%); color: #fff; border: 0; }
.hoy-card .muted, .hoy-card .small { color: #e3e1fe; }
.hoy-card h2 { color: #fff; }
.hoy-card .btn { border-color: rgba(255,255,255,.35); }
.hoy-card .total-dia { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }

/* Formularios */
.campo { margin-bottom: 13px; }
.campo > label, .etiqueta { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 5px; }
.campo .ayuda { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel],
input[type=search], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16 px: iOS no hace zoom */
  padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); color: var(--text); min-height: 44px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[readonly] { background: var(--surface-2); }
.importe-grande { font-size: 30px !important; font-weight: 800; text-align: center; padding: 12px !important; min-height: 64px !important; }
.check { display: flex; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 9px 0 0; flex: 0 0 20px; }
.opciones { display: grid; grid-gap: 8px; }
.opcion {
  display: flex; align-items: flex-start; border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; background: var(--surface);
}
.opcion input { margin: 3px 10px 0 0; width: 18px; height: 18px; flex: 0 0 18px; }
.opcion.elegida { border-color: var(--primary); background: var(--primary-soft); }
.opcion b { display: block; }
.opcion small { color: var(--muted); }
.segmentos { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--border-strong);
  border-radius: 10px; overflow: hidden; }
.segmentos label { text-align: center; padding: 10px 6px; font-weight: 700; font-size: 13.5px; cursor: pointer;
  border-left: 1px solid var(--border-strong); background: var(--surface); }
.segmentos label:first-child { border-left: 0; }
.segmentos input { position: absolute; opacity: 0; pointer-events: none; }
.segmentos label.elegida { background: var(--primary); color: #fff; }
.atajos { display: flex; flex-wrap: wrap; margin: -3px; }
.atajos button {
  margin: 3px; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 20px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer;
}
.atajos button.elegida { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Foto del tique */
.foto-zona { border: 2px dashed var(--border-strong); border-radius: 12px; padding: 14px; text-align: center; background: var(--surface-2); }
.foto-zona .botones { justify-content: center; }
.foto-zona img.vista { max-height: 260px; border-radius: 8px; box-shadow: var(--shadow-sm); margin: 0 auto 10px; display: block; }
.foto-zona input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.miniatura { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--surface-2);
  border: 1px solid var(--border); flex: 0 0 52px; margin-right: 11px; display: flex; align-items: center;
  justify-content: center; color: var(--faint); }
.miniatura .ico { width: 22px; height: 22px; }

/* Tablas */
.tabla-envuelta { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  font-weight: 700; padding: 8px 8px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.tabla td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tabla tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--border); }
.tabla .num, .tabla th.num { text-align: right; }

/* Hoja de liquidación (pantalla) */
.hoja { font-variant-numeric: tabular-nums; }
.hoja .linea { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.hoja .linea:last-child { border-bottom: 0; }
.hoja .linea span:last-child { font-weight: 700; white-space: nowrap; margin-left: 10px; }
.hoja .linea.total { border-top: 2px solid var(--text); border-bottom: 0; margin-top: 4px; padding-top: 10px; font-size: 17px; font-weight: 800; }
.hoja .linea.saldo { background: var(--primary-soft); border-radius: 8px; padding: 10px 12px; margin-top: 8px; border: 0;
  font-size: 17px; font-weight: 800; color: var(--primary-dark); }
.hoja .linea.saldo.negativo { background: var(--amber-soft); color: var(--amber); }
.hoja .linea .resta { color: var(--muted); }

/* Pestañas de filtro */
.pestanas { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -14px 14px; padding: 0 14px;
  scrollbar-width: none; }
.pestanas::-webkit-scrollbar { display: none; }
.pestanas a { flex: 0 0 auto; padding: 7px 13px; border-radius: 20px; font-weight: 700; font-size: 13.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); margin-right: 6px; }
.pestanas a:hover { text-decoration: none; color: var(--text); }
.pestanas a.activa { background: var(--ink); border-color: var(--ink); color: #fff; }
.pestanas a .n { opacity: .7; margin-left: 4px; }

/* Navegación entre días */
.dias-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dias-nav .btn { min-width: 44px; }
.dias-tira { display: flex; overflow-x: auto; margin: 0 -14px 12px; padding: 2px 14px 6px; scrollbar-width: none; }
.dias-tira::-webkit-scrollbar { display: none; }
.dias-tira a { flex: 0 0 auto; text-align: center; padding: 6px 9px; border-radius: 10px; margin-right: 5px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); min-width: 48px; }
.dias-tira a small { display: block; font-size: 11px; color: var(--muted); }
.dias-tira a b { display: block; font-size: 15px; }
.dias-tira a:hover { text-decoration: none; border-color: var(--primary); }
.dias-tira a.activa { background: var(--primary); border-color: var(--primary); color: #fff; }
.dias-tira a.activa small { color: #e3e1fe; }
.dias-tira a.hoy { box-shadow: inset 0 -3px 0 var(--accent); }

/* Calendario */
.cal-cabeza { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 11.5px; font-weight: 700; color: var(--muted);
  text-align: center; padding-bottom: 4px; }
.cal-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(22px, auto);
  border-top: 1px solid var(--border); min-height: 74px; position: relative; padding-bottom: 6px; }
.cal-dia { grid-row: 1; padding: 4px 4px 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); border-left: 1px solid var(--border); }
.cal-dia:first-child { border-left: 0; }
.cal-dia.fuera { color: var(--faint); background: var(--surface-2); }
.cal-dia.hoy span { background: var(--accent); color: var(--ink); border-radius: 50%; display: inline-flex; width: 22px; height: 22px;
  align-items: center; justify-content: center; }
.cal-barra { display: block; margin: 1px 2px; padding: 2px 6px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; }
.cal-barra:hover { text-decoration: none; filter: brightness(1.08); }
.cal-barra.oferta { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 6px, transparent 6px 12px); opacity: .85; }
.cal-barra.antes { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.cal-barra.despues { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.cal-semana .fondo { grid-row: 1 / span 20; border-left: 1px solid var(--border); }
@media (max-width: 640px) { .cal-barra { font-size: 10.5px; padding: 1px 4px; } .cal-semana { min-height: 62px; } }

/* Entrada, alta y páginas públicas */
.publico { background: var(--bg); min-height: 100vh; }
.publico-cabecera { max-width: 1040px; margin: 0 auto; padding: 16px; display: flex; align-items: center; }
.publico-cabecera .marca img { height: 42px; }
.publico-cabecera nav { margin-left: auto; }
.publico-cabecera nav a { margin-left: 8px; }
.acceso { max-width: 420px; margin: 4vh auto 40px; padding: 0 16px; }
.acceso .card { padding: 22px; }
.acceso h1 { text-align: center; }
.acceso .sub { text-align: center; color: var(--muted); margin-bottom: 18px; }
.pie-publico { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; font-size: 13px; color: var(--muted); text-align: center; }
.pie-publico a { color: var(--muted); margin: 0 6px; display: inline-block; }

.heroe { max-width: 1040px; margin: 0 auto; padding: 26px 16px 10px; display: grid; grid-template-columns: 1.1fr .9fr;
  grid-gap: 28px; align-items: center; }
.heroe h1 { font-size: 38px; line-height: 1.12; letter-spacing: -.025em; color: var(--ink); }
.heroe .lema { font-size: 18px; color: var(--muted); margin-bottom: 20px; }
.heroe .movil { background: var(--ink); border-radius: 30px; padding: 12px; box-shadow: var(--shadow); max-width: 330px; margin: 0 auto; }
.heroe .movil .pantalla { background: var(--bg); border-radius: 20px; padding: 14px; }
@media (max-width: 760px) { .heroe { grid-template-columns: 1fr; } .heroe h1 { font-size: 30px; } }
.ventajas { max-width: 1040px; margin: 10px auto; padding: 0 16px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); grid-gap: 14px; }
.ventaja .icono { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.ventaja .icono .ico { width: 22px; height: 22px; }
.ventaja h3 { margin-bottom: 4px; }
.ventaja p { color: var(--muted); font-size: 14px; margin: 0; }
.precio-grande { font-size: 42px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.precio-grande small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.legal { max-width: 780px; margin: 0 auto; padding: 10px 16px 40px; }
.legal h1 { font-size: 26px; }
.legal h2 { margin-top: 24px; }
.legal .ficha { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.legal .ficha p { margin: 2px 0; }

/* Menú desplegable con <details> */
details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .desplegable { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 230px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
details.menu .desplegable a, details.menu .desplegable button {
  display: flex; align-items: center; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--text);
  font: inherit; font-size: 14.5px; background: none; border: 0; cursor: pointer; }
details.menu .desplegable a .ico, details.menu .desplegable button .ico { margin-right: 9px; color: var(--muted); }
details.menu .desplegable a:hover, details.menu .desplegable button:hover { background: var(--surface-2); text-decoration: none; }

/* Barras del resumen del inicio */
.barra-fila { display: flex; align-items: center; font-size: 13px; padding: 4px 0; }
.barra-nombre { flex: 0 0 38%; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.barra-pista { flex: 1 1 auto; height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.barra { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #903bfc, var(--azul)); }
.barra-valor { flex: 0 0 auto; min-width: 72px; text-align: right; font-weight: 700; padding-left: 8px; }
.meses { display: grid; grid-template-columns: repeat(12, 1fr); grid-gap: 4px; height: 120px; }
.mes { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.mes-barra { display: block; width: 70%; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--azul), #903bfc); }
.mes-n { font-size: 10.5px; font-weight: 700; color: var(--muted); height: 14px; line-height: 14px; }
.mes-nombre { font-size: 10.5px; color: var(--faint); }

.vacio { text-align: center; padding: 26px 14px; color: var(--muted); }
.vacio .ico { width: 36px; height: 36px; color: var(--faint); margin-bottom: 6px; }

.aviso-plan { display: flex; align-items: center; }
.aviso-plan .grow { margin-right: 10px; }

@media print {
  .cabecera, .barra-inferior, .no-imprimir, .btn { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
