/* =========================================================
   MORFI BOLÍVAR — sistema de diseño
   Paleta: crema tostado + café oscuro + terracota quemado
   ========================================================= */

:root {
  /* ===== FONDO GENERAL ===== */
  --crema: #F7F5F2;

  /* ===== FONDO DE TARJETAS ===== */
  --crema-tarjeta: #FFFFFF;

  /* ===== TEXTOS ===== */
  --cafe-oscuro: #292426;
  --cafe-medio: #756C6F;

  /* ===== COLOR PRINCIPAL ===== */
  --terracota: #A44768;

  /* ===== COLOR PRINCIPAL OSCURO / HOVER ===== */
  --terracota-oscuro: #823650;

  /* ===== LOCALES ABIERTOS ===== */
  --oliva: #5F806B;
  --oliva-oscuro: #456252;

  /* ===== LOCALES CERRADOS ===== */
  --rojo-cerrado: #9B4B4B;

  /* ===== BORDES ===== */
  --linea: #E6E1DE;

  /* ===== SOMBRAS ===== */
  --sombra: rgba(41, 36, 38, 0.10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background-color: var(--crema);
  color: var(--cafe-oscuro);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(46,32,24,0.05) 1px, transparent 0);
  background-size: 22px 22px;
}

.btn-instagram{
  display:inline-block;
  margin-top:.5rem;
  padding:.4rem .8rem;
  border-radius:20px;
  background:#C9375A;
  color:#fff;
  font-size:.8rem;
  font-weight:600;
  text-decoration:none;
}

.menu-fotos{
  display:flex;
  gap:.4rem;
  margin-top:.6rem;
  overflow-x:auto;
}
.menu-fotos img{
  width:80px;
  height:80px;
  object-fit:cover;
  border-radius:6px;
  cursor:pointer;
  flex-shrink:0;
}

.btn-whatsapp{
  display:inline-block;
  padding:.4rem .8rem;
  border-radius:20px;
  background:#25D366;
  color:#fff;
  font-size:.8rem;
  font-weight:600;
  text-decoration:none;
}

/* ===== ENCABEZADO ===== */
.encabezado {
  position: relative;
  overflow: hidden;
  padding: 100px 120px;  /* subí este número para más alto, bajalo para menos */
  text-align: center;
}

.video-fondo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Capa oscura encima del video para que el texto se lea bien */
.encabezado::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.logo-local{
  width: 80px;px;
  height: 50px;
  object-fit: contain;
  object-position: center;
  border:3px solid rgba(0,0,0,.1);
}

.encabezado-contenido {
  position: relative;
  z-index: 2;
}

/* ===== KEYFRAMES (definición de las animaciones) ===== */

/* El degradado se mueve suavemente entre los colores */
@keyframes gradiente-movil {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* El texto entra desde abajo con un fade */
@keyframes entrada-titulo {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BARRA DE FILTROS ===== */
.barra-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.barra-filtros input[type="text"] {
  width: 300px;
  min-width: 220px;

  padding: 12px 16px;

  border: 1px solid #000000;
  border-radius: 14px;

  font-family: inherit;
  font-size: 14px;

  background: #fff;
  color: var(--cafe-oscuro);

  outline: none;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.barra-filtros input[type="text"]::placeholder {
  color: #999;
}

.barra-filtros input[type="text"]:focus {
  border-color: #8f4265;

  box-shadow:
    0 0 0 3px rgba(143, 66, 101, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);

  transform: translateY(-1px);
}


/* ===== SELECTORES ===== */

.barra-filtros select {
  appearance: none;
  -webkit-appearance: none;

  padding: 11px 38px 11px 14px;

  border: 1px solid #000000;
  border-radius: 12px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 500;

  background-color: #fff;
  color: #4a3a40;

  cursor: pointer;

  outline: none;

  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.04);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.barra-filtros select:hover {
  background-color: #ffffff;
  border-color: #c9a8b8;
}

.barra-filtros select:focus {
  border-color: #8f4265;

  box-shadow:
    0 0 0 3px rgba(143, 66, 101, 0.10);
}


/* ===== FILTRO CHECKBOX ===== */

.filtro-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 10px 14px;

  border: 1px solid #000000;
  border-radius: 12px;

  background: #ffffff;

  color: #08d63c;

  font-size: 13px;
  font-weight: 500;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.filtro-checkbox:hover {
  background-color: #faf7f8;
  border-color: #c9a8b8;
}


/* Checkbox */

.filtro-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 18px;
  height: 18px;

  margin: 0;

  border: 2px solid #bbb;
  border-radius: 6px;

  background: rgb(64, 184, 118);

  cursor: pointer;

  position: relative;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

/* Checkbox activo */

.filtro-checkbox input[type="checkbox"]:checked {
  background-color: #8f4265;
  border-color: #8f4265;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 800px) {

  .barra-filtros {
    padding: 12px;
    gap: 8px;

    justify-content: stretch;
  }

  .barra-filtros input[type="text"] {
    width: 100%;
    min-width: 100%;
  }

  .barra-filtros select {
    flex: 1;
    min-width: 140px;
  }

  .filtro-checkbox {
    flex: 1;
    justify-content: center;
  }

}

.filtro-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: rgb(109, 32, 32);
  cursor: pointer;
}

.filtro-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--terracota);
  cursor: pointer;
}

/* ===== CONTENEDOR PRINCIPAL (mapa + lista) ===== */
.contenedor-principal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* El mapa ocupa un tamaño fijo y se ve siempre */
#mapa {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);

  overflow: hidden;
}

/* La lista de locales, al lado del mapa */
.lista-locales {
  flex: 1 1 350px;
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.lista-locales::-webkit-scrollbar {
  width: 8px;
}

.lista-locales::-webkit-scrollbar-thumb {
  background-color: black;
  border-radius: 8px;
}

/* ===== TARJETA DE CADA LOCAL ===== */
.tarjeta-local {
  background-color: var(--crema-tarjeta);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px var(--sombra);
  border-left: 4px solid var(--linea);
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tarjeta-local:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--sombra);
}

.tarjeta-local.abierto {
  border-left-color: var(--oliva);
}

.tarjeta-local.cerrado {
  border-left-color: var(--rojo-cerrado);
}

.tarjeta-local h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--cafe-oscuro);
}

.tarjeta-local p {
  font-size: 13px;
  color: var(--cafe-medio);
  margin-bottom: 3px;
}

/* El "sello" de abierto/cerrado, como estampado a mano */
.estado {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--crema);
  transform: rotate(-2deg);
}

.estado.abierto {
  background-color: var(--oliva);
}

.estado.cerrado {
  background-color: var(--rojo-cerrado);
}

/* ===== RESPONSIVE: en pantallas chicas, mapa arriba y lista abajo ===== */
@media (max-width: 800px) {
  .contenedor-principal {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }

  .encabezado h1 {
    font-size: 27px;
  }

  #mapa {
    height: 200px; /* antes era 320px, lo achicamos bastante */
  }

  .lista-locales {
    max-height: none;
  }
}