/* ============================================================
   Barberia — hoja de estilos principal
   Paleta: negro carbon + dorado. Diseno mobile-first.
   ============================================================ */

:root {
  --bg:         #0d0d0f;
  --bg-soft:    #16161a;
  --card:       #1c1c21;
  --card-hover: #24242b;
  --line:       #2e2e36;
  --text:       #f2f2f4;
  --muted:      #a0a0ad;
  --gold:       #d4af37;
  --gold-soft:  #f0d787;
  --green:      #35c07a;
  --red:        #ef5b5b;
  --blue:       #5b9cef;
  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 10px 30px rgba(0, 0, 0, .45);
  --font:       'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bebas Neue', 'Oswald', Impact, var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }

/* ---------------- Barra superior ---------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 15, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; gap: .5rem .75rem;
  /* Con nombres largos, los botones bajan a una segunda linea en vez de aplastar la marca */
  flex-wrap: wrap;
  min-height: 62px; padding-block: .5rem;
}
/* Emblema + nombre en dos líneas: se lee como marca, no como texto suelto */
.brand {
  display: flex; align-items: center; gap: .6rem;
  margin-right: auto; min-width: min-content;
  text-transform: uppercase;
}
/* El logo pintado, como placa. Cuadrado y con detalle: funciona como sello. */
.brand__mark {
  flex: none; width: 42px; height: 42px;
  border-radius: 11px; object-fit: cover;
  border: 1px solid rgba(212, 175, 55, .38);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .5);
  transition: transform .25s ease, border-color .25s ease;
}
.brand:hover .brand__mark { transform: scale(1.06); border-color: var(--gold); }
.brand__text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  letter-spacing: .07em; line-height: 1;
  color: var(--text);
}
.brand__sub {
  font-size: clamp(.5rem, 1.7vw, .58rem);
  letter-spacing: .26em; line-height: 1.3;
  font-weight: 700; color: var(--gold);
  margin-top: .18rem;
}
.brand__sub:empty { display: none; }
/* El menú solo aparece cuando de verdad hay sitio: si no, se envolvería en dos filas */
.nav__links { display: none; gap: 1.4rem; font-size: .9rem; }
.nav__links a:hover { color: var(--gold); }
.nav__actions { display: flex; align-items: center; gap: .5rem; flex: none; }

/* Selector de idioma ES / EN */
.lang {
  display: flex; flex: none;
  border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--bg-soft);
}
.lang button {
  padding: .35rem .6rem; border: 0;
  background: transparent; color: var(--muted);
  font: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; transition: background .15s, color .15s;
}
.lang button:hover { color: var(--text); }
.lang button.is-active { background: var(--gold); color: #1a1405; }

@media (min-width: 1080px) {
  .nav__links { display: flex; }
}

/* ---------------- Botones ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .92rem;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, opacity .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn--gold   { background: var(--gold); color: #1a1405; }
.btn--gold:hover:not(:disabled) { background: var(--gold-soft); }
.btn--ghost  { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn--dark   { background: var(--card); color: var(--text); border-color: var(--line); }
.btn--dark:hover:not(:disabled) { background: var(--card-hover); }
.btn--danger { background: transparent; color: var(--red); border-color: rgba(239, 91, 91, .4); }
.btn--danger:hover:not(:disabled) { background: rgba(239, 91, 91, .12); }
.btn--sm { padding: .45rem .9rem; font-size: .82rem; }
.btn--block { width: 100%; }

/* ---------------- Portada ---------------- */

.hero {
  position: relative;
  padding: 3.2rem 0 3.5rem;
  background:
    radial-gradient(760px 520px at 82% 18%, rgba(212, 175, 55, .18), transparent 62%),
    linear-gradient(180deg, #101014 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/*
  Celular: título → fotos → datos (las fotos son el gancho, van arriba).
  Escritorio: texto y datos a la izquierda, fotos ocupando toda la derecha.
*/
.hero__inner { display: grid; gap: 2rem; align-items: center; }
.hero__text { order: 1; }
.hero__gallery { order: 2; }
.hero__facts { order: 3; }

@media (min-width: 940px) {
  .hero { padding: 3.4rem 0 3.8rem; }
  .hero__inner {
    grid-template-columns: 1.02fr .98fr;
    column-gap: 3.5rem; row-gap: 1.5rem;
  }
  .hero__text    { grid-column: 1; grid-row: 1; }
  .hero__gallery { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .hero__facts   { grid-column: 1; grid-row: 2; margin-top: 0; }
}

/* Collage de referencias: el gancho */
.hero__gallery {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .7rem; position: relative;
}
.hero__gallery[hidden] { display: none; }
.hero__shot {
  position: relative; display: block;
  border-radius: var(--radius);
  overflow: hidden; border: 1px solid rgba(212, 175, 55, .22);
  background: var(--card);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  transition: transform .3s ease, border-color .3s ease;
}
.hero__shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.hero__shot:hover { transform: translateY(-5px); border-color: var(--gold); }
.hero__shot figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem .7rem .55rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  font-family: var(--font-display); font-size: .95rem;
  letter-spacing: .05em; text-transform: uppercase;
}
/* En pantallas grandes la segunda columna baja un poco: se ve menos rígido */
@media (min-width: 940px) {
  .hero__gallery { gap: .9rem; }
  .hero__shot:nth-child(even) { transform: translateY(2.2rem); }
  .hero__shot:nth-child(even):hover { transform: translateY(1.7rem); }
}
.hero__gallery-cta {
  grid-column: 1 / -1; text-align: center;
  font-size: .82rem; color: var(--muted);
}
@media (min-width: 940px) { .hero__gallery-cta { margin-top: 2.2rem; } }
.hero__gallery-cta a { color: var(--gold); font-weight: 600; }
.hero__gallery-cta a:hover { text-decoration: underline; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .32rem .85rem; margin-bottom: 1.1rem;
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 999px;
  background: rgba(212, 175, 55, .08);
  color: var(--gold);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 5rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; margin: 0 0 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  margin-top: 2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.hero__facts strong { display: block; color: var(--text); font-size: 1.15rem; }

/* ---------------- Secciones ---------------- */

.section { padding: 3.5rem 0; }
.section--alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 2rem; }
.section__eyebrow {
  color: var(--gold); font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
}
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  letter-spacing: .03em; text-transform: uppercase;
}
.section__head p { color: var(--muted); margin: 0; max-width: 58ch; }

.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Tarjetas ---------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.service {
  display: flex; align-items: flex-start; gap: 1rem;
  transition: border-color .18s, transform .18s;
}
.service:hover { border-color: rgba(212, 175, 55, .5); transform: translateY(-2px); }
.service__body { flex: 1; min-width: 0; }
.service h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.service p { color: var(--muted); font-size: .9rem; margin: 0 0 .4rem; }
.service__meta { color: var(--muted); font-size: .82rem; }
.service__price {
  font-family: var(--font-display); font-size: 1.75rem;
  color: var(--gold); letter-spacing: .02em; line-height: 1;
}

/* Barberos */
.barber { padding: 0; overflow: hidden; }
.barber__photo {
  aspect-ratio: 4 / 5; width: 100%; object-fit: cover;
  background: linear-gradient(135deg, #23232a, #14141a);
}
.barber__photo--empty {
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 3.5rem; color: #3d3d47;
}
.barber__body { padding: 1.1rem 1.2rem 1.3rem; }
.barber__body h3 { font-size: 1.15rem; }
.barber__body p { color: var(--muted); font-size: .9rem; margin: 0 0 .8rem; }
.barber__days { color: var(--muted); font-size: .8rem; margin-bottom: .9rem; }

/* Referencias de cortes (catalogo de estilos) */
.styles {
  display: grid; gap: .9rem;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .8rem;
  margin-inline: -1rem; padding-inline: 1rem;
}
@media (min-width: 640px) {
  .styles { grid-auto-columns: 40%; }
}
@media (min-width: 980px) {
  .styles {
    grid-auto-flow: row; grid-auto-columns: auto;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible; margin-inline: 0; padding-inline: 0;
  }
}
.style {
  position: relative; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  display: block; color: inherit;
}
.style img {
  aspect-ratio: 3 / 4; width: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.style:hover img { transform: scale(1.05); }
.style__overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem .95rem .95rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .9) 55%);
}
/* Precio sobre la foto: el cliente lo ve sin tener que entrar */
.style__precio {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  padding: .3rem .7rem;
  background: var(--gold); color: #1a1405;
  border-radius: 999px;
  font-family: var(--font-display); font-size: 1.15rem;
  letter-spacing: .03em; line-height: 1.2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
}

.style__overlay strong {
  display: block; font-family: var(--font-display);
  font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase;
}
.style__overlay span { display: block; color: var(--muted); font-size: .8rem; margin-bottom: .6rem; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.gallery img { aspect-ratio: 1; object-fit: cover; transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: .6rem .7rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  font-size: .78rem;
}

/* El logo grande, como el letrero del local */
.letrero {
  width: min(280px, 70%);
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, .3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  margin-bottom: 1.4rem;
}

/* ---------------- Formularios ---------------- */

.field { margin-bottom: 1rem; }
.field label {
  display: block; margin-bottom: .35rem;
  font-size: .84rem; font-weight: 600; color: var(--muted);
}
.input, .select, .textarea {
  width: 100%; padding: .75rem .9rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: .95rem;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
}
.textarea { resize: vertical; min-height: 80px; }
.field__hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }

.tabs { display: flex; gap: .4rem; background: var(--bg-soft); padding: .3rem; border-radius: 999px; margin-bottom: 1.5rem; }
.tabs button {
  flex: 1; padding: .6rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
}
.tabs button.is-active { background: var(--gold); color: #1a1405; }

/* ---------------- Avisos ---------------- */

.alert {
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  font-size: .9rem; margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert--error   { background: rgba(239, 91, 91, .12); border-color: rgba(239, 91, 91, .35); color: #ffb3b3; }
.alert--ok      { background: rgba(53, 192, 122, .12); border-color: rgba(53, 192, 122, .35); color: #a6f0c9; }
.alert--info    { background: rgba(91, 156, 239, .12); border-color: rgba(91, 156, 239, .35); color: #b9d6ff; }
.alert[hidden]  { display: none; }

.badge {
  display: inline-block; padding: .2rem .6rem;
  border-radius: 999px; font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.badge--confirmada { background: rgba(53, 192, 122, .16); color: #7ee2ac; }
.badge--completada { background: rgba(91, 156, 239, .16); color: #a9cbff; }
.badge--cancelada  { background: rgba(239, 91, 91, .16); color: #ffa8a8; }
.badge--no_asistio { background: rgba(160, 160, 173, .16); color: var(--muted); }

/* ---------------- Reserva por pasos ---------------- */

.steps {
  display: flex; gap: .4rem; margin-bottom: 2rem;
  font-size: .78rem; color: var(--muted);
}
.step {
  flex: 1; padding-top: .6rem;
  border-top: 3px solid var(--line);
  transition: border-color .2s, color .2s;
}
.step.is-active { border-color: var(--gold); color: var(--gold); font-weight: 700; }
.step.is-done { border-color: rgba(212, 175, 55, .5); color: var(--text); }

.choice {
  display: flex; align-items: center; gap: .9rem;
  width: 100%; text-align: left;
  padding: 1rem 1.1rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); color: inherit;
  font: inherit; cursor: pointer;
  transition: border-color .16s, background .16s;
}
.choice:hover { border-color: rgba(212, 175, 55, .55); background: var(--card-hover); }
.choice.is-selected { border-color: var(--gold); background: rgba(212, 175, 55, .08); }
.choice__avatar {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  object-fit: cover; background: #2a2a32;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.4rem; color: var(--gold);
}
.choice__main { flex: 1; min-width: 0; }
.choice__main strong { display: block; }
.choice__main span { color: var(--muted); font-size: .85rem; }
.choice__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }

/* Tira de referencias de cortes dentro de la reserva */
.chips {
  display: flex; gap: .6rem; overflow-x: auto;
  padding-bottom: .6rem; scrollbar-width: thin;
  margin-inline: -1rem; padding-inline: 1rem;
}
.chip {
  flex: none; width: 112px; padding: 0;
  background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
  color: inherit; font: inherit; cursor: pointer; text-align: left;
  transition: border-color .16s;
}
.chip:hover { border-color: rgba(212, 175, 55, .55); }
.chip.is-selected { border-color: var(--gold); }
.chip img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.chip__name {
  display: block; padding: .45rem .55rem;
  font-size: .78rem; font-weight: 600; line-height: 1.25;
}
.chip.is-selected .chip__name { color: var(--gold); }
.chip__check {
  position: absolute; top: .4rem; right: .4rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: #1a1405;
  display: none; place-items: center; font-size: .8rem; font-weight: 700;
}
.chip { position: relative; }
.chip.is-selected .chip__check { display: grid; }

@media (min-width: 700px) {
  .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* Tira de dias */
.days {
  display: flex; gap: .5rem; overflow-x: auto;
  padding-bottom: .6rem; margin-bottom: 1.4rem;
  scrollbar-width: thin;
}
.day {
  flex: none; width: 68px; padding: .7rem .3rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: inherit;
  font: inherit; cursor: pointer; text-align: center;
  transition: border-color .16s, background .16s;
}
.day:hover:not(:disabled) { border-color: rgba(212, 175, 55, .55); }
.day.is-selected { border-color: var(--gold); background: rgba(212, 175, 55, .12); }
.day:disabled { opacity: .32; cursor: not-allowed; }
.day__name { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day__num { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.day__free { display: block; font-size: .66rem; color: var(--green); }
.day:disabled .day__free { color: var(--muted); }

/* Tabla de horas libres */
.slots {
  display: grid; gap: .55rem;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.slot {
  padding: .7rem .4rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: inherit; font: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer; text-align: center;
  transition: border-color .16s, background .16s, color .16s;
}
.slot:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.slot.is-selected { background: var(--gold); border-color: var(--gold); color: #1a1405; }
.slot:disabled {
  opacity: .38; cursor: not-allowed;
  text-decoration: line-through; color: var(--muted);
}
.slots__legend { display: flex; gap: 1.2rem; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.slots__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; }

/* ---------------- Citas ---------------- */

.appt {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.2rem;
}
.appt__date {
  flex: none; width: 62px; text-align: center;
  padding: .5rem .2rem; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.appt__date b { display: block; font-size: 1.5rem; line-height: 1.1; }
.appt__date span { font-size: .7rem; text-transform: uppercase; color: var(--gold); letter-spacing: .06em; }
.appt__info { flex: 1; min-width: 0; }
.appt__info h3 { font-size: 1.02rem; margin-bottom: .15rem; }
.appt__info p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------------- Tabla publica de ocupacion ---------------- */

.board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  max-height: 70vh;
}
.board table { min-width: 0; width: 100%; border-collapse: separate; border-spacing: 0; }

.board thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-soft);
  padding: .6rem .3rem;
  text-align: center; vertical-align: bottom;
  border-bottom: 1px solid var(--line);
}
.board__barber { font-size: .68rem; text-transform: none; letter-spacing: 0; }
.board__barber img, .board__initial {
  display: block; width: 34px; height: 34px;
  margin: 0 auto .3rem; border-radius: 50%;
  object-fit: cover; background: #2a2a32;
}
.board__initial {
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--gold);
}
.board__barber span { display: block; color: var(--text); font-weight: 600; }

.board__hour-head { width: 76px; }
.board__hour {
  position: sticky; left: 0; z-index: 1;
  width: 76px; padding: .4rem .5rem;
  background: var(--bg-soft);
  font-size: .78rem; font-weight: 700; text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.board tbody tr:hover .board__hour { background: var(--card-hover); }
.board tbody tr.is-full .board__hour { color: var(--muted); font-weight: 500; }

.board__cell {
  padding: .35rem .2rem; text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: .68rem;
}
.board__cell--libre   { background: rgba(53, 192, 122, .10); color: #7ee2ac; }
.board__cell--ocupado { background: rgba(239, 91, 91, .09);  color: #ffa8a8; }
.board__cell--cerrado,
.board__cell--pasado  { background: transparent; color: #4a4a55; }

.board__dot {
  display: inline-block; width: 9px; height: 9px;
  border-radius: 50%; vertical-align: middle;
}
.board__dot--libre   { background: var(--green); }
.board__dot--ocupado { background: var(--red); }
.board__dot--cerrado,
.board__dot--pasado  { background: #3a3a44; }
.board__text { display: none; }

@media (min-width: 620px) {
  .board__text { display: inline; margin-left: .3rem; }
  .board__cell { font-size: .74rem; }
}

.board__legend {
  display: flex; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; color: var(--muted);
}
.board__legend i { margin-right: .35rem; }

/* ---------------- Tablas (admin) ---------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
th, td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--card-hover); }

/* ---------------- Admin ---------------- */

.admin-tabs {
  display: flex; gap: .3rem; overflow-x: auto;
  border-bottom: 1px solid var(--line); margin-bottom: 1.8rem;
}
.admin-tabs button {
  padding: .8rem 1.1rem; border: 0; background: transparent;
  color: var(--muted); font: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.admin-tabs button.is-active { color: var(--gold); border-bottom-color: var(--gold); }

.stats { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.8rem; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { padding: 1rem; }
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1.1; }
.stat span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.link-box {
  display: flex; gap: .5rem; align-items: center; flex-wrap: wrap;
  padding: .8rem 1rem; background: var(--bg-soft);
  border: 1px dashed rgba(212, 175, 55, .45); border-radius: var(--radius-sm);
}
.link-box code { flex: 1; min-width: 200px; color: var(--gold-soft); font-size: .9rem; word-break: break-all; }

/* ---------------- Utilidades ---------------- */

.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.6rem; }
.hidden { display: none !important; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

.auth-wrap { max-width: 430px; margin: 3rem auto; }

.footer {
  padding: 2.5rem 0; border-top: 1px solid var(--line);
  background: var(--bg-soft); color: var(--muted); font-size: .88rem;
}
.footer a:hover { color: var(--gold); }

/* Visor de fotos */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .9); padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(920px, 100%); max-height: 86vh; object-fit: contain; border-radius: var(--radius); }
.lightbox button {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  color: var(--text); font-size: 1.3rem; cursor: pointer;
}

.spinner {
  width: 26px; height: 26px; margin: 2rem auto;
  border: 3px solid var(--line); border-top-color: var(--gold);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
