/* ══════════════════════════════════════════
   TOKENS
══════════════════════════════════════════ */
:root {
  --edzi:       #c9184a;
  --edzi-dark:  #a01038;
  --bg:         #f7f5f2;
  --surface:    #ffffff;
  --surface2:   #f0ece6;
  --border:     #e6e0d8;
  --text:       #1e1a16;
  --muted:      #9a9088;
  --open:       #1a9e6a;
  --closed:     #d94040;
  --shadow:     0 2px 12px rgba(0,0,0,.07);
  --shadow-lg:  0 8px 28px rgba(0,0,0,.12);
  --r-card:     16px;
  --r-pill:     999px;
  --f:          'Nunito', sans-serif;
  --nav-h:      60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 900;
  background: var(--edzi);
  height: var(--nav-h);
  display: flex; align-items: center;
  box-shadow: 0 2px 12px rgba(201,24,74,.25);
}
.nav-inner {
  width: 100%; max-width: 1100px; margin: auto;
  padding: 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.nav-logo img { height: 26px; filter: brightness(0) invert(1); }

.nav-search {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  transition: background .2s;
}
.nav-search:focus-within {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.5);
}
.nav-search i { color: rgba(255,255,255,.7); font-size: 15px; flex-shrink: 0; }
.nav-search input {
  background: none; border: none; outline: none;
  color: #fff; font-family: var(--f); font-size: 13px; font-weight: 500;
  width: 100%;
}
.nav-search input::placeholder { color: rgba(255,255,255,.6); }

.nav-socials { display: flex; gap: 12px; }
.nav-socials a {
  color: rgba(255,255,255,.75); font-size: 18px;
  transition: color .2s;
}
.nav-socials a:hover { color: #fff; }

/* ══════════════════════════════════════════
   HERO BANNER
══════════════════════════════════════════ */
.hero-banner {
  background: linear-gradient(135deg, var(--edzi) 0%, #8b0f31 100%);
  padding: 28px 20px 32px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: .5; pointer-events: none;
}
.hero-banner h1 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.logo-cogrill {
  height: 52px; margin: 0 auto 10px;
  filter: brightness(0) invert(1);
  position: relative; z-index: 1;
}
.hero-banner p {
  font-size: 13px; color: rgba(255,255,255,.75);
  font-weight: 400; position: relative; z-index: 1;
}

/* ══════════════════════════════════════════
   CATEGORY CHIPS
══════════════════════════════════════════ */
.cats-bar {
  position: sticky; top: var(--nav-h); z-index: 800;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.cats-inner {
  max-width: 1100px; margin: auto; padding: 0 16px;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  display: flex; gap: 8px;
}
.cats-inner::-webkit-scrollbar { display: none; }

.cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; white-space: nowrap;
  transition: all .2s; user-select: none;
  font-family: var(--f);
}
.cat-chip:hover { border-color: var(--edzi); color: var(--edzi); }
.cat-chip.active {
  background: var(--edzi); color: #fff;
  border-color: var(--edzi);
  box-shadow: 0 2px 10px rgba(201,24,74,.25);
}

/* ══════════════════════════════════════════
   MAIN WRAP
══════════════════════════════════════════ */
.main-wrap {
  max-width: 1100px; margin: 0 auto;
  padding: 20px 16px 80px;
}
.section-label {
  font-size: 11px; font-weight: 800; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════
   REST GRID — Bootstrap row
══════════════════════════════════════════ */
.rest-grid {
  /* Bootstrap row maneja el grid */
}

/* ── Card contenedor ── */
.rest-item {
  margin-bottom: 0; /* Bootstrap gap maneja espacio */
}

/* ══════════════════════════════════════════
   RESTAURANT CARD — VERTICAL (desktop)
══════════════════════════════════════════ */
.rest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.rest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #d4cfc9;
}
.rest-card.is-closed { opacity: .65; }

/* TOP badge */
.rest-card-wrap { position: relative; }
.top-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--edzi); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 3px 9px; border-radius: var(--r-pill);
  letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(201,24,74,.4);
}

/* Imagen vertical */
.rest-img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  background: var(--surface2);
}

.rest-body {
  padding: 14px 16px 16px;
  flex: 1; display: flex; flex-direction: column;
}
.rest-name {
  font-size: 15px; font-weight: 800;
  margin-bottom: 5px; color: var(--text);
  line-height: 1.2;
}
.rest-tags {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px;
}
.rest-tag {
  font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: var(--r-pill);
  background: var(--surface2); color: var(--muted);
  border: 1px solid var(--border);
}
.rest-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; margin-bottom: 12px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.open   { background: var(--open); box-shadow: 0 0 5px rgba(26,158,106,.5); }
.status-dot.closed { background: var(--closed); }
.status-text.open   { color: var(--open); font-weight: 700; }
.status-text.closed { color: var(--closed); font-weight: 600; }
.status-next { color: var(--muted); font-size: 11px; }

.btn-menu {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--edzi); color: #fff;
  font-family: var(--f); font-weight: 800; font-size: 13px;
  padding: 10px; border-radius: 10px; border: none;
  transition: background .2s, box-shadow .2s;
  text-decoration: none; margin-top: auto;
}
.btn-menu:hover {
  background: var(--edzi-dark);
  box-shadow: 0 4px 14px rgba(201,24,74,.3);
  color: #fff;
}
.rest-card.is-closed .btn-menu {
  background: var(--surface2); color: var(--muted);
  box-shadow: none; pointer-events: none;
}

/* ══════════════════════════════════════════
   CARD HORIZONTAL — móvil
══════════════════════════════════════════ */
@media (max-width: 575px) {
  .rest-card {
    flex-direction: row;
    border-radius: 14px;
    height: auto;
    align-items: stretch;
  }

  .rest-card-wrap {
    width: 110px;
    flex-shrink: 0;
    position: relative;
  }

  .rest-img {
    width: 110px;
    height: 100%;
    aspect-ratio: unset;
    object-fit: cover;
    border-radius: 14px 0 0 14px;
  }

  .top-badge {
    top: 6px; left: 6px;
    font-size: 9px; padding: 2px 7px;
  }

  .rest-body {
    padding: 12px 14px;
    flex: 1;
  }

  .rest-name {
    font-size: 14px; margin-bottom: 3px;
  }

  .rest-tags { margin-bottom: 6px; gap: 4px; }
  .rest-tag  { font-size: 10px; padding: 1px 7px; }

  .rest-status { margin-bottom: 8px; }

  .btn-menu {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
  }
}

/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 48px 20px;
  color: var(--muted); width: 100%;
}
.empty-state i { font-size: 2.5rem; display: block; margin-bottom: 10px; opacity: .3; }
.empty-state p { font-size: 14px; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--edzi);
  padding: 36px 20px 28px;
  text-align: center;
}
.footer img { height: 36px; margin: 0 auto 12px; filter: brightness(0) invert(1); }
.footer h4  { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer p   { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 14px; }

.btn-join {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--edzi);
  font-family: var(--f); font-weight: 800; font-size: 13px;
  padding: 10px 22px; border-radius: var(--r-pill);
  transition: box-shadow .2s, transform .15s;
}
.btn-join:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transform: translateY(-1px); color: var(--edzi);
}

.footer-socials { display: flex; justify-content: center; gap: 16px; margin: 18px 0 14px; }
.footer-socials a { color: rgba(255,255,255,.7); font-size: 20px; transition: color .2s; }
.footer-socials a:hover { color: #fff; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.15); margin: 0 0 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.45); }
.footer-copy strong { color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════
   SKELETON
══════════════════════════════════════════ */
.skel {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: skel .9s ease infinite;
  border-radius: 6px;
}
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ══════════════════════════════════════════
   HIDE SOCIALS EN MÓVIL
══════════════════════════════════════════ */
@media (max-width: 575px) {
  .nav-socials { display: none; }
}