/* barberias.css modificado: header blanco, más compacto, botones posicionados arriba */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --gray-dark: #1F1F1F;
  --gray-light: #4A4A4A;
  --transp-light: rgba(255, 255, 255, 0.1);
  --transp-dark: rgba(0, 0, 0, 0.5);
  --transition-fast: 0.3s ease;
}
/* Evita scroll horizontal y overscroll en todo el documento */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior: none; /* desactiva el rebote en los bordes */
}
/* -------------------------------- */
/* FORZAR color a los enlaces .btn.link en el header blanco */
.top-bar .actions a.btn.link {
  color: var(--gray-dark);
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
}
.top-bar .actions a.btn.link:hover {
  color: var(--black);
}

/* Asegura que el carrusel NO muestre contenido fuera de sus slides */
.swiper-container {
  overflow: hidden;
}
#videoFondo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1000;
  pointer-events: none;
  opacity: 0.2; /* podés ajustar para más o menos visibilidad */
}
.hero,
.overlay,
.top-bar,
main,
header {
  position: relative;
  z-index: 1;
}
body {
  background: #000;
  overflow-x: hidden;
}

  /* Mapa oculto hasta hacer clic */
    #map {
      display: none;
      height: 500px;
      margin: 1rem auto;
    }

    /* Modal login */
    #login-modal {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.7);
      z-index: 1000;
      align-items: center;
      justify-content: center;
    }
    #login-modal .modal-content {
      background: #1F1F1F;
      padding: 2rem;
      border-radius: 8px;
      width: 90%; max-width: 400px;
      position: relative;
      color: #FFF;
    }
    #login-modal .close-btn {
      position: absolute;
      top: 0.5rem; right: 0.75rem;
      font-size: 1.5rem; cursor: pointer;
      color: #FFF;
    }
    #login-modal input {
      width: 100%;
      padding: 0.75rem;
      margin-bottom: 1rem;
      border: 1px solid #4A4A4A;
      border-radius: 4px;
      background: #1F1F1F;
      color: #FFF;
    }
    #login-modal button {
      width: 100%;
      padding: 0.75rem;
      background: #FFF;
      color: #000;
      border-radius: 4px;
      font-weight: bold;
    }
    #login-modal .error {
      color: #f66;
      text-align: center;
      margin-bottom: 1rem;
    }
    .top-bar .actions .greeting {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-right: 1rem;
  display: inline-flex;
  align-items: center;
}
.top-bar .actions .icon-user {
  fill: var(--gray-dark);
}
/* ---------------------------- */
/* MODAL DE REGISTRO           */
/* con EXACTAMENTE el mismo    */
/* comportamiento que login    */
/* ---------------------------- */
/* por defecto está oculto */
#register-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
}

/* cuando tenga la clase .open se muestra y centra */
#register-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* la caja interior igual que login */
#register-modal .modal-content {
  background: #1F1F1F;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  color: #FFF;
  animation: fadeIn 0.3s ease-out;
}

/* y el resto (inputs, botones, close-btn) igual que antes */

#register-modal .close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #FFF;
}
#register-modal input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #4A4A4A;
  border-radius: 4px;
  background: #1F1F1F;
  color: #FFF;
}
#register-modal button {
  width: 100%;
  padding: 0.75rem;
  background: #FFF;
  color: #000;
  border-radius: 4px;
  font-weight: bold;
}

/* Reset básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: var(--gray-dark);
  color: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* Animaciones */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* HEADER: blanco y compacto */
.top-bar {
  background: var(--white);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0.25rem 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.top-bar .inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-dark);
}
.top-bar .actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* Iniciar sesión a la derecha */
#login-btn {
  color: var(--gray-dark);
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
}
#login-btn::before { content: '👤'; margin-right: 0.3rem; }
#login-btn:hover { color: var(--black); }
/* Unirte a la izquierda, justo debajo del logo */
.btn-outline {
  color: var(--gray-dark);
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
}
.btn-outline::before { content: '🏠'; margin-right: 0.3rem; }
.btn-outline:hover { color: var(--black); }

/* HERO y resto mantienen estilos previos */
.hero {
  background: linear-gradient(to bottom, var(--transp-dark), var(--gray-dark) 80%), url('../img/hero-bg.jpg') center/cover no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 1s ease-out;
}
.hero .overlay { padding: 2rem 1rem; max-width: 800px; animation: slideUp 0.6s ease-out; }
.hero h1 { font-size: 2.5rem; color: var(--white); text-shadow: 0 2px 8px var(--black); }
.hero .subtitle { font-size: 1.2rem; color: var(--gray-light); margin-bottom: 1.5rem; }

/* Resto de CSS (form, swiper, overlay mapa, modal login, responsive) intactos */
/* … */


/* HERO */
.hero {
  position: relative;
  background: linear-gradient(to bottom, var(--transp-dark), var(--gray-medium) 80%), url('../img/hero-bg.jpg') center/cover no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}
.hero .overlay {
  padding: 2rem 1rem;
  max-width: 800px;
  animation: slideUp 0.6s ease-out;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px var(--black);
}
.hero .subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
 color: var(--white);
}

/* FORMULARIO DE BÚSQUEDA */
.buscar-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.buscar-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 30px 0 0 30px;
  border: 2px solid var(--white);
  background: var(--transp-light);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border var(--transition-fast);
}
.buscar-form input::placeholder {
  color: var(--white);
  opacity: 0.7; /* opcional para que no sea tan fuerte */
}

.buscar-form input:focus {
  border-color: var(--white);
}
.buscar-form button {
  padding: 0 1.2rem;
  border-radius: 0 30px 30px 0;
  background: var(--white);
  color: var(--black);
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}
.buscar-form button:hover { transform: scale(1.1); }

/* BOTÓN NEAR */
.btn.near {
  padding: 0.6rem 1.2rem;
  background: var(--transp-light);
  color: var(--white);
  border-radius: 30px;
  border: 2px solid var(--white);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.btn.near:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-3px);
}

/* CATEGORÍAS */
.categories {
  display: inline-flex;
  gap: 1rem;
  margin-top: 1rem;
}
.categories a {
  padding: 0.5rem 1rem;
  border: 2px solid var(--white);
  border-radius: 20px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.categories a:hover {
  background: var(--white);
  color: var(--black);
}

/* CONTENEDOR PRINCIPAL */
.wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  animation: fadeIn 0.8s ease-out;
}
.wrapper h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
}
.wrapper h2::after {
  content: '';
  width: 50px;
  height: 4px;
  background: var(--white);
  position: absolute;
  left: 0;
  bottom: -6px;
  border-radius: 2px;
}

/* SWIPER */
.swiper-container {
  position: relative;
  padding-bottom: 2rem;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  animation: slideUp 0.6s ease-out;
}
.card {
  width: 100%;
  max-width: 300px;
  background: var(--transp-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px var(--black);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px var(--black);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter var(--transition-fast);
}
.card:hover .card-img { filter: none; }
.badge-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--transp-dark);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
}
.card-body {
  padding: 1rem;
}
.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card-body .city {
  font-size: 0.9rem;
  color: var(--gray-light);
  margin-bottom: 1rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--white);
  color: var(--black);
  border-radius: 6px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.btn-primary:hover {
  background: var(--gray-light);
  transform: translateY(-2px);
}

/* OVERLAY MAPA */
#map-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  align-items: center;
  justify-content: center;
}
#map-overlay #map {
  width: 90%; height: 80%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

/* MODAL LOGIN */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--gray-medium);
  padding: 2rem;
  border-radius: 8px;
  width: 90%; max-width: 400px;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}
.modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.modal-content input {
  width: 100%; padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  border: 1px solid var(--gray-light);
  background: var(--gray-dark);
  color: var(--white);
}
.modal-content .close-btn {
  position: absolute;
  top: 0.5rem; right: 0.75rem;
  font-size: 1.5rem; cursor: pointer;
  color: var(--white);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.2rem; }
  .buscar-form input { font-size: 0.9rem; }
}
@media (max-width: 768px) {
  .top-bar .inner {
    /* flex-direction: column; */
    /* align-items: stretch; */
    padding: 0.75rem 1rem;
  }
  .top-bar .actions {
    width: 100%;
    display: flex;
    /* flex-direction: column; */
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  /* ... resto intacto */
}

@media (max-width: 640px) {
  .buscar-form { flex-direction: column; }
  .buscar-form input,
  .buscar-form button { width: 100%; border-radius: 30px; }
}
@media (max-width: 480px) {
  .hero { min-height: 60vh; }
  .hero h1 { font-size: 1.8rem; }
  .categories { flex-wrap: wrap; gap: 0.5rem; }
}
/* -------- Compactar header en móvil -------- */
@media (max-width: 640px) {
  /* Reducir padding del contenedor */
  .top-bar .inner {
    padding: 0.25rem 0.5rem;
  }

  /* Logo más pequeño */
  .top-bar .logo {
    font-size: 1.25rem;
  }

  /* Ajustar gap entre botones */
  .top-bar .actions {
    gap: 0.5rem;
  }

  /* Botones Login/Unirte más reducidos */
  #login-btn,
  .btn-outline {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }

  /* Alinear "Unite a GoCorte" justo debajo, sin margen extra */
  .btn-outline {
    margin-top: 0.2rem;
  }
}
/* ------------ Ajustes finales para móvil ------------ */
@media (max-width: 640px) {
  /* Evita el wrapping de los botones de header */
  #login-btn,
  .btn-outline {
    white-space: nowrap;
  }

  /* Limita la altura del header para que no quede tan “alto” */
  .top-bar {
    max-height: 3.5rem;
    overflow: hidden;
  }

  /* Ajusta el padding interior si hiciera falta */
  .top-bar .inner {
    padding: 0.25rem 0.6rem;
  }
}
   