:root {
  --bg: #0b0b0d;
  --panel: #16161a;
  --line: #2a2a31;
  --text: #f2f2f4;
  --muted: #a0a0ab;
  --red: #e50914;
  --red-dark: #b20710;
  --ok: #2fbf71;
  --warn: #f0b429;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: #ff5a63; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 16px; }
.topbar { background: #000; border-bottom: 2px solid var(--red); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nav a, .nav button { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; background: transparent; border: 0; font: inherit; cursor: pointer; }
.nav a:hover, .nav button:hover, .nav a.active { background: var(--panel); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 16px 0; }
h1 { font-size: 1.5rem; margin: 8px 0 16px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
p.muted, .muted { color: var(--muted); }

label { display: block; margin: 14px 0 6px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%; padding: 11px 12px; background: #0f0f12; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; font: inherit;
}
input:focus, select:focus { outline: 2px solid var(--red); border-color: transparent; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.check input { width: 18px; height: 18px; }
.check label { margin: 0; font-weight: 400; }

.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 0; background: var(--red); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { background: #1f1f25; }
.btn.danger { background: transparent; border: 1px solid var(--red); color: #ff7a82; }
.btn.small { padding: 6px 10px; font-size: .9rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
form.inline { display: inline; }

.alert { padding: 12px 14px; border-radius: 8px; margin: 12px 0; border: 1px solid; }
.alert.ok { border-color: var(--ok); background: #0f2a1c; }
.alert.err { border-color: var(--red); background: #2a0d10; }
.field-error { color: #ff7a82; font-size: .9rem; margin-top: 4px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .9rem; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line); }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.err { color: #ff7a82; border-color: var(--red); }
.badge.off { color: var(--muted); }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { font-size: 2rem; font-weight: 700; }

.guest { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.guest .box { width: 100%; max-width: 400px; }
.guest .logo { display: block; width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 12px; }
.center { text-align: center; }
.guest .box.wide { max-width: 520px; }
.guest { align-items: start; padding-top: 24px; }
.result h2 { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.code-big { font-size: 2.6rem; font-weight: 800; letter-spacing: .3em; text-align: center; padding: 12px 0 12px .3em; background: #0f0f12; border: 1px dashed var(--red); border-radius: 10px; margin: 12px 0; }
.btn.block { display: block; text-align: center; width: 100%; margin: 8px 0; }
.keybox { background: #0f0f12; border: 1px dashed var(--warn); border-radius: 8px; padding: 12px; font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.filters > * { flex: 1 1 160px; }
.filters .btn { flex: 0 0 auto; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pager a, .pager span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.pager .current { background: var(--red); border-color: var(--red); }

.qr { display: block; background: #fff; padding: 8px; border-radius: 8px; width: 236px; max-width: 100%; margin: 12px 0; }
code.secret { display: block; padding: 10px; background: #0f0f12; border: 1px dashed var(--line); border-radius: 8px; word-break: break-all; }
ul.codes { columns: 2; list-style: none; padding: 12px; margin: 12px 0; background: #0f0f12; border: 1px dashed var(--warn); border-radius: 8px; font-family: ui-monospace, Consolas, monospace; }

/* ===== Pantallas de acceso: cristal sobre fondo con esferas animadas ===== */
.stage-page { background: #050205; min-height: 100vh; overflow-x: hidden; }
.stage {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.35)), var(--bg-pc, url("../img/fondo_pc.jpg")) center / cover no-repeat;
}
@media (max-width: 768px), (orientation: portrait) {
  .stage { background-image: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.3)), var(--bg-cell, url("../img/fondo_cell.gif")); }
}
.spheres { position: fixed; inset: 0; z-index: 1; width: 100vw; height: 100vh; pointer-events: none; }

.guest { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.guest .box { width: 100%; max-width: 400px; }
.guest .box.wide { max-width: 520px; }

/* Agrupa el banner "Centro de ayuda..." (si lo hay) y el formulario como un solo bloque, para que
   .guest los centre juntos igual que antes centraba solo el formulario. */
.guest-stack { display: flex; flex-direction: column; align-items: center; width: 100%; }
.guest-before { width: 100%; max-width: 520px; text-align: center; margin-bottom: 18px; }

/* Cuando la página trae contenido debajo (catálogo/pie de página), no centramos el formulario
   en toda la altura de la pantalla: así queda más cerca de lo que sigue, sin dejar un vacío. */
body.has-after .guest { min-height: 0; align-items: start; padding-top: 28px; padding-bottom: 6px; }

.glass {
  padding: 28px 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(18,12,14,.88); }
}
.glass .logo { display: block; width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 8px; box-shadow: 0 0 24px rgba(229,9,20,.35); }
.glass h1 { text-align: center; text-transform: uppercase; letter-spacing: .14em; font-size: 1.15rem; font-weight: 600; margin: 6px 0 14px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.glass h1.form-title-big { font-size: 2.3rem; letter-spacing: .04em; font-weight: 800; }

/* Título "Consulta tu código" al estilo del banner de ayuda: "Consulta" en blanco, "tu código" en
   rojo, y las letras rojas se "llenan" con una animación al cargar. */
.guest h1.lookup-title {
  text-transform: uppercase; letter-spacing: .03em; font-weight: 800; color: #fff;
  font-size: clamp(1.9rem, 11vw, 2.6rem); line-height: 1.1; margin: 0 0 14px;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
@media (max-width: 480px) {
  .guest h1.lookup-title { font-size: clamp(2.1rem, 13vw, 2.7rem); }
}
.lookup-title-red {
  background: linear-gradient(90deg, #ff3b45 50%, rgba(255,59,69,.2) 50%);
  background-size: 220% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lookup-title-fill 1.1s ease .15s forwards;
}
@keyframes lookup-title-fill { to { background-position: 0 0; } }
@supports not (background-clip: text) {
  .lookup-title-red { color: #ff3b45; background: none; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lookup-title-red { animation: none; background-position: 0 0; }
}
.glass p.muted, .glass .muted { color: rgba(255,255,255,.72); }
.glass label { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.85); }
.glass input[type=text], .glass input[type=email], .glass input[type=password] {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff;
  border-radius: 12px; padding: 12px 14px;
}
.glass input::placeholder { color: rgba(255,255,255,.45); }
.glass input:focus { outline: 2px solid rgba(229,9,20,.85); outline-offset: 1px; background: rgba(255,255,255,.16); }
.glass .btn { border-radius: 999px; padding: 12px 22px; background: linear-gradient(180deg, #f0202b, #b20710); box-shadow: 0 6px 18px rgba(229,9,20,.35); }
.glass .btn:hover { background: linear-gradient(180deg, #ff3540, #c40913); }
.glass .btn.ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); box-shadow: none; }
.glass .btn.ghost:hover { background: rgba(255,255,255,.18); }
.glass .card { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; }
.glass .alert.err { background: rgba(120,8,16,.55); border-color: rgba(255,90,100,.7); }
.glass .field-error { color: #ffb3b8; }
.glass .code-big { background: rgba(0,0,0,.4); border-color: rgba(255,90,100,.8); }

@media (max-width: 400px) {
  .glass { padding: 22px 16px; border-radius: 20px; }
  .glass .logo { width: 80px; height: 80px; }
}
/* ===== Botón rojo: destello al pasar el cursor y botones centrados ===== */
.glass .actions { justify-content: center; }
.glass .btn { position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .25s ease, background .25s ease; }
.glass .btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.65) 50%, transparent 100%);
  transform: skewX(-22deg); pointer-events: none; opacity: 0;
}
.glass .btn:hover, .glass .btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(229,9,20,.6), 0 0 20px rgba(255,90,100,.45);
}
.glass .btn.ghost:hover, .glass .btn.ghost:focus-visible { box-shadow: 0 6px 20px rgba(255,255,255,.12); }
.glass .btn:hover::after, .glass .btn:focus-visible::after { opacity: 1; animation: btn-shine .85s ease-out; }
.glass .btn:active { transform: translateY(0); }
@keyframes btn-shine { from { left: -80%; } to { left: 135%; } }
@media (prefers-reduced-motion: reduce) {
  .glass .btn, .glass .btn:hover { transition: none; transform: none; }
  .glass .btn:hover::after, .glass .btn:focus-visible::after { animation: none; opacity: 0; }
}
/* ===== Panel de administración: fondo oscuro con esferas y cajas de cristal ===== */
.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(229,9,20,.16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(120,6,12,.22), transparent 60%),
    #050205;
  background-attachment: fixed;
}
.admin-page .topbar, .admin-page main.wrap { position: relative; z-index: 2; }
.admin-page .topbar {
  background: rgba(8,4,6,.55);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(229,9,20,.55), 0 8px 24px rgba(0,0,0,.4);
}
.admin-page .nav a:hover, .admin-page .nav button:hover, .admin-page .nav a.active { background: rgba(255,255,255,.1); }

.admin-page .card {
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  box-shadow: 0 10px 34px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .admin-page .card, .admin-page .topbar { background: rgba(18,12,14,.9); }
}
.admin-page th { color: rgba(255,255,255,.7); }
.admin-page th, .admin-page td { border-bottom-color: rgba(255,255,255,.12); }
.admin-page p.muted, .admin-page .muted { color: rgba(255,255,255,.7); }
.admin-page label { color: rgba(255,255,255,.88); font-weight: 500; }
.admin-page input[type=text], .admin-page input[type=email], .admin-page input[type=password],
.admin-page input[type=number], .admin-page input[type=date], .admin-page input[type=file], .admin-page select {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 12px; padding: 11px 13px;
}
.admin-page select option { background: #1a1114; color: #fff; }
.admin-page input:focus, .admin-page select:focus { outline: 2px solid rgba(229,9,20,.85); outline-offset: 1px; background: rgba(255,255,255,.15); }
.admin-page .alert.ok { background: rgba(15,60,35,.55); }
.admin-page .alert.err { background: rgba(120,8,16,.55); }
.admin-page .keybox, .admin-page code.secret, .admin-page ul.codes { background: rgba(0,0,0,.4); }
.admin-page .badge { border-color: rgba(255,255,255,.25); }
.admin-page .pager a, .admin-page .pager span { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.admin-page .pager .current { background: var(--red); border-color: var(--red); }

/* Botones del panel: mismo destello que en el acceso */
.admin-page .btn { border-radius: 999px; position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .25s ease, background .25s ease; }
.admin-page .btn:not(.ghost):not(.danger) { background: linear-gradient(180deg, #f0202b, #b20710); box-shadow: 0 6px 18px rgba(229,9,20,.3); }
.admin-page .btn.ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.admin-page .btn.danger { background: rgba(229,9,20,.08); }
.admin-page .btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);
  transform: skewX(-22deg); pointer-events: none; opacity: 0;
}
.admin-page .btn:hover, .admin-page .btn:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(229,9,20,.5), 0 0 16px rgba(255,90,100,.35); }
.admin-page .btn:hover::after, .admin-page .btn:focus-visible::after { opacity: 1; animation: btn-shine .85s ease-out; }
.admin-page .btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .admin-page .btn, .admin-page .btn:hover { transition: none; transform: none; }
  .admin-page .btn:hover::after, .admin-page .btn:focus-visible::after { animation: none; opacity: 0; }
}
/* ===== Panel: íconos, tarjetas de datos y gráficos SVG ===== */
.icon { flex: none; vertical-align: -4px; }
.admin-page .nav a, .admin-page .nav button { display: inline-flex; align-items: center; gap: 7px; }
.admin-page .nav .icon { color: #ff5a63; }
.admin-page h2 { display: flex; align-items: center; gap: 8px; }
.admin-page h2 .icon { color: #ff5a63; }

.grid.stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid.stats .card { margin: 0; }
.stat-card { display: flex; align-items: center; gap: 14px; }
.stat-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; flex: none;
  color: #ff6b73; background: radial-gradient(circle at 30% 25%, rgba(255,90,100,.35), rgba(229,9,20,.12));
  border: 1px solid rgba(255,90,100,.4); box-shadow: 0 0 22px rgba(229,9,20,.28);
}
.stat-icon.ok { color: #46d68a; background: radial-gradient(circle at 30% 25%, rgba(70,214,138,.3), rgba(47,191,113,.1)); border-color: rgba(70,214,138,.45); box-shadow: 0 0 22px rgba(47,191,113,.25); }
.stat-icon.warn { color: #f0b429; background: radial-gradient(circle at 30% 25%, rgba(240,180,41,.3), rgba(240,180,41,.1)); border-color: rgba(240,180,41,.45); box-shadow: 0 0 22px rgba(240,180,41,.22); }
.stat { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat-text { font-size: 1.35rem; }
.stat-sub { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.6); }

.grid.charts { margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.charts .card { margin: 0; min-width: 0; }
.chart { display: block; width: 100%; height: auto; }
.chart .axis { stroke: rgba(255,255,255,.2); stroke-width: 1; }
.bar-ok { fill: #e50914; background: #e50914; }
.bar-other { fill: rgba(255,255,255,.3); background: rgba(255,255,255,.3); }
.chart .bar-ok { filter: drop-shadow(0 0 6px rgba(229,9,20,.55)); }
.t-label { fill: rgba(255,255,255,.8); font-size: 15px; }
.t-val { fill: #fff; font-size: 16px; font-weight: 700; }
.hbar-bg { fill: rgba(255,255,255,.1); }
.hbar-sold { fill: #2fbf71; }
.hbar-available { fill: #e50914; }
.hbar-disabled { fill: rgba(255,255,255,.4); }

.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: .88rem; color: rgba(255,255,255,.8); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center; }
.donut { width: 170px; height: 170px; flex: none; }
.donut-ring { stroke: rgba(255,255,255,.1); }
.seg { stroke-linecap: butt; }
.seg-ok { stroke: #2fbf71; } .seg-no_mail { stroke: #f0b429; } .seg-bad_credentials { stroke: #e50914; }
.seg-inactive { stroke: rgba(255,255,255,.5); } .seg-error { stroke: #a855f7; } .seg-throttled { stroke: #ff8a3d; }
.seg-bg-ok { background: #2fbf71; } .seg-bg-no_mail { background: #f0b429; } .seg-bg-bad_credentials { background: #e50914; }
.seg-bg-inactive { background: rgba(255,255,255,.5); } .seg-bg-error { background: #a855f7; } .seg-bg-throttled { background: #ff8a3d; }
.donut-num { fill: #fff; font-size: 7px; font-weight: 800; }
.donut-cap { fill: rgba(255,255,255,.65); font-size: 3px; }
.legend-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.legend-list li { margin: 5px 0; }

.row-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.row-item:last-child { border-bottom: 0; }
/* Listas cortas del inicio (vencimientos, buzones): si hay muchas filas, la propia tarjeta se desplaza
   en vez de estirar la página entera. */
.row-list { max-height: 360px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(229,9,20,.75) rgba(255,255,255,.08); }
.row-list .row-item:last-child { border-bottom: 0; }
/* ===== Botones alineados, acciones por fila y selección masiva ===== */
/* Todos los botones llevan borde (transparente en los sólidos): así miden lo mismo y no quedan chuecos. */
.btn { border: 1px solid transparent; line-height: 1.25; text-align: center; white-space: nowrap; vertical-align: middle; font-family: inherit; }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn.danger { border-color: var(--red); }
.btn.ghost { border-color: rgba(255,255,255,.25); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions form { margin: 0; display: block; }
.actions.left { justify-content: flex-start; }
.nowrap { white-space: nowrap; }
td { word-break: break-word; }

.col-check { width: 44px; text-align: center; }
input[type=checkbox] { accent-color: #e50914; width: 18px; height: 18px; cursor: pointer; }
.admin-page tr.selected td { background: rgba(229,9,20,.14); }
.admin-page tbody tr:hover td { background: rgba(255,255,255,.05); }
.admin-page tbody tr.selected:hover td { background: rgba(229,9,20,.2); }

.bulk-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 4px 0 14px; }
.bulk-bar select { flex: 1 1 220px; max-width: 360px; }
.bulk-count { font-size: .92rem; color: rgba(255,255,255,.7); min-width: 120px; }
.bulk-count.active { color: #fff; font-weight: 700; }
.bulk-select-all-link { font-size: .88rem; color: #ff7a82; text-decoration: underline; }
.bulk-select-all-link:hover, .bulk-select-all-link:focus-visible { color: #fff; }
.bulk-bar.all-selected { outline: 1px dashed rgba(229,9,20,.5); border-radius: 10px; padding-left: 10px; padding-right: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.filters-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: end; }
.filters-row .filters { flex: 1 1 260px; }

.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-key { display: inline-block; padding: 4px 10px; }
/* ===== Una sola fila de botones; si no cabe, la tabla se desplaza ===== */
.row-actions { flex-wrap: nowrap; }
.row-actions .btn, .row-actions form { flex: none; }
td:last-child:has(.row-actions) { white-space: nowrap; width: 1%; }
.actions.left { flex-wrap: nowrap; overflow-x: auto; }
.actions.left .btn { flex: none; }

.table-wrap {
  overflow: auto;                      /* horizontal y vertical solo cuando hace falta */
  max-height: min(68vh, 640px);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(229,9,20,.75) rgba(255,255,255,.08);
}
.table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.table-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 999px; }
.table-wrap::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #f0202b, #8f0610); border-radius: 999px; border: 2px solid rgba(0,0,0,.35); }
.table-wrap::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff3540, #b20710); }
.table-wrap::-webkit-scrollbar-corner { background: transparent; }

/* Encabezado fijo al desplazar verticalmente, con el mismo cristal oscuro */
.admin-page .table-wrap thead th {
  position: sticky; top: 0; z-index: 3;
  background: rgba(20,12,15,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.14);
}
.table-wrap table { min-width: 640px; }

/* Barra masiva: contador arriba y selector + Aplicar siempre juntos en una fila */
@media (max-width: 560px) {
  .bulk-bar { flex-wrap: wrap; }
  .bulk-count { flex: 1 1 100%; min-width: 0; }
  .bulk-bar select { flex: 1 1 0; min-width: 0; max-width: none; }
  .bulk-bar .btn { flex: none; }
}
/* Las celdas no se parten a mitad de palabra: si no caben, la tabla se desplaza. */
.table-wrap td { word-break: normal; overflow-wrap: normal; }
.table-wrap th { white-space: nowrap; }
.badge { white-space: nowrap; }
.table-wrap td .muted { white-space: nowrap; }
/* ===== Paginación centrada (componente admin.partials.pager) y centrado general ===== */
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; width: 100%; }
.pager a, .pager span { display: inline-block; padding: 7px 14px; border-radius: 999px; text-align: center; }
.pager a { text-decoration: none; color: var(--text); border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); transition: background .2s, box-shadow .2s, transform .15s; }
.pager a:hover { background: rgba(255,255,255,.16); box-shadow: 0 0 16px rgba(229,9,20,.35); transform: translateY(-1px); }
.pager .current { background: linear-gradient(180deg, #f0202b, #b20710); border: 1px solid transparent; font-weight: 700; min-width: 74px; box-shadow: 0 4px 14px rgba(229,9,20,.35); }
.pager .disabled { color: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.1); }
/* ===== Menú hamburguesa (móvil) ===== */
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .admin-page .topbar .wrap { flex-wrap: wrap; align-items: center; gap: 8px; }
  .admin-page .brand { flex: 1 1 auto; min-width: 0; }
  .admin-page .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; flex: none;
    padding: 9px 14px; border-radius: 999px; cursor: pointer; color: var(--text); font: inherit; font-weight: 600;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
    transition: background .2s, box-shadow .25s;
  }
  .nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(255,255,255,.16); box-shadow: 0 0 16px rgba(229,9,20,.4); }
  .nav-toggle .bars { position: relative; display: inline-block; width: 20px; height: 14px; }
  .nav-toggle .bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: #ff5a63; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
  .nav-toggle .bars i:nth-child(1) { top: 0; }
  .nav-toggle .bars i:nth-child(2) { top: 6px; }
  .nav-toggle .bars i:nth-child(3) { top: 12px; }
  .topbar.open .nav-toggle .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .topbar.open .nav-toggle .bars i:nth-child(2) { opacity: 0; }
  .topbar.open .nav-toggle .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  /* Panel desplegable de cristal, a todo el ancho */
  .admin-page .nav {
    display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 4px;
    margin: 4px 0 8px; padding: 8px;
    background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.2); border-radius: 18px;
    box-shadow: 0 12px 34px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.25);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .admin-page .topbar.open .nav { display: flex; }
  .admin-page .nav a, .admin-page .nav button { width: 100%; justify-content: flex-start; padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
  .admin-page .nav form { margin: 0; display: block; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle .bars i, .nav-toggle { transition: none; }
}
/* ===== Encabezado de página centrado, con aire respecto al contenido de abajo ===== */
.page-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; margin: 8px 0 28px; }
.page-head h1 { margin: 0; }
.page-head-tools { flex-direction: column; justify-content: center; gap: 12px; }
.page-head-tools .btn { margin: 0; }
/* ===== Ajustes: interruptor y lista de asuntos ===== */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; margin: 6px 0 10px; font-weight: 600; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slider { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); transition: background .2s, box-shadow .2s; }
.slider::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5); transition: transform .2s ease; }
.switch input:checked + .slider { background: linear-gradient(180deg, #f0202b, #b20710); border-color: transparent; box-shadow: 0 0 16px rgba(229,9,20,.5); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:focus-visible + .slider { outline: 2px solid #fff; outline-offset: 3px; }
.subhead { margin-top: 22px; font-size: 1rem; color: rgba(255,255,255,.85); }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 4px 4px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.chip-text { overflow-wrap: anywhere; }
.chip form { margin: 0; }
.chip-x { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(229,9,20,.25); color: #fff; font-size: 1.15rem; line-height: 1; transition: background .2s, transform .15s; }
.chip-x:hover, .chip-x:focus-visible { background: #e50914; transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .slider, .slider::before, .chip-x { transition: none; } }
/* ===== Probar consulta: reglas y razones ===== */
.center-text { text-align: center; }
.rules { margin: 8px 0 0; padding-left: 22px; }
.rules li { margin: 8px 0; }
.rules code, .card code { background: rgba(0,0,0,.35); padding: 2px 7px; border-radius: 6px; font-size: .92em; overflow-wrap: anywhere; }
.reason { max-width: 340px; white-space: normal; margin-top: 4px; }
.table-wrap td .reason { white-space: normal; }
/* ===== Código alfanumérico y texto del correo ===== */
.code-box { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 12px 0; }
.code-box .code-big { width: 100%; margin: 0; padding: 14px 10px; font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: clamp(1.25rem, 6.2vw, 2rem); font-weight: 800; letter-spacing: .1em; overflow-wrap: anywhere; user-select: all; }
.mail-text { margin: 12px 0; padding: 12px 14px; max-height: 280px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.5; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; scrollbar-width: thin; scrollbar-color: rgba(229,9,20,.75) rgba(255,255,255,.08); }
/* ===== Panel centrado: logo, menú, botones y encabezados ===== */
.page-sub { margin: 0; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.center-text { text-align: center; }
.purge-form { max-width: 420px; margin: 0 auto; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; max-width: 420px; margin: 0 auto 18px; }
.logo-row form { margin: 0; }
.logo-preview { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); padding: 6px; }
.inline-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.inline-row input[type=color] { width: 56px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: transparent; cursor: pointer; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; max-width: 520px; margin: 0 auto 18px; }
.bg-item { text-align: center; }
.bg-item form { margin-top: 6px; }
.bg-preview { width: 100%; max-width: 220px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 14px; max-width: 640px; margin: 0 auto 16px; }
.poster-item { text-align: center; }
.poster-item form { margin-top: 4px; }
.poster-item .file-picker { flex-direction: column; }
.poster-item .file-picker-name { max-width: 100px; }
.poster-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.file-picker { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.file-picker-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; }
.file-picker-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.file-picker-name { font-size: .78rem; color: rgba(255,255,255,.55); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Encabezado: logo y nombre centrados, con el menú centrado debajo */
.admin-page .topbar .wrap { flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.admin-page .brand { justify-content: center; }
.admin-page .brand img { width: 52px; height: 52px; }
.admin-page .nav { justify-content: center; flex-wrap: wrap; }

/* Botones de acción centrados (si no caben, se desplazan sin cortarse por la izquierda) */
.admin-page .actions, .admin-page .actions.left { justify-content: center; justify-content: safe center; }
.admin-page .bulk-bar { justify-content: center; }
.admin-page .filters { justify-content: center; }

@media (max-width: 760px) {
  .admin-page .topbar .wrap { flex-direction: column; flex-wrap: nowrap; }
  .admin-page .brand { flex: none; max-width: 100%; }
  .admin-page .nav { align-self: stretch; flex: none; width: 100%; }
  .nav-toggle { align-self: center; }
}
/* Marca en vertical: el logo queda en el centro exacto y el nombre debajo */
.admin-page .brand { flex-direction: column; gap: 4px; }
.admin-page .brand img { width: 56px; height: 56px; }
.admin-page .brand span { font-size: .85rem; letter-spacing: .08em; }

/* Filas de tarjetas incompletas centradas (en vez de quedar pegadas a la izquierda) */
.grid.stats, .grid.charts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.grid.stats > .card { flex: 1 1 190px; max-width: 250px; }
.grid.charts > .card { flex: 1 1 300px; max-width: 460px; }
@media (max-width: 560px) {
  .grid.stats > .card, .grid.charts > .card { max-width: none; flex-basis: 100%; }
}
/* Atajos de valores comunes */
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 4px; }
/* ===== Código que se copia al tocarlo (la página pública solo muestra código y botones) ===== */
.code-tap {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; margin: 6px 0; padding: 22px 14px; cursor: pointer; color: #fff; font: inherit;
  background: linear-gradient(145deg, rgba(229,9,20,.28), rgba(0,0,0,.45));
  border: 2px dashed rgba(255,90,100,.9); border-radius: 18px;
  box-shadow: 0 0 28px rgba(229,9,20,.35), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.code-tap:hover, .code-tap:focus-visible { transform: translateY(-2px); box-shadow: 0 0 40px rgba(229,9,20,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.code-tap:active { transform: scale(.98); }
.code-tap .code-big {
  margin: 0; padding: 0; background: none; border: 0; text-align: center; user-select: all;
  font-family: ui-monospace, Consolas, "Courier New", monospace; font-weight: 800; letter-spacing: .12em;
  font-size: clamp(1.6rem, 9vw, 2.8rem); overflow-wrap: anywhere; text-shadow: 0 2px 14px rgba(229,9,20,.6);
}
.code-tap .code-icon { flex: none; color: rgba(255,255,255,.75); display: inline-flex; }
.code-tap::after {
  content: ""; position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; opacity: 0; pointer-events: none;
  background: rgba(20,140,70,.92); color: #fff; font-size: 1.3rem; font-weight: 700; transition: opacity .15s ease;
}
.code-tap.copied::after { content: attr(data-done); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .code-tap, .code-tap::after { transition: none; } .code-tap:hover { transform: none; } }
/* Códigos largos: más pequeños para que quepan en UNA sola línea */
.code-tap .code-big.code-long { font-size: clamp(1.15rem, 6.2vw, 2.2rem); letter-spacing: .07em; }
.code-tap .code-big.code-xlong { font-size: clamp(.95rem, 4.6vw, 1.7rem); letter-spacing: .04em; }
/* Iconos en botones de fila, avisos de vencimiento y WhatsApp */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: 6px 9px; }
.icon-btn .icon { display: block; }
.badge.warn { color: #ffcf6b; border-color: #e0a526; }
a.badge { text-decoration: none; }
.due-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.btn.wa, .admin-page .btn.wa { background: linear-gradient(180deg, #2fd16a, #128c4a); box-shadow: 0 6px 18px rgba(37,211,102,.3); color: #fff; }
a.stat-card { text-decoration: none; color: inherit; }
a.stat-card:hover { border-color: rgba(255,90,100,.6); }

/* ===== Catálogo de plataformas, beneficios, footer y FAQ flotante (consulta pública) =====
   Todo esto vive en @section('after'): FUERA de la caja de cristal del formulario, como una
   sección aparte de la página (ancho propio, sin el fondo esmerilado de .glass). */
.site-section { position: relative; z-index: 2; max-width: 920px; margin: 0 auto; padding: 36px 20px 0; }
.site-section + .site-section { padding-top: 46px; }
.eyebrow { display: block; text-align: center; color: #ff8d95; letter-spacing: .2em; font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-size: clamp(1.6rem, 4.2vw, 2.4rem); letter-spacing: -.02em; margin: 0 0 10px; }

/* Animación de llegada al hacer scroll (ver public/js/reveal.js). Sin JS, o si el navegador no lo
   soporta, estas secciones quedan visibles de inmediato: nunca dependen del script para mostrarse. */
.reveal-pending { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal-pending.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-pending { transition: none; opacity: 1; transform: none; }
}
/* Banner corriendo: la pista (.catalog-track) duplica las tarjetas y se desplaza en bucle infinito hacia
   la derecha; al pasar el mouse (o enfocar con teclado) sobre cualquier tarjeta se detiene toda la pista,
   y esa tarjeta se voltea igual que antes (misma regla de abajo, sin cambios). */
.catalog-marquee {
  margin-top: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.catalog-track { display: flex; gap: 16px; width: max-content; animation: catalog-marquee-scroll 36s linear infinite; }
.catalog-marquee:hover .catalog-track, .catalog-marquee:focus-within .catalog-track { animation-play-state: paused; }
@keyframes catalog-marquee-scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .catalog-track { animation: none; } }
.catalog-card {
  position: relative; display: block; flex: 0 0 176px; min-height: 176px; perspective: 1000px; border-radius: 18px;
}
/* El checkbox solo sirve para "voltear" la tarjeta al tocarla en celular (sin JS); queda fuera de
   la vista pero accesible por teclado (Tab + Espacio). */
.flip-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; }
.catalog-card .flip-inner {
  position: relative; display: block; width: 100%; height: 176px; text-align: center; cursor: pointer;
  transform-style: preserve-3d; transition: transform .5s ease, box-shadow .3s ease;
  border-radius: 18px; border: 1px solid rgba(255,255,255,.14);
}
.catalog-card:hover .flip-inner, .flip-toggle:checked ~ .flip-inner, .flip-toggle:focus-visible ~ .flip-inner {
  transform: rotateY(180deg);
  box-shadow: 0 0 0 1px rgba(229,9,20,.55), 0 0 34px rgba(229,9,20,.55), 0 12px 30px rgba(0,0,0,.45);
}
/* El blur va en una capa aparte (.flip-face-bg), NUNCA en el mismo elemento que lleva
   backface-visibility:hidden: Safari tiene un bug conocido (WebKit #249952) donde esa combinación
   rompe el backface-visibility, y otro (WebKit #297620) donde backdrop-filter deja de aplicarse si su
   valor viene de una variable CSS. Por eso aquí van valores literales, y admin los sobrescribe en
   public/css/custom.css con una regla .flip-face-bg completa, no con variables. */
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 18px; }
/* Mismo "cristal" que .glass (el cuadro del formulario): un velo oscuro para que resalte sobre las
   esferas, más el brillo diagonal claro del cristal, y el mismo desenfoque. */
.flip-face-bg {
  position: absolute; inset: 0; border-radius: 18px;
  background:
    linear-gradient(rgba(10,8,9,.38), rgba(10,8,9,.38)),
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .flip-face-bg { background: rgba(20,14,16,.88); }
}
.flip-face-content {
  position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; padding: 14px;
}
.flip-front img { width: 112px; height: 112px; max-width: 80%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.flip-back {
  transform: rotateY(180deg); background: rgba(0,0,0,.45); padding: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.flip-back-text { font-size: .8rem; color: rgba(255,255,255,.85); line-height: 1.3; }
.flip-back .wa-cta {
  display: inline-flex; align-items: center; gap: 6px; color: #fff; background: #1d9e4c; border: 1px solid #35df76;
  border-radius: 999px; font-size: 13px; font-weight: 800; padding: 10px 18px; line-height: 1.2; text-decoration: none;
}
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.benefit { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 16px 10px; text-align: center; }
.benefit .symbol { font-size: 24px; display: block; margin-bottom: 6px; }
.benefit h3 { margin: 0 0 4px; font-size: .85rem; }
.benefit p { margin: 0; font-size: .75rem; }

.site-footer {
  position: relative; z-index: 2; max-width: 920px; margin: 40px auto 30px; padding: 24px 20px;
  border-top: 1px solid rgba(255,255,255,.14); border-radius: 18px; text-align: center;
  background: rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(15px) saturate(140%); backdrop-filter: blur(15px) saturate(140%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-footer { background: rgba(14,10,11,.78); }
}
.footer-brand { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.site-footer p { margin: 2px 0; font-size: .85rem; }
.site-footer p a { color: #fff; }
.footer-disclaimer { display: block; color: rgba(255,255,255,.5); font-size: .72rem; margin: 10px auto 0; max-width: 480px; }
.megaweb-credit {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: rgba(255,255,255,.6);
  font-size: .78rem; text-decoration: none;
}
.megaweb-credit img { height: 24px; width: auto; opacity: .92; }
.megaweb-credit:hover { color: #fff; }
.megaweb-credit:hover img { opacity: 1; }

/* Botón flotante de WhatsApp + preguntas frecuentes (consulta pública) */
.wa-fab-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 40; }
.wa-fab {
  list-style: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #25d366; color: #062b14; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 22px rgba(37,211,102,.5);
  transition: transform .2s ease;
}
.wa-fab:hover { transform: translateY(-3px); }
.wa-fab::-webkit-details-marker { display: none; }
.wa-fab-panel {
  position: absolute; right: 0; bottom: 70px; width: min(300px, 78vw); background: rgba(18,12,14,.97);
  border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.55);
}
.wa-fab-panel h3 { margin: 0 0 4px; font-size: 1.05rem; text-align: center; }
.wa-fab-panel .faq-hint { margin: 0 0 10px; font-size: .78rem; text-align: center; }
.faq-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.faq-acc {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  overflow: hidden; transition: background .15s ease, border-color .15s ease;
}
.faq-acc[open], .faq-acc:hover { background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.4); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer;
  padding: 12px 14px; font-weight: 700; font-size: 1.1rem; color: #fff;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+'; flex-shrink: 0; font-size: 1.3rem; font-weight: 400; line-height: 1; color: rgba(255,255,255,.55);
}
.faq-acc[open] .faq-q::after { content: '−'; color: #35df76; }
.faq-acc-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px 14px; }
.faq-a { color: rgba(255,255,255,.78); font-size: .97rem; line-height: 1.4; }
.faq-wa-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px;
  border-radius: 50%; background: #1d9e4c; border: 1px solid #35df76; color: #fff; transition: background .15s ease;
}
.faq-wa-btn:hover, .faq-wa-btn:focus-visible { background: #22b857; }
.wa-fab-panel .wa-cta-btn {
  background: linear-gradient(180deg, #2fd16a, #128c4a); box-shadow: 0 6px 18px rgba(37,211,102,.35);
  white-space: normal; line-height: 1.25; padding: 10px 14px;
}

@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .site-section { padding: 30px 16px 0; }
  .site-section + .site-section { padding-top: 38px; }
  .catalog-track { gap: 10px; }
  .catalog-card { flex-basis: 150px; }
  .catalog-card, .catalog-card .flip-inner { min-height: 150px; height: 150px; }
  .flip-front img { width: 84px; height: 84px; }
  .wa-fab-wrap { right: 12px; bottom: 12px; }
  .wa-fab-panel { width: min(260px, 82vw); right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-card .flip-inner, .wa-fab { transition: none; }
}
