/* ===== RESTAURANTES — Página pública ===== */

:root {
  --color-restaurante: #c96b12;
  --shadow-card:       0 2px 5px rgba(0,0,0,.12);
}

/* ---- NAV TABS — override margen inferior ---- */
.nav-tabs { margin-bottom: 45px; }

/* ---- ZONA / GRUPO — override posición ---- */
.grupo-zona { position: relative; }

.logo-zona {
  height: 50px;
  margin-top: -50px;
}

.grupo-encabezado h2 {
  font-family: 'Goudy', serif;
  font-size: 1.25em;
  color: var(--color-tipo, #c96b12);
  margin: 0;
}

/* ---- TARJETA ---- */
.restaurante-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--color-tipo, #c96b12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 0 1 calc(25% - 8px);
  max-width: calc(25% - 8px);
  min-width: 180px;
  transition: transform .15s ease, box-shadow .15s ease;
  animation: fadeInAtraccion 0.6s ease forwards;
}

.restaurante-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.card-banner {
  height: 100px;
  background: center/cover no-repeat;
}

.card-banner-color {
  background: var(--color-tipo, #c96b12);
  opacity: .75;
  width: 100%;
  display: block;
}

.card-body {
  padding: .6rem .75rem .75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.card-titulo {
  font-family: 'Germania', serif;
  font-size: 1.2rem;
  color: #000;
  line-height: 1.2;
  margin-bottom: 2px;
  font-weight: normal;
}

.card-ubicacion {
  font-size: .9rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
}

.num-ubicacion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-tipo, #c96b12);
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.icon-ubi {
  width: 15px;
  height: 15px;
  color: var(--color-tipo, #c96b12);
  flex-shrink: 0;
}

.icon-ubi svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.card-descripcion {
  font-size: .82rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* ---- CARACTERÍSTICAS ---- */
.caracteristicas-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0 0;
}

.caracteristica-tag {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  background: color-mix(in srgb, var(--car-color, #555555) 12%, #fff);
  color: var(--car-color, #555555);
  border-radius: 2px;
  padding: .12rem .45rem;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid var(--car-color, #555555);
}

.caracteristica-tag i,
.caracteristica-tag svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke-width: 2.2;
}

/* ---- FRANJAS HORARIAS ---- */
.franjas-lista {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  margin: 8px 0;
}

.icon-clock {
  color: #999;
  flex-shrink: 0;
}

.icon-clock svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
  display: block;
}

.franja {
  padding: .2rem .55rem;
  border-radius: 4px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  letter-spacing: .03em;
}

.franja.es-abierto {
  background: rgba(34,139,34,.08);
  color: #1a5c1a;
  border-color: rgba(34,139,34,.25);
}

.franja.es-fuera {
  background: rgba(180,40,40,.07);
  color: #7a2020;
  border-color: rgba(180,40,40,.2);
}

/* ---- BADGE CERRADO HOY ---- */
.badge-cerrado-hoy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: #999;
  border-radius: 6px;
  padding: 3px 0;
  font-size: .78rem;
  font-weight: 500;
  margin-top: 4px;
  font-family: 'Roboto Condensed', sans-serif;
}

.badge-cerrado-hoy svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ---- SIN RESTAURANTES ---- */
.sin-prog-bloque {
  width: 96%;
  max-width: 1500px;
  margin: 5px auto;
  background: color-mix(in srgb, var(--color-restaurante) 5%, #fff);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.sin-programacion {
  max-width: 500px;
  padding: 2.5rem 2rem;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  border-top: 4px solid var(--color-restaurante);
}

.sin-prog-deco {
  color: var(--color-restaurante);
  font-size: .9rem;
  opacity: .5;
  letter-spacing: .5em;
  margin: .5rem 0;
}

.sin-prog-icono {
  font-size: 4rem;
  margin: 1rem 0 .75rem;
  line-height: 1;
}

.sin-prog-titulo {
  font-family: 'Goudy', serif;
  font-size: 1.8rem;
  color: var(--color-restaurante);
  margin-bottom: .75rem;
  letter-spacing: .04em;
}

.sin-prog-texto {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  color: #888;
  line-height: 1.7;
}

/* ---- MAPA ---- */
.mapa-seccion { --mapa-color: var(--color-restaurante); }

.leyenda-cerrado-icono {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: #aaa;
  flex-shrink: 0;
  stroke-width: 2;
}

.leyenda-item.activo .leyenda-cerrado-icono { color: #fff; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .restaurante-card { flex: 0 1 calc(33.333% - 7px); max-width: calc(33.333% - 7px); }
}

@media (max-width: 600px) {
  .grupo-zona { width: 96%; padding-left: 2%; padding-right: 2%; }
  .tarjetas { gap: 8px; }
  .restaurante-card { flex: 1 1 100%; max-width: none; }
}
