/* Separación por navbar fija */
body {
  padding-top: 4.25rem;
}

/* Estilo de campos con icono (icono a la IZQUIERDA) */
.input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding-left: 2.25rem; /* espacio para el icono a la izquierda */
  box-sizing: border-box;
}

.input-wrapper .field {
  position: relative; /* posiciona el icono respecto a este bloque */
  display: block;
}

.input-icon {
  position: absolute;
  left: .5rem;              /* icono a la izquierda */
  top: 50%;
  transform: translateY(-50%);
  opacity: .6;
  pointer-events: none;     /* no bloquea clics */
}

/* Helpers */
.small-muted {
  font-size: .9rem;
  color: #6c757d;
}

.invalid-feedback {
  display: block;
  font-size: .85rem;
}

.is-invalid {
  border-color: #dc3545 !important;
}

/* Navbar */
.topbar { z-index: 1030; }
.navbar-brand { font-weight: 600; }

/* Dropdown login con “caja” visible */
.admin-dropdown .dropdown-menu {
  width: 320px;
  max-width: 92vw;
  z-index: 1080; /* sobre el contenido, debajo de navbar fija (1030) */
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
}
.admin-dropdown .form-label { font-size: .9rem; }

/* Contenido principal: solo esto se difumina */
.main-wrap { position: relative; }
.content-inner { position: relative; z-index: 2; }
.content-inner.blurred { filter: blur(2px); pointer-events: none; }

/* Máscara tenue SOLO sobre el contenido (no cubre navbar ni panel login) */
.content-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .12);
  display: none;
  z-index: 1; /* debajo del content-inner */
}
.content-backdrop.active { display: block; }

.brand-logo {
  display: block;
  margin: 0 auto 1rem;
  max-width: 160px;
  border-radius: 16px;
}

.alert-dismissible .btn-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 0.75rem 1rem;
}

/* ===== Fake placeholder para inputs date/time en móviles ===== */
.input-wrapper .field[data-ph] { position: relative; }

.input-wrapper .field[data-ph]::after {
  content: attr(data-ph);
  position: absolute;
  left: .75rem;                /* texto placeholder a la izquierda */
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: .95rem;
  opacity: .75;
  pointer-events: none;
  transition: opacity .15s ease;
}

/* Oculta el fake placeholder cuando hay valor o foco */
.input-wrapper .field.has-value::after,
.input-wrapper .field:focus-within::after {
  opacity: 0;
}


/* Solo afecta al botón de info dentro del formulario de reservas */
#reservaForm .btn-restaurant-info {
  /* tamaño circular pequeño */
  width: 34px;
  height: 34px;
  padding: 0;               /* sin padding extra */
  border-radius: 50%;       /* círculo perfecto */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* tipografía más pequeña y firme */
  font-size: 0.8rem;
  font-weight: 600;

  /* borde y foco agradables */
  --bs-btn-border-width: 1px;
}

#reservaForm .btn-restaurant-info:hover {
  /* un poco más marcado al pasar el mouse */
  background-color: var(--bs-secondary-bg);
}

#reservaForm .btn-restaurant-info:focus {
  box-shadow: 0 0 0 0.15rem rgba(108, 117, 125, .35); /* similar a outline */
  outline: none;
}

/* Asegura que el popup del calendario/reloj se vea por encima del formulario */
.flatpickr-calendar {
  z-index: 2000; /* > a tu card/inputs */
}


/* Botón de login en la navbar: tamaño normal */
.topbar .btn {
  padding: .375rem .75rem;     /* padding estándar de Bootstrap */
  font-size: 0.9rem;           /* puedes subirlo a 1rem si quieres */
  border-radius: .375rem;      /* borde estándar */
}

/* ===== Modal animado SIN fade ===== */

.hero-carousel {
  position: relative;
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 56%; /* Las baja a la mitad del contenedor */
  transform: translateY(-50%); /* Ajuste perfecto para centrarlas */
  background: rgba(0, 0, 0, 0.3); /* Transparencia inicial suave */
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%; /* Flechas circulares */
  cursor: pointer;
  z-index: 10; /* Asegura que estén por encima de las fotos */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 (ajusta según tus fotos) */
}

/* El track ya no se mueve, solo contiene los slides */
.hero-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-card {
  position: absolute; /* Superpuestos */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Ocultos por defecto */
  transition: opacity 0.8s ease-in-out; /* EFECTO FADE */
  z-index: 1;
}

/* Clase para mostrar el slide actual */
.hero-card.active {
  opacity: 1;
  z-index: 2;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Indicadores (Bolitas) */
.hero-dots {
  text-align: center;
  margin-top: 15px;
}

.hero-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
  background: #555;
  transform: scale(1.2); /* Un poquito más grande la activa */
}

/* Flecha izquierda */
.hero-prev {
  left: 15px;
}

/* Flecha derecha */
.hero-next {
  right: 15px;
}

/* Efecto al pasar el mouse (hover) */
.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7); /* Se oscurece al pasar el mouse */
  transform: translateY(-50%) scale(1.1); /* Crece un poquito */
}

/* Efecto al hacer clic (active) */
.hero-arrow:active {
  transform: translateY(-50%) scale(0.9);
}