/* =========================================================
   EMMA BOXING CLUB — estilos v2
   Lona azul del ring, cemento del logo, rosa de los guantes.
   Pensado primero para el móvil: barra inferior tipo app.
   ========================================================= */

:root {
  --lona: #2b44ff;
  --lona-osc: #101c7a;
  --noche: #080c33;      /* fondo: azul tinta de noche de velada */
  --sup: #11174a;        /* superficie */
  --sup-2: #1a2163;      /* superficie elevada */
  --linea: rgba(170,180,255,0.16);
  --tx: #eef0ff;
  --tx-2: #a9b0de;
  --cemento: var(--noche);
  --cemento-2: var(--sup-2);
  --negro: #000;
  --grafito: #1c1c1e;
  --grafito-2: #2a2a2d;
  --blanco: #fff;
  --rosa: #ff7bac;
  --amarillo: #ffd21f;
  --verde: #22c06b;
  --rojo: #e5484d;
  --gris: #a9b0de;

  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --texto: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ancho: 1240px;
  --pad: clamp(18px, 4vw, 40px);
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --nav-h: 68px;

  /* alias que usa el terminal de la puerta */
  --font-heading: var(--display);
  --accent-red: var(--rojo);
  --accent-gold: var(--amarillo);
  --bg-card: var(--grafito);
  --text-muted: #b5b3ad;
  --border-subtle: rgba(255,255,255,0.12);
  --border-gold: rgba(255,210,31,0.5);
  --success: var(--verde);
  --danger: var(--rojo);
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-pill: 999px;
  --shadow-card: 0 18px 40px rgba(0,0,0,0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tx);
  background: var(--noche);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--pad), var(--ancho)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--rosa); color: #000; padding: 10px 16px; font-weight: 700; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(3.4rem, 12vw, 9rem); }
h2 { font-size: clamp(2.5rem, 7vw, 5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 0.95; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.5; }
.muted { color: var(--gris); }
strong { font-weight: 700; }
.text-gold { color: var(--amarillo); }
.text-red { color: var(--rosa); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 700 1rem/1 var(--texto);
  text-decoration: none; white-space: nowrap;
  border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, background-color .15s, color .15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary, .btn-rosa, .btn-gold { background: var(--rosa); color: #000; }
.btn-primary:hover, .btn-rosa:hover, .btn-gold:hover { background: #ff9cc1; }
.btn-dark { background: #fff; color: #000; }
.btn-dark:hover { background: var(--amarillo); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: rgba(127,127,127,0.12); }
.btn-white { background: #fff; color: #000; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Cabecera (escritorio) ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,12,51,0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--linea);
}
body[data-page="index"] .navbar { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
body[data-page="index"] .navbar.scrolled { background: rgba(8,12,51,0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.navbar .container { display: flex; align-items: center; gap: 24px; min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; }
.brand-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.15rem; line-height: 0.85; }
.brand-name span { display: block; }
.nav-menu { display: flex; gap: 2px; margin-left: auto; }
.nav-link { padding: 9px 13px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.nav-link:hover { background: rgba(127,127,127,0.16); }
.nav-link.active { background: #fff; color: #000; }
body[data-page="index"] .nav-link.active { background: #fff; color: #000; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-socios-mobile, .nav-toggle, .mobile-overlay { display: none; }

/* ---------- Barra inferior (móvil) ---------- */
.tabbar { display: none; }
@media (max-width: 960px) {
  .nav-menu, .nav-actions .nav-socios { display: none; }
  .navbar .container { min-height: 60px; }
  .nav-actions { margin-left: auto; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 120;
    height: 64px; padding: 6px; border-radius: 22px;
    background: #fff; color: #11174a; border: 0;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 12px 34px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,.5);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border-radius: 16px; text-decoration: none; font-size: 0.72rem; font-weight: 700; color: #3a4170;
  }
  .tabbar i { font-size: 1.15rem; }
  .tabbar .on { background: var(--lona); color: #fff; }
  #open-sheet { color: #3a4170; }
  #open-sheet.on { background: var(--lona); color: #fff; }
  .tabbar .tab-cta { background: var(--rosa); color: #000; }
}

/* Hoja "Más" del móvil */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; background: transparent; color: var(--tx); }
.sheet::backdrop { background: rgba(0,0,0,0.5); }
.sheet-inner {
  background: var(--sup); border-radius: var(--r-l) var(--r-l) 0 0; padding: 14px 18px calc(24px + env(safe-area-inset-bottom));
  animation: sube .22s ease-out;
}
@keyframes sube { from { transform: translateY(40px); opacity: 0; } }
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: rgba(255,255,255,0.3); margin: 0 auto 14px; }
.sheet-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-links a {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px;
  background: var(--sup-2); color: var(--tx); text-decoration: none; font-weight: 700;
}
.sheet-links a i { width: 22px; color: var(--rosa); }
.sheet-links a.on { background: #fff; color: #000; }
.sheet-links a.on i { color: var(--lona); }
.sheet-foot { display: flex; gap: 10px; margin-top: 14px; }
.sheet-foot .btn { flex: 1; }

/* ---------- Portada: foto bitono + reloj de asaltos ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; color: #fff; background: var(--noche); }
.hero-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: grayscale(1) contrast(1.15) brightness(.9);
}
/* Bitono: sombras azul lona, luces rosa guante */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,12,51,.55) 0%, rgba(8,12,51,.2) 35%, rgba(8,12,51,.92) 88%, var(--noche) 100%),
    linear-gradient(110deg, rgba(43,68,255,.85) 0%, rgba(43,68,255,.55) 45%, rgba(255,123,172,.45) 100%);
  mix-blend-mode: normal;
}
.hero::after { /* grano de película */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
@supports (animation-timeline: scroll()) {
  .hero-bg { animation: zoom linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes zoom { to { transform: scale(1.12); filter: grayscale(1) contrast(1.15) brightness(.6); } }
}
.hero-grid {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: clamp(24px, 5vw, 70px);
  padding-top: calc(var(--nav-h) + 30px); padding-bottom: clamp(40px, 7vw, 90px);
}
.hero-word { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(4.4rem, 14vw, 12.5rem); line-height: .8; letter-spacing: -0.01em; }
.hero-word span { display: block; }
.hero-word .w-club { -webkit-text-stroke: 2px #fff; color: transparent; }
.hero-sub { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 42ch; color: #e6e9ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .btn-outline { color: #fff; }

/* Reloj de asaltos */
.reloj {
  --fase: var(--rosa);
  background: rgba(8,12,51,.62); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-radius: var(--r-l); padding: 20px; color: #fff; max-width: 420px; justify-self: end; width: 100%;
}
.reloj[data-fase="descanso"] { --fase: #7fb2ff; }
.reloj[data-fase="fin"] { --fase: var(--verde); }
.reloj.aviso { --fase: var(--amarillo); }
.reloj-top { display: flex; align-items: center; justify-content: space-between; }
.reloj-titulo { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; }
.reloj-icono { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); }
.reloj-dial { position: relative; width: min(100%, 290px); aspect-ratio: 1; margin: 6px auto 14px; }
.reloj-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.aro-fondo { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 5; }
.aro { fill: none; stroke: var(--fase); stroke-width: 5; stroke-linecap: round; transition: stroke .3s; }
.reloj-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.reloj-fase { font-weight: 800; color: var(--fase); font-size: 1rem; transition: color .3s; }
.reloj-tiempo { font-family: var(--display); font-weight: 900; font-size: clamp(4.4rem, 11vw, 5.6rem); line-height: .9; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.reloj.aviso .reloj-tiempo { animation: late-num 1s steps(2) infinite; }
@keyframes late-num { 50% { opacity: .55; } }
.reloj-ronda { color: var(--tx-2); font-size: .92rem; font-weight: 600; }
.reloj-presets { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.reloj-presets .chip { background: rgba(255,255,255,.1); color: #fff; }
.reloj-presets .chip[aria-pressed="true"] { background: #fff; color: #000; }
.reloj-botones { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.reloj-botones .btn-outline { color: #fff; width: 52px; padding: 0; }
.reloj-nota { margin-top: 12px; font-size: .84rem; color: var(--tx-2); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; padding-top: 96px; gap: 28px; }
  .hero-word { font-size: clamp(4rem, 19vw, 7.5rem); }
  .hero-actions .btn { flex: 1 1 auto; }
  .reloj { justify-self: stretch; max-width: none; }
  .reloj-dial { width: min(72vw, 270px); }
}

/* Cinta amarilla */
.tape { background: var(--amarillo); color: #000; overflow: hidden; white-space: nowrap; padding: 12px 0; border-block: 3px solid #000; }
.tape-track { display: inline-flex; gap: 40px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1; animation: tape 26s linear infinite; }
.tape-track span::after { content: "●"; margin-left: 40px; color: var(--rosa); font-size: .6em; vertical-align: middle; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-light { background: var(--cemento); }
.section-white { background: var(--sup); }
.section-carbon { background: #04061f; color: #fff; }
.section-carbon .muted { color: #a9a7a1; }
.section-lona { background: linear-gradient(160deg, #2b44ff, #1a2bb8); color: #fff; }
.section-lona .muted { color: #c9cfff; }
.section-yellow { background: var(--amarillo); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 820px; }
.section-head p { margin-top: 14px; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 40px); }

/* ---------- Bento del club ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 12px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-m); padding: 22px; background: var(--sup); border: 1px solid var(--linea); display: flex; flex-direction: column; gap: 10px; }
.tile h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.tile p { font-size: 0.98rem; }
.tile-photo { grid-column: span 2; grid-row: span 2; padding: 0; background: #000; min-height: 380px; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-photo figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; color: #fff; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.tile-lona { background: var(--lona); color: #fff; }
.tile-rosa { background: var(--rosa); color: #000; border-color: transparent; }
.tile-negro { background: #04061f; color: #fff; }
.tile-wide { grid-column: span 2; }
.tile .tile-link { margin-top: auto; align-self: flex-start; }
.tile-shop { background: var(--sup) url('/assets/productos/leone-gloves.webp') right center / auto 100% no-repeat; }
.tile-shop h3, .tile-shop p { max-width: 58%; }
@media (max-width: 600px) { .tile-shop { background-position: right -20px bottom -20px; background-size: 46%; } .tile-shop h3, .tile-shop p { max-width: 100%; } .tile-shop p { padding-right: 34%; } }
.tile-icon { font-size: 1.6rem; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-photo { grid-column: span 2; grid-row: auto; min-height: 340px; }
  .tile-wide { grid-column: span 2; }
}
@media (max-width: 420px) { .tile { padding: 18px; } .tile h3 { font-size: 1.7rem; } }

/* ---------- Carril horizontal (desliza en móvil) ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-bottom: 8px; scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
@media (max-width: 960px) {
  .rail { grid-auto-columns: 78%; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
}

/* ---------- Tarifas (tickets) ---------- */
.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ticket {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 300px;
  padding: 26px; border-radius: var(--r-m); background: var(--noche); color: #fff;
}
.ticket::after { /* muesca de entrada de evento */
  content: ""; position: absolute; left: -12px; right: -12px; top: 58%; height: 24px;
  background: radial-gradient(circle at 0 50%, var(--fondo-ticket, var(--cemento)) 11px, transparent 12px),
              radial-gradient(circle at 100% 50%, var(--fondo-ticket, var(--cemento)) 11px, transparent 12px);
}
.ticket .t-nombre { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: .95; }
.ticket .t-precio { font-family: var(--display); font-weight: 900; font-size: clamp(4.5rem, 9vw, 6.5rem); line-height: .85; margin-top: auto; }
.ticket .t-precio small { font-family: var(--texto); font-size: 1rem; font-weight: 700; margin-left: 6px; }
.ticket .t-nota { font-size: .95rem; color: var(--tx-2); border-top: 2px dashed rgba(255,255,255,.18); padding-top: 14px; }
.ticket.destacado { background: var(--rosa); color: #000; }
.ticket.destacado .t-nota { color: #3a1426; border-color: rgba(0,0,0,.2); }
.ticket.gratis { background: var(--rosa); }
.section-lona .tickets { --fondo-ticket: #2338e6; }
.section-carbon .tickets { --fondo-ticket: #04061f; }
@media (max-width: 960px) { .tickets { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 8px; } .ticket { scroll-snap-align: start; } }

/* ---------- Horario y "abierto ahora" ---------- */
.open-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; background: rgba(127,127,127,.18); }
.open-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gris); }
.open-pill.is-open { background: rgba(34,192,107,.18); color: #8ff0b8; }
.open-pill.is-open::before { background: var(--verde); box-shadow: 0 0 0 4px rgba(34,192,107,.25); animation: late 1.8s ease-in-out infinite; }
@keyframes late { 50% { box-shadow: 0 0 0 7px rgba(34,192,107,0); } }
.open-pill.is-closed { background: rgba(229,72,77,.18); color: #ffb3b6; }
.open-pill.is-closed::before { background: var(--rojo); }
.hours { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .97rem; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid rgba(127,127,127,.25); font-weight: 500; }
.hours th { font-weight: 700; width: 38%; }
.hours tr.today th, .hours tr.today td { color: var(--rosa); font-weight: 800; }
.tile-negro .hours tr.today th, .tile-negro .hours tr.today td, .section-carbon .hours tr.today th, .section-carbon .hours tr.today td { color: var(--rosa); }

/* ---------- Páginas interiores ---------- */
.page-head { padding: clamp(40px, 7vw, 90px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(3.6rem, 13vw, 9.5rem); }
.page-head p { margin-top: 14px; color: var(--tx-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.split-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-l); }
.split-photo figcaption { margin-top: 10px; font-size: .9rem; color: var(--tx-2); }
.split-text > * + * { margin-top: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--sup); border: 1px solid var(--linea); }
.section-carbon .facts li, .section-lona .facts li { background: rgba(255,255,255,.08); }
.facts li strong { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; line-height: 1.1; }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

.disc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.disc { border-radius: var(--r-l); padding: clamp(24px, 4vw, 40px); background: var(--sup); border: 1px solid var(--linea); }
.disc:nth-child(2) { background: var(--lona); color: #fff; }
.disc h3 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.disc p, .disc ul { margin-top: 14px; }
.disc ul { padding-left: 1.1em; }
.disc ul li + li { margin-top: 6px; }
@media (max-width: 760px) { .disc-grid { grid-template-columns: 1fr; } }

/* ---------- Galería ---------- */
.gallery-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 10px; }
.gallery-auto button { position: relative; overflow: hidden; border-radius: var(--r-m); background: #000; }
.gallery-auto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-auto button:hover img { transform: scale(1.04); }
.gallery-auto .tall { grid-row: span 2; }
.gallery-auto .wide { grid-column: span 2; }
.gallery-auto figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; text-align: left; font-weight: 700; font-size: .92rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
@media (max-width: 600px) {
  .gallery-auto { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 8px; }
  .gallery-auto figcaption { font-size: .78rem; padding: 22px 8px 7px; }
}
.rail.photos { grid-auto-columns: minmax(280px, 1fr); }
.rail.photos button { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-m); background: #000; }
.rail.photos img { width: 100%; height: 100%; object-fit: cover; }
.rail.photos figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; font-weight: 700; text-align: left; text-shadow: 0 1px 8px rgba(0,0,0,.6); }

.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; }
.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: var(--rosa); color: #000; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) { .lightbox-inner { padding: 70px 8px; } .lb-prev, .lb-next { top: auto; bottom: 54px; translate: none; } }

/* ---------- Reservas (Reservio) ---------- */
.reservio-shell { display: grid; grid-template-columns: 320px 1fr; border-radius: var(--r-l); overflow: hidden; background: var(--lona); }
.reservio-side { padding: 30px 26px; color: #fff; }
.reservio-side h2 { font-size: 2.6rem; }
.reservio-side ol { margin-top: 16px; padding-left: 1.2em; }
.reservio-side ol li + li { margin-top: 10px; }
.reservio-side .btn { margin-top: 22px; width: 100%; }
.reservio-side .small { margin-top: 14px; font-size: .88rem; opacity: .85; }
.reservio-frame { position: relative; background: #fff; min-height: 760px; }
.reservio-frame iframe { width: 100%; height: 100%; min-height: 760px; border: 0; display: block; }
.reservio-fallback { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 30px; background: var(--sup); }
.reservio-frame.blocked .reservio-fallback { display: flex; }
.reservio-frame.blocked iframe { visibility: hidden; }
@media (max-width: 900px) {
  .reservio-shell { grid-template-columns: 1fr; margin-inline: calc(-1 * var(--pad) + 6px); }
  .reservio-frame, .reservio-frame iframe { min-height: 680px; }
}

/* ---------- Formularios ---------- */
.form-group { margin-bottom: 14px; }
.form-group label, .label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 6px; }
.form-control {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem;
  border-radius: 14px; border: 2px solid var(--linea); background: rgba(255,255,255,.05); color: var(--tx);
}
.form-control:focus { outline: none; border-color: var(--rosa); }
select.form-control option { color: #000; }
.form-control::placeholder { color: #7f86b8; }
textarea.form-control { min-height: 110px; resize: vertical; }
.card .form-control, dialog.modal .form-control, .toolbar .form-control.dark { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.16); }
.card .form-control:focus, dialog.modal .form-control:focus { border-color: var(--rosa); }
.card select.form-control option, dialog.modal select.form-control option { color: #000; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-msg { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.form-msg.ok { display: block; background: rgba(34,192,107,.16); color: #8ff0b8; }
.form-msg.err { display: block; background: rgba(229,72,77,.16); color: #ffb3b6; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.contact-grid > div { background: var(--sup); border: 1px solid var(--linea); border-radius: var(--r-l); padding: clamp(22px, 4vw, 36px); }
.contact-grid h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.contact-lines { list-style: none; margin-top: 18px; }
.contact-lines li { padding: 13px 0; border-bottom: 1px solid var(--linea); display: flex; gap: 14px; align-items: baseline; }
.contact-lines i { width: 20px; color: var(--rosa); }
.contact-lines a { font-weight: 700; }
.map-frame { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--r-m); margin-top: 22px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Zona socios ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; background: var(--sup); border: 1px solid var(--linea); border-radius: var(--r-l); padding: clamp(22px, 4vw, 34px); }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.07); margin-bottom: 22px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { padding: 10px 18px; border-radius: 999px; font-weight: 700; color: var(--tx-2); white-space: nowrap; }
.tab[aria-selected="true"] { background: #fff; color: #000; }
.tab .count:not(:empty) { margin-left: 6px; background: var(--rosa); color: #000; border-radius: 999px; padding: 1px 8px; font-size: .8rem; }

.card { background: var(--sup); border: 1px solid var(--linea); color: #fff; border-radius: var(--r-m); padding: clamp(20px, 3vw, 26px); }
.card h3 { font-size: 1.8rem; margin-bottom: 12px; }
.card .muted { color: #a9a7a1; }
.member-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.member-top h2 { font-size: clamp(2.6rem, 7vw, 4rem); }
.member-card {
  position: relative; overflow: hidden; color: #000;
  background: linear-gradient(135deg, var(--rosa), #ffb3cf 60%, #fff 140%);
  border-radius: var(--r-m); padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between;
}
.member-card.expired { background: linear-gradient(135deg, #4a4a4d, #2a2a2d); color: #fff; }
.member-card .mc-club { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.3rem; }
.member-card .mc-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 2.4rem; line-height: .9; margin-top: 16px; }
.member-card .mc-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-weight: 700; }
.member-card .mc-meta small { display: block; font-weight: 500; opacity: .7; font-size: .78rem; }
.member-card .mc-gloves { position: absolute; right: 16px; top: 16px; width: 64px; height: 64px; border-radius: 50%; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.list-plain { list-style: none; }
.list-plain li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: .96rem; }
.list-plain li:last-child { border-bottom: 0; }
.empty { color: var(--tx-2); font-size: .96rem; }
.alert { padding: 14px 16px; border-radius: 14px; font-weight: 600; margin-bottom: 16px; background: rgba(255,210,31,.14); color: #ffe68a; }
.alert-danger { background: rgba(229,72,77,.16); color: #ffb3b6; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--sup); border: 1px solid var(--linea); border-radius: var(--r-m); padding: 18px; }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-size: 2.8rem; line-height: 1; }
.stat span { color: var(--gris); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .form-control { max-width: 300px; min-height: 42px; padding: 8px 12px; }
.chip { padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 700; font-size: .9rem; }
.chip[aria-pressed="true"] { background: #fff; color: #000; }
.card .chip[aria-pressed="true"] { background: var(--rosa); color: #000; }
.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data-table th, .data-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
.data-table th { font-size: .82rem; color: #a9a7a1; font-weight: 700; }
.data-table tr.soon td { background: rgba(255,210,31,.07); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.card .btn-outline { color: #fff; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.1); }
.status-active { background: rgba(34,192,107,.2); color: #7ee2a8; }
.status-expired { background: rgba(229,72,77,.2); color: #ff9da0; }
.status-soon { background: rgba(255,210,31,.2); color: var(--amarillo); }
.badge-gold { background: rgba(255,210,31,.16); color: var(--amarillo); }
.badge-sub { display: inline-flex; align-items: center; gap: 8px; color: var(--amarillo); font-weight: 700; font-size: .9rem; }
.admin-tabs { margin-bottom: 18px; }
.admin-list { display: grid; gap: 8px; }
.admin-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.05); }
.admin-item img, .admin-item .ph { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--grafito-2); display: flex; align-items: center; justify-content: center; color: #77756f; }
.admin-item.off { opacity: .5; }
.img-pick { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.img-pick img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--grafito-2); }
.img-pick img:not([src]), .img-pick img[src=""] { visibility: hidden; }

dialog.modal { margin: auto; border: 1px solid var(--linea); border-radius: var(--r-m); padding: 0; width: min(560px, 94vw); max-height: 92dvh; overflow-y: auto; background: var(--sup); color: #fff; }
dialog.modal::backdrop { background: rgba(0,0,0,.6); }
.modal-body { padding: 24px; }
.modal-body h3 { margin-bottom: 16px; font-size: 2rem; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
dialog.modal .btn-outline { color: #fff; }
dialog.modal .muted { color: #a9a7a1; }
@media (max-width: 600px) { dialog.modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-l) var(--r-l) 0 0; max-height: 94dvh; } }

/* ---------- Tienda ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.product { display: flex; flex-direction: column; background: var(--sup); border: 1px solid var(--linea); color: var(--tx); border-radius: var(--r-m); overflow: hidden; }
.product-img { aspect-ratio: 1 / 1; background: #0d1240; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product:hover .product-img img { transform: scale(1.04); }
.product-img i { font-size: 3rem; color: #b9b6ae; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: .8rem; font-weight: 700; color: var(--rosa); }
.product-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.55rem; line-height: .95; }
.product-desc { font-size: .92rem; color: var(--tx-2); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; }
.product-price { font-family: var(--display); font-weight: 900; font-size: 2.2rem; line-height: 1; }
.product-price.ask { font-family: var(--texto); font-size: .9rem; font-weight: 700; }
.rail .product { scroll-snap-align: start; }
.product-grid.rail { display: grid; grid-template-columns: none; }

/* ---------- Noticias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.news-card { display: flex; flex-direction: column; text-decoration: none; background: var(--sup); border: 1px solid var(--linea); color: var(--tx); border-radius: var(--r-m); overflow: hidden; }
.section-carbon .news-card { background: var(--grafito); color: #fff; }
.news-card:hover .news-title { text-decoration: underline; }
.news-img { aspect-ratio: 16 / 10; background: var(--cemento-2); }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 16px 18px 20px; }
.news-meta { font-size: .84rem; color: var(--rosa); font-weight: 700; }
.section-carbon .news-meta { color: var(--rosa); }
.news-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: .95; margin-top: 6px; }
.news-sum { margin-top: 8px; font-size: .96rem; color: var(--tx-2); }
.section-carbon .news-sum { color: #c9c7c1; }
.article-inner { max-width: 760px; }
.article-inner h1 { font-size: clamp(2.6rem, 8vw, 5rem); margin-top: 10px; }
.article-inner .article-img { width: 100%; border-radius: var(--r-l); margin: 24px 0; }
.article-inner .article-text p { margin-top: 16px; font-size: 1.1rem; line-height: 1.7; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 110;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: #25d366; color: #052b13; font-weight: 800; text-decoration: none; box-shadow: 0 10px 26px rgba(0,0,0,.3);
}
.wa-float i { font-size: 1.5rem; }
@media (max-width: 960px) { .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); right: 14px; padding: 12px; } .wa-float span { display: none; } }

/* ---------- Pie ---------- */
.footer { background: #04061f; color: #fff; border-top: 1px solid var(--linea); padding: 64px 0 40px; }
.footer-big { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3.4rem, 13vw, 11rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.35); margin-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { margin-bottom: 12px; color: var(--rosa); }
.footer ul { list-style: none; }
.footer li + li { margin-top: 8px; }
.footer a { text-decoration: none; color: #d6d4cd; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer p { color: #a9a69e; font-size: .95rem; }
.footer .open-pill.is-open { background: rgba(34,192,107,.18); color: #8ff0b8; }
.footer .open-pill.is-closed { background: rgba(229,72,77,.18); color: #ffb3b6; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #7d7a73; font-size: .86rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilidades ---------- */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tienda en móvil: dos columnas compactas */
@media (max-width: 600px) {
  .product-grid:not(.rail) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-body { padding: 12px; }
  .product-name { font-size: 1.2rem; }
  .product-grid:not(.rail) .product-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .84rem; }
  .product-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .product-foot .btn { width: 100%; }
  .product-price { font-size: 1.9rem; }
}

/* ---------- Portada: tarjeta "Hoy en el club" ---------- */
.hoy {
  justify-self: end; width: 100%; max-width: 420px; color: #fff;
  background: rgba(8,12,51,.62); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-radius: var(--r-l); padding: 20px;
}
.hoy-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hoy-titulo { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; }
.hoy-horas { margin-top: 12px; color: var(--tx-2); }
.hoy-horas b { color: #fff; }
.hoy-acciones { display: grid; gap: 8px; margin-top: 16px; }
.hoy-btn { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.08); text-decoration: none; font-weight: 700; }
.hoy-btn:hover { background: rgba(255,255,255,.16); }
.hoy-btn i { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--rosa); color: #000; }
.hoy-btn span { display: flex; flex-direction: column; }
.hoy-btn small { font-weight: 500; color: var(--tx-2); font-size: .85rem; }
@media (max-width: 960px) { .hoy { justify-self: stretch; max-width: none; } }

/* ---------- Página del reloj de asaltos ---------- */
.reloj-app { --fase: var(--rosa); display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; align-items: start; }
.reloj-app[data-fase="descanso"] { --fase: #7fb2ff; }
.reloj-app[data-fase="prepara"] { --fase: var(--amarillo); }
.reloj-app[data-fase="fin"] { --fase: var(--verde); }
.reloj-app.aviso { --fase: var(--amarillo); }
.reloj-pantalla {
  position: relative; border-radius: var(--r-l); padding: clamp(22px, 4vw, 40px); text-align: center;
  background: var(--sup); border: 1px solid var(--linea); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 460px;
}
.reloj-pantalla::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, var(--fase), transparent 70%); opacity: .2; transition: opacity .4s; }
.reloj-app.corriendo .reloj-pantalla::before { opacity: .32; }
.reloj-pantalla > * { position: relative; }
.reloj-pantalla:fullscreen { border-radius: 0; background: var(--noche); justify-content: center; }
.rp-fase { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 6vw, 3.4rem); color: var(--fase); transition: color .3s; }
.rp-tiempo { font-family: var(--display); font-weight: 900; font-size: clamp(7rem, 26vw, 15rem); line-height: .85; font-variant-numeric: tabular-nums; }
.reloj-pantalla:fullscreen .rp-tiempo { font-size: min(42vw, 60vh); }
.reloj-app.aviso .rp-tiempo { animation: late-num 1s steps(2) infinite; }
.rp-ronda { font-weight: 700; color: var(--tx-2); font-size: 1.1rem; margin-top: 6px; }
.rp-barra { width: min(100%, 520px); height: 8px; border-radius: 9px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 18px; }
.rp-barra i { display: block; height: 100%; background: var(--fase); transform-origin: left; transform: scaleX(0); }
.rp-lista { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.rp-lista li { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; background: rgba(255,255,255,.08); color: var(--tx-2); }
.rp-lista li.hecho { background: rgba(255,255,255,.22); color: #fff; }
.rp-lista li.ahora { background: var(--fase); color: #000; transform: scale(1.12); }
.rp-botones { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.rp-botones .btn-primary { min-width: 180px; }
.rp-ic { width: 52px; padding: 0; color: #fff; }
.reloj-config { background: var(--sup); border: 1px solid var(--linea); border-radius: var(--r-l); padding: 22px; }
.reloj-config h2 { font-size: 2.2rem; margin-bottom: 10px; }
.cfg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.07); border-radius: 999px; padding: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 1.3rem; font-weight: 700; }
.stepper button:active { background: var(--rosa); color: #000; }
.stepper output { min-width: 3.2em; text-align: center; font-family: var(--display); font-weight: 900; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.switch { width: 52px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.18); position: relative; flex-shrink: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-pressed="true"] { background: var(--verde); }
.switch[aria-pressed="true"]::after { transform: translateX(22px); }
@media (max-width: 900px) { .reloj-app { grid-template-columns: 1fr; } .reloj-pantalla { min-height: 0; } }
.link-btn { color: var(--rosa); font-weight: 700; text-decoration: underline; padding: 0; }
.alert-ok { background: rgba(34,192,107,.16); color: #8ff0b8; }
.ts-slot:not(:empty) { margin: 6px 0 14px; min-height: 65px; }

/* Aviso "Instalar la app" */
.instalar-app { position: fixed; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 1200;
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 44px 16px 16px; max-width: 460px; margin: 0 auto;
  background: var(--sup-2); color: var(--tx); border: 1px solid var(--linea); border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5); transform: translateY(24px); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.instalar-app.visible { transform: none; opacity: 1; }
.instalar-app img { border-radius: 14px; flex: none; }
.instalar-app .ia-txt { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; line-height: 1.4; }
.instalar-app .ia-txt strong { font-size: 1.05rem; }
.instalar-app .ia-txt span { color: var(--tx-2); }
.instalar-app .ia-txt b { color: var(--tx); }
.instalar-app .ia-si { align-self: flex-start; margin-top: 6px; padding: 10px 22px; }
.instalar-app .ia-cerrar { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--tx-2); font-size: 1.1rem; cursor: pointer; }
.instalar-app .ia-cerrar:focus-visible { outline: 2px solid var(--rosa); }
@media (min-width: 961px) { .instalar-app { bottom: 24px; left: auto; right: 24px; } }
@media (prefers-reduced-motion: reduce) { .instalar-app { transition: none; } }
.card-avisos .btn.avisos-on { background: transparent; color: var(--tx); border: 1px solid var(--linea); }
.aviso-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); }
.aviso-item small { color: var(--tx-2); }

/* Mensaje flotante (avisos activados, errores…) */
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 1300; max-width: 460px; margin: 0 auto;
  padding: 14px 18px; border-radius: 16px; background: var(--sup-2); color: var(--tx); border: 1px solid var(--linea);
  box-shadow: 0 18px 50px rgba(0,0,0,.5); font-weight: 600; line-height: 1.4; }
.toast.ok { border-color: #3ecf8e; } .toast.err { border-color: var(--rosa); }
@media (min-width: 961px) { .toast { bottom: 24px; } }

/* Galería pública: filtros por álbum */
.gal-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.gal-filtros .chip span, .ga-albumes .chip span { opacity: .6; font-weight: 600; margin-left: 2px; }
.gal-desc { min-height: 1.2em; margin: 0 0 16px; }

/* Galería: panel de admin */
.ga-albumes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ga-albumes .ga-oculto { opacity: .65; }
.ga-album-edit { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); margin-bottom: 14px; }
.ga-album-acc { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ga-check { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin-right: auto; }
.ga-check input { width: 20px; height: 20px; accent-color: var(--rosa); }
.ga-peligro { color: #ff8a8a; }
.ga-drop { border: 2px dashed var(--linea); border-radius: 14px; padding: 18px; text-align: center; color: var(--tx-2); margin-bottom: 10px; transition: border-color .2s, background .2s; }
.ga-drop i { margin-right: 6px; }
.ga-drop.activa { border-color: var(--rosa); background: rgba(255,123,172,.08); color: var(--tx); }
.ga-ayuda { font-size: .88rem; }
.ga-ayuda i { color: var(--amarillo); margin: 0 2px 0 8px; }
.ga-ayuda i:first-child { margin-left: 0; }
.ga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ga-foto { position: relative; margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.05); }
.ga-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #000; }
.ga-foto.off img { opacity: .35; filter: grayscale(1); }
.ga-foto.dest { box-shadow: 0 0 0 2px var(--amarillo); }
.ga-badge { position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--amarillo); color: #000; font-size: .8rem; }
.ga-foto .form-control { min-height: 38px; padding: 6px 10px; font-size: .9rem; }
.ga-acc { display: flex; justify-content: space-between; gap: 4px; }
.ga-acc button { flex: 1; height: 38px; border-radius: 10px; border: 0; background: rgba(255,255,255,.08); color: var(--tx); cursor: pointer; }
.ga-acc button:disabled { opacity: .3; cursor: default; }
.ga-acc button[data-ga="dest"][aria-pressed="true"] { background: var(--amarillo); color: #000; }
.ga-acc button[data-ga="ver"][aria-pressed="true"] { background: rgba(255,255,255,.2); }
.ga-acc button.ga-peligro { color: #ff8a8a; }
.ga-acc button:focus-visible { outline: 2px solid var(--rosa); }
@media (max-width: 560px) { .ga-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .ga-acc button { height: 34px; font-size: .8rem; } }

/* Mis alertas de administrador */
.mis-alertas { margin-bottom: 16px; }
.ma-estado { padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.ma-estado.ok { background: rgba(62,207,142,.12); color: #8ff0c4; }
.ma-estado.falta { background: rgba(255,210,31,.12); color: var(--amarillo); }
.ma-estado i { margin-right: 6px; }
.ma-lista { display: grid; gap: 8px; margin: 12px 0; }
.ma-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); cursor: pointer; }
.ma-item span { display: flex; flex-direction: column; gap: 2px; }
.ma-item small { color: var(--tx-2); font-size: .85rem; }
.ma-item input { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.18); position: relative; cursor: pointer; transition: background .2s; }
.ma-item input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ma-item input:checked { background: var(--rosa); }
.ma-item input:checked::after { transform: translateX(20px); }
.ma-item input:focus-visible { outline: 2px solid var(--rosa); outline-offset: 2px; }
.ma-pie { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ma-pie .form-msg { margin: 0; }
.ma-nota { font-size: .85rem; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .ma-item input, .ma-item input::after { transition: none; } }

/* Cookies: aviso con Aceptar y Rechazar al mismo nivel */
.cookies-banner { position: fixed; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 1250; max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; padding: 18px 20px; border-radius: 20px;
  background: var(--sup-2); color: var(--tx); border: 1px solid var(--linea); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.cookies-banner p { flex: 1 1 320px; margin: 0; font-size: .92rem; line-height: 1.5; color: var(--tx-2); }
.cookies-banner p strong { display: block; color: var(--tx); font-size: 1rem; margin-bottom: 4px; }
.cookies-banner p b { color: var(--tx); }
.cookies-banner a { color: var(--tx); text-decoration: underline; }
.cookies-acc { display: flex; gap: 10px; flex: 1 1 220px; }
.btn-cookies { flex: 1; background: #fff; color: #000; border: 0; }
.btn-cookies:hover { background: #e9ebff; }
@media (min-width: 961px) { .cookies-banner { bottom: 24px; } }
.terceros-aviso { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: var(--sup); color: var(--tx); }
.terceros-aviso[hidden] { display: none; }
.terceros-aviso > i { font-size: 2rem; color: var(--rosa); }
.terceros-aviso p { max-width: 46ch; margin: 0; color: var(--tx-2); }
.terceros-aviso a { color: var(--tx); }
.terceros-aviso .row-gap { justify-content: center; }
.map-wrap { position: relative; margin-top: 22px; border-radius: var(--r-m); overflow: hidden; }
.map-wrap .map-frame { margin-top: 0; border-radius: 0; }
.map-wrap .terceros-aviso { border-radius: var(--r-m); }
.reservio-frame .terceros-aviso { z-index: 2; }

/* Páginas legales */
.container.narrow { max-width: 820px; }
.legal { color: var(--tx-2); line-height: 1.65; }
.legal-sec { margin-top: 34px; }
.legal-sec h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--tx); margin-bottom: 12px; }
.legal p, .legal li { max-width: 72ch; }
.legal b, .legal strong { color: var(--tx); }
.legal a { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal-resumen { padding: 16px 18px; border-radius: 16px; background: var(--sup); border-left: 4px solid var(--rosa); }
.legal-resumen p { margin: 0; }
.legal-datos { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 14px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--sup); }
.legal-datos dt { font-weight: 700; color: var(--tx); }
.legal-datos dd { margin: 0; }
.legal .pendiente { color: var(--amarillo); }
.tabla-scroll { overflow-x: auto; margin: 10px 0; }
.legal-tabla { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.legal-tabla th, .legal-tabla td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--linea); }
.legal-tabla th { color: var(--tx); font-size: .85rem; }
.legal code { font-size: .85em; background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; color: var(--tx); }
@media (max-width: 560px) { .legal-datos { grid-template-columns: 1fr; gap: 2px; } .legal-datos dd { margin-bottom: 10px; } }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Casilla de privacidad en formularios */
.check-legal { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: .88rem; line-height: 1.45; color: var(--tx-2); cursor: pointer; }
.check-legal input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--rosa); }
.check-legal a { color: inherit; text-decoration: underline; }
.card-borrar { border: 1px solid rgba(255,138,138,.25); }
