/* ============ Disponibilidad y precios · v3 moderno ============ */
:root {
  --bg: #f5f7fb;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e8edf5;
  --card: #ffffff;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --brand-soft: #eef2ff;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 120%);
  --ok-bg: #dcfce7; --ok-ink: #15803d; --ok-dot: #22c55e;
  --mid-bg: #fef3c7; --mid-ink: #b45309; --mid-dot: #f59e0b;
  --bad-bg: #fee2e2; --bad-ink: #b91c1c; --bad-dot: #ef4444;
  --gold-bg: linear-gradient(135deg, #fde68a, #fbbf24);
  --gold-ink: #78350f;
  --r: 22px;
  --sh-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px -6px rgba(15, 23, 42, .08);
  --sh-md: 0 2px 6px rgba(15, 23, 42, .04), 0 20px 40px -20px rgba(79, 70, 229, .25);
  --sh-lg: 0 30px 70px -30px rgba(79, 70, 229, .55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  position: relative;
}
/* manchas de color difuminadas de fondo */
body::before, body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}
body::before { width: 520px; height: 520px; top: -160px; right: -120px; background: #c7d2fe; }
body::after { width: 460px; height: 460px; bottom: -180px; left: -140px; background: #a5f3fc; }
.barra, .pagina, #puerta { position: relative; z-index: 1; }
a { color: var(--brand); }

/* ---------- Barra superior de cristal ---------- */
.barra {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px max(20px, calc((100% - 1280px) / 2 + 20px));
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.barra h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.barra h1::before {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad);
  box-shadow: 0 10px 22px -8px rgba(79, 70, 229, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
  flex: none;
}
.barra p { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-2); }
.barra a { color: var(--brand); font-weight: 700; }
a.enlace-ver, .barra a.enlace-ver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 24px -10px rgba(79, 70, 229, .8);
  transition: transform .2s, box-shadow .2s;
}
a.enlace-ver::after { content: "↗"; font-weight: 700; }
a.enlace-ver:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -10px rgba(79, 70, 229, .9); }
.barra .boton-sec { margin-left: 0 !important; padding: 10px 18px; font-size: 15px; border-radius: 999px; background: #fff; }

/* ---------- Página y tarjetas ---------- */
.pagina { padding: 32px 20px 72px; max-width: 1280px; margin: 0 auto; counter-reset: sec; }
.tarjeta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 28px 28px;
  margin: 0 0 24px;
  box-shadow: var(--sh-sm);
  animation: sube .6s cubic-bezier(.2, .8, .2, 1) both;
}
.tarjeta:nth-child(2) { animation-delay: .06s; }
.tarjeta:nth-child(3) { animation-delay: .12s; }
.tarjeta:nth-child(4) { animation-delay: .18s; }
.tarjeta:nth-child(5) { animation-delay: .24s; }
@keyframes sube { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

h2 {
  counter-increment: sec;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
}
h2::before {
  content: counter(sec);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
}
#vista-rapida h2::before { content: "⚡"; background: #fef3c7; font-size: 16px; }
#extras-h2::before, details h2::before { content: "＋"; }
.ayuda { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
.fila { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Botones ---------- */
.boton, .boton-sec, .archivo label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
}
.boton {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(79, 70, 229, .85);
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -10px rgba(79, 70, 229, .95); }
.boton:active, .boton-sec:active { transform: scale(.97); }
.boton:disabled { opacity: .6; cursor: wait; }
.boton-sec {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--sh-sm);
}
.boton-sec:hover { border-color: #c7d2fe; background: var(--brand-soft); color: var(--brand); transform: translateY(-1px); }
.boton-sec.activa { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 12px 24px -12px rgba(15, 23, 42, .7); }
.boton-rojo {
  background: #fff;
  color: var(--bad-ink);
  border: 1.5px solid #fecaca;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.boton-rojo:hover { background: #fef2f2; }
.boton-foco {
  background: #fff;
  color: var(--gold-ink);
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.boton-foco::before { content: "★ "; color: #f59e0b; }
.boton-foco:hover { background: #fffbeb; }
.boton-foco.activa { background: var(--gold-bg); border-color: #f59e0b; box-shadow: 0 10px 22px -10px rgba(245, 158, 11, .9); }

/* ---------- Avisos ---------- */
.aviso {
  background: var(--brand-soft);
  color: #3730a3;
  border-radius: 14px;
  padding: 12px 16px 12px 44px;
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
  position: relative;
}
.aviso::before { content: "ℹ"; position: absolute; left: 16px; top: 11px; font-weight: 800; }
.aviso.bien { background: #ecfdf5; color: #047857; }
.aviso.bien::before { content: "✓"; }
.aviso.mal { background: #fef2f2; color: #b91c1c; }
.aviso.mal::before { content: "!"; }
.pagina > .aviso { margin: 0 0 24px; box-shadow: var(--sh-sm); }

/* ---------- Leyenda ---------- */
.leyenda { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 2px; }
.pastilla {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 5px 13px 5px 10px;
  font-weight: 700;
  font-size: 13px;
  background: #f1f5f9 !important;
  color: var(--ink-2) !important;
}
.pastilla::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.pastilla.sobra::before { background: var(--ok-dot); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.pastilla.poco::before { background: var(--mid-dot); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.pastilla.no::before { background: var(--bad-dot); box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.pastilla.foco::before { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .3); }

/* ---------- Colores de estado (mapa de calor suave) ---------- */
.sobra { background: var(--ok-bg); color: var(--ok-ink); }
.poco { background: var(--mid-bg); color: var(--mid-ink); }
.no { background: var(--bad-bg); color: var(--bad-ink); }
.vacio { background: #f1f5f9; color: var(--ink-3); }

/* ---------- Tabla ---------- */
.scroll { overflow-x: auto; margin: 14px -8px 0; padding: 0 8px 8px; }
table.cuadro { border-collapse: separate; border-spacing: 0 6px; min-width: 100%; }
table.cuadro th {
  background: transparent;
  color: var(--ink-3);
  padding: 4px 6px 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  white-space: nowrap;
  vertical-align: bottom;
}
table.cuadro td {
  text-align: center;
  font-weight: 800;
  font-size: 19px;
  padding: 12px 6px;
  min-width: 70px;
  border-radius: 12px;
  border: 3px solid var(--card);
  background-clip: padding-box;
  transition: transform .15s, box-shadow .15s;
}
table.cuadro tbody tr:hover td:not(.nombre):not(.cods) { transform: scale(1.06); box-shadow: 0 8px 18px -8px rgba(15, 23, 42, .3); position: relative; z-index: 1; }
table.cuadro td.nombre, table.cuadro th.nombre {
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  background: var(--card);
  color: var(--ink);
  min-width: 170px;
  position: sticky;
  left: 0;
  z-index: 2;
  border-radius: 12px 0 0 12px;
  text-transform: none;
  letter-spacing: 0;
}
table.cuadro th.nombre { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
table.cuadro td.cods {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  background: #f8fafc;
  color: var(--ink-2);
  min-width: 140px;
}
table.cuadro tr.total td { background: var(--ink); color: #fff; font-size: 17px; }
table.cuadro tr.total td.nombre { background: var(--ink); color: #fff; }
table.cuadro input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); cursor: pointer; }
label.check { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
table.cuadro tr[data-cat] { cursor: pointer; }

/* ---------- Formularios ---------- */
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
label.campo, p.campo { display: block; font-size: 12px; font-weight: 800; color: var(--ink-3); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .08em; }
input[type="text"], input[type="number"], input[type="password"], textarea, select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .14);
}
textarea { min-height: 96px; resize: vertical; }
input.corto { width: 110px; }
.check-linea { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); cursor: pointer; font-size: 15px; }
.check-linea input, .extra-linea input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); }
.extra-linea { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.barra-herramientas {
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.barra-herramientas .campo { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); font-weight: 700; }

/* ---------- Zona de pegar ---------- */
.zona-pega {
  position: relative;
  border: 2px dashed #c7d2fe;
  background:
    radial-gradient(420px 180px at 50% -20%, rgba(79, 70, 229, .12), transparent 70%),
    radial-gradient(300px 160px at 100% 100%, rgba(6, 182, 212, .12), transparent 70%),
    #fafbff;
  border-radius: 24px;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  margin: 0 0 18px;
  padding: 26px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.zona-pega:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-md); }
.zona-pega:focus { outline: none; border-style: solid; border-color: var(--brand); box-shadow: 0 0 0 5px rgba(79, 70, 229, .14); }
.zona-pega strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}
.zona-pega strong::before {
  content: "📋";
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--sh-md);
  font-size: 30px;
}
.zona-pega span {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 800;
  background: #fff;
  border: 1.5px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 8px;
  padding: 2px 12px;
}

/* ---------- Precios ---------- */
.cat-precio {
  background: #fafbfe;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin: 0 0 16px;
  transition: box-shadow .2s, border-color .2s;
}
.cat-precio:hover { box-shadow: var(--sh-md); border-color: #dfe5ff; }
.cat-precio.foco-caja { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb, #fffdf5); }
.tramo { display: grid; grid-template-columns: 1.6fr .7fr .7fr 1fr auto; gap: 8px; align-items: end; margin: 8px 0; }
.dia-precio {
  display: grid;
  grid-template-columns: 100px minmax(120px, 220px) auto;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
}
.dia-etiq { font-weight: 800; color: var(--brand); font-size: 16px; }
.rotulo-oro {
  display: inline-flex;
  background: var(--gold-bg);
  color: var(--gold-ink);
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 14px;
  margin: 10px 0;
  font-size: 14px;
}
.marca-ejemplo { font-size: 13px; font-weight: 700; color: #7a5b00; background: #fff4cc; border-radius: 6px; padding: 2px 6px; }
details.mas summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  font-size: 18px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
details.mas summary::-webkit-details-marker { display: none; }
details.mas summary::before { content: "＋"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 17px; }
details.mas[open] summary::before { content: "－"; }
details.mas[open] summary { margin-bottom: 18px; }
details.mas h2::before { content: "＋"; }

/* ---------- Resultado ---------- */
.resultado { border-radius: 24px; padding: 26px; font-size: 18px; margin-top: 18px; }
.resultado.ok {
  background:
    radial-gradient(420px 220px at 100% 0, rgba(255, 255, 255, .25), transparent 70%),
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #0891b2 130%);
  color: #fff;
  box-shadow: var(--sh-lg);
}
.resultado.mal { background: linear-gradient(135deg, #fef2f2, #fee2e2); border: 1px solid #fecaca; }
.resultado h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: var(--bad-ink); }
.nombre-res { margin: 0 0 8px; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.resultado:not(.ok):not(.mal) .nombre-res { color: var(--ink); }
.precio-enorme {
  margin: 6px 0 0;
  font-size: clamp(52px, 10vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
}
.desglose { margin: 14px 0 0; font-size: 15px; font-weight: 600; opacity: .9; }
.motivo-corto { margin: 0; font-size: 24px; font-weight: 800; color: var(--bad-ink); }
.resultado.ok .rotulo-oro { margin-top: 0; }
.dias-mini { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.dias-mini span { min-width: 76px; text-align: center; border-radius: 14px; padding: 8px 8px 10px; font-weight: 800; font-size: 20px; }
.dias-mini small { display: block; font-weight: 700; font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.dias-mini span.impide { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- Selectores ---------- */
.malla-cats, .malla-extras { display: flex; flex-wrap: wrap; gap: 10px; }
.malla-dias, .malla-num { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.opciones { display: flex; gap: 6px; flex-wrap: wrap; background: #f1f5f9; padding: 5px; border-radius: 16px; width: fit-content; max-width: 100%; }
.opciones button { flex: 1; min-width: 140px; border: 0; box-shadow: none; background: transparent; }
.opciones button.activa, .opciones button.boton-sec.activa { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.tarj-cat, .tarj-extra, .chip-dia, .chip-num {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 16px;
  font-family: inherit;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.tarj-cat:hover, .tarj-extra:hover, .chip-dia:hover, .chip-num:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: var(--sh-md);
}
.tarj-cat, .tarj-extra { padding: 14px 18px; min-width: 150px; text-align: left; }
.tarj-cat b, .tarj-extra b { display: block; font-size: 16px; }
.tarj-cat small, .tarj-extra small { display: block; font-weight: 600; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.tarj-cat.elegida, .chip-dia.activo, .chip-num.activo, .tarj-extra.activo {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 30px -14px rgba(79, 70, 229, .9);
}
.tarj-cat.elegida small, .tarj-extra.activo small { color: rgba(255, 255, 255, .8); }
.tarj-cat.foco, .tarj-cat.foco.elegida { background: var(--gold-bg); color: var(--gold-ink); border-color: #f59e0b; }
.tarj-cat.foco small { color: #92400e; }
.chip-dia, .chip-num { min-width: 78px; min-height: 60px; padding: 8px 12px; font-size: 16px; }
.chip-num { min-width: 52px; min-height: 52px; border-radius: 50%; }

/* ---------- Filas destacadas ---------- */
table.cuadro tr.foco td:not(.nombre),
table.cuadro td.foco,
.dias-mini span.foco,
select.foco-input {
  background: var(--gold-bg) !important;
  color: var(--gold-ink) !important;
}
table.cuadro tr.foco td.nombre { box-shadow: inset 4px 0 0 #f59e0b; }
table.cuadro tr.elegida td.nombre { box-shadow: inset 4px 0 0 var(--brand); background: var(--brand-soft); }
.panel-clic .resultado { margin-top: 20px; }

/* ---------- Puerta de clave ---------- */
#puerta {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.puerta-caja {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(20px);
  border: 1px solid #fff;
  width: min(430px, 100%);
  border-radius: 32px;
  padding: 38px 32px 32px;
  box-shadow: var(--sh-lg);
  animation: sube .7s cubic-bezier(.2, .8, .2, 1) both;
}
.puerta-caja h1 { margin: 0 0 24px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.puerta-caja h1::before {
  content: "🔑";
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-size: 28px;
  background: var(--grad);
  box-shadow: 0 16px 30px -10px rgba(79, 70, 229, .8);
}
.puerta-caja .boton { width: 100%; padding: 14px; font-size: 16px; }
#puerta[hidden], #app[hidden] { display: none !important; }

/* ---------- Detalles ---------- */
::selection { background: rgba(79, 70, 229, .22); }
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 800px) {
  .barra { padding: 12px 14px; }
  .pagina { padding: 20px 12px 56px; }
  .tarjeta { padding: 20px 16px 22px; border-radius: 20px; }
  .tramo, .dia-precio { grid-template-columns: 1fr 1fr; }
  .zona-pega strong { font-size: 22px; }
  table.cuadro td { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============ v4 · Distribución en columnas ============ */
.sec-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; }
.sec-cab h2 { margin: 0; }
.segmento { display: inline-flex; gap: 4px; background: #f1f5f9; padding: 4px; border-radius: 14px; }
.segmento .boton-sec { border: 0; box-shadow: none; background: transparent; padding: 8px 16px; border-radius: 10px; font-size: 14px; }
.segmento .boton-sec:hover { background: #fff; transform: none; box-shadow: var(--sh-sm); }

/* Cargar la semana: zona de pegar + acciones a un lado */
.subir { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 20px; align-items: stretch; }
.subir .zona-pega { margin: 0; min-height: 220px; }
.subir-acciones { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.subir-acciones .boton, .subir-acciones .boton-sec { width: 100%; justify-content: center; }
.boton-grande { padding: 16px 24px; font-size: 17px; border-radius: 16px; }

/* Dos columnas: contenido principal + lateral fijo */
.dos-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.dos-col.inverso { grid-template-columns: minmax(0, 1fr) 400px; }
.dos-col > .tarjeta { margin: 0; }
.lateral { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 90px; }
.lateral .tarjeta { margin: 0; }
.lateral > .resultado { margin: 0; }
.lateral > .boton-grande { width: 100%; }
.lateral > .aviso { margin: 0; }
.rejilla-1 { grid-template-columns: 1fr; gap: 14px; }
.sub-h2 { margin: 22px 0 12px; font-size: 18px; }
.sub-h2::before { content: "＋"; width: 28px; height: 28px; font-size: 15px; }
#bloque-seguro input { max-width: 100%; }
#bloque-seguro .opciones { width: 100%; }

/* Precios: categorías en rejilla de tarjetas */
#precios { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 18px; }
#precios .cat-precio { margin: 0; }
#precios .cat-precio .fila { align-items: flex-end; }
#precios .dia-precio { grid-template-columns: 90px 1fr auto; }

/* Vista /ver: bloques con etiqueta */
.bloque { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px dashed var(--line); }
.bloque:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.etiqueta { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.bloque .malla-dias, .bloque .malla-num { margin-top: 0; }
.panel-clic { padding-bottom: 28px; }
#bloque-extras:has(#extras:empty) { display: none; }
.lateral .resultado { min-height: 180px; }
.lateral .resultado .dias-mini span { min-width: 64px; font-size: 18px; }

/* Páginas con barra: el contenido empieza bien separado */
.pagina { padding-top: 28px; }

@media (max-width: 1000px) {
  .dos-col, .dos-col.inverso { grid-template-columns: 1fr; }
  .lateral { position: static; }
  .dos-col.inverso .lateral { order: -1; }
  .subir { grid-template-columns: 1fr; }
}
