/* ============================================================
   locales.css - Restaurada Paleta Original + Fix Logos Completos
   ============================================================ */

:root {
  /* Paleta Oficial Basada en el Flyer */
  --primary: #004080;            /* Azul Rey Principal */
  --primary-dk: #001F3F;         /* Azul Marino Profundo (Nav/Hero) */
  --primary-lt: #00A3E0;         /* Azul Cian Reluciente */
  --primary-faint: #E6F4FA;      /* Azul Claro Transparente */
  
  --oro: #FFC72C;                /* Amarillo/Dorado Destacado */
  --oro-lt: #FFE082;             /* Amarillo Claro */
  
  --green: #059669;
  --green-faint: #ECFDF5;
  --red: #DC2626;
  --red-faint: #FEF2F2;
  
  --white: #FFFFFF;
  --cal: #F8FAFC;                /* Fondo Gris/Azulado Muy Suave */
  --cal-dk: #E2E8F0;             /* Bordes */
  
  --carbon: #0F172A;
  --carbon-60: #475569;
  --carbon-30: #94A3B8;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0, .05);
  --shadow-md: 0 4px 12px rgba(0,0,0, .08);
  --shadow-card: 0 2px 8px rgba(0,0,0, .06);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--cal); color: var(--carbon); line-height: 1.6; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--primary-dk);
  border-bottom: 2px solid var(--oro);
  height: var(--nav-h);
}

.navbar_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar_brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.navbar_brand span { color: var(--oro-lt); font-style: italic; }
.navbar_nav { display: flex; align-items: center; gap: .5rem; }

.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  padding: .45rem 1rem;
  border-radius: var(--r-full);
  transition: all .15s;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

/* HERO */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  padding: 3rem 1.5rem;
  color: var(--white);
  border-bottom: 2px solid var(--oro);
}

.page-hero_inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.page-hero_eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--oro-lt);
  margin-bottom: .5rem;
}

.page-hero_title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero_title em { color: var(--oro-lt); font-style: italic; }
.page-hero_sub { margin-top: .6rem; font-size: .95rem; color: rgba(255, 255, 255, .85); max-width: 500px; }

.page-hero_stat {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-lg);
  padding: 1rem 1.5rem;
  text-align: center;
}

.page-hero_stat-num { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--oro-lt); }
.page-hero_stat-label { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }

/* FILTROS Y BÚSQUEDA */
.filters-bar {
  background: var(--white);
  border-bottom: 1px solid var(--cal-dk);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.filters-bar_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.filters-bar_label { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--carbon-60); }

.filter-chip {
  padding: .4rem .9rem;
  border-radius: var(--r-full);
  border: 1px solid var(--cal-dk);
  background: var(--cal);
  color: var(--carbon-60);
  font-size: .82rem;
  font-weight: 500;
  transition: all .15s;
}

.filter-chip:hover, .filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.filters-bar_search { margin-left: auto; position: relative; }
.filters-bar_search-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); font-size: .85rem; }
.filters-bar_input {
  height: 38px;
  border: 1.5px solid var(--cal-dk);
  border-radius: var(--r-full);
  padding: 0 1rem 0 2.25rem;
  font-size: .85rem;
  outline: none;
  width: 240px;
}

.filters-bar_input:focus { border-color: var(--primary); background: var(--white); }

/* RESULTADOS INFO */
.results-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.results-info_count { font-size: .85rem; color: var(--carbon-60); }
.results-info_count strong { color: var(--primary); }
.results-info_divider { flex: 1; height: 1px; background: var(--cal-dk); }
.results-info_sort { font-size: .8rem; color: var(--carbon-60); }
.results-info_sort select { border: none; background: none; color: var(--primary); font-weight: 700; cursor: pointer; }

/* GRID Y TARJETAS (AJUSTE PARA MOSTRAR LOGO COMPLETO SIN CORTE DE ESQUINAS) */
.locales-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.local-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--cal-dk);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  transition: transform .15s, box-shadow .15s;
}

.local-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* CORRECCIÓN DE LOGOS: Contenedor con margen sin recortar esquinas */
.local-card_img-wrap {
  position: relative;
  background: #FFFFFF;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--cal-dk);
  min-height: 150px;
}

.local-card_img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 130px;
  object-fit: contain; /* Garantiza mostrar la imagen y esquinas completas */
  border-radius: 0px;  /* Remueve bordes redondeados que cortaban las esquinas */
}

.local-card_cat-badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: var(--primary-dk);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .25rem .5rem;
  border-radius: var(--r-full);
}

.local-card_body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
}

.local-card_header { display: flex; align-items: center; gap: .75rem; }

.local-card_logo {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--primary-faint);
  color: var(--primary);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.local-card_name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--carbon); }
.local-card_tipo { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--primary); }

.local-card_meta {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .85rem;
  color: var(--carbon-60);
}

.local-card_aside {
  padding: 1.25rem;
  border-left: 1px solid var(--cal-dk);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .75rem;
  background: #FAF8F5;
}

.local-card_aside-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--carbon-30); margin-bottom: .4rem; }
.local-card_socials { display: flex; align-items: center; gap: .6rem; }

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--cal-dk);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.social-btn--wa { color: #25D366; }
.social-btn--wa:hover { background: #25D366; color: #FFF; }
.social-btn--fb { color: #1877F2; }
.social-btn--fb:hover { background: #1877F2; color: #FFF; }
.social-btn--ig { color: #E1306C; }
.social-btn--ig:hover { background: #E1306C; color: #FFF; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: var(--r-full);
}

.status-pill--active { background: var(--green-faint); color: var(--green); }
.status-pill--inactive { background: var(--red-faint); color: var(--red); }

@media (max-width: 900px) {
  .local-card { grid-template-columns: 1fr; }
  .local-card_img-wrap { border-right: none; border-bottom: 1px solid var(--cal-dk); }
  .local-card_aside { border-left: none; border-top: 1px solid var(--cal-dk); flex-direction: row; align-items: center; }
  .filters-bar_search { width: 100%; margin-left: 0; }
  .filters-bar_input { width: 100%; }
}