/* estilos.css */
/* 
header {
  background-color: #111;
  color: white;
  padding: 1em;
} */
html,
body {
  font-family: Arial, sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f5f5;
  /* fondo suave opcional */
}

main {
  flex: 1;
  padding: 2rem 1rem;
  /* espaciado interno */
  background-color: #fff;
  /* fondo blanco para contraste */
}

/* Panel admin */
.admin-bar {
  background-color: #f7f7a3;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.admin-header {
  text-decoration: underline;
  color: rgb(198, 22, 22);
  padding: 10px;
  text-align: center;
  width: 100%;
}

.admin-bar .btn {
  margin: 5px !important;
}

/* ------------------------------------------------------------------ */
/* Barra de navegación */
nav ul {
  display: flex;
  list-style: none;
  padding: 0;
}

nav ul li {
  margin-right: 15px;
}

.link {
  font-size: 18px !important;
  transition: color 0.3s ease;
}

.link:hover {
  color: #ffc107 !important;
}

.navbar-brand img {
  margin-right: 10px;
}

/* Íconos: carrito y usuario */
.nav-link i {
  transition: color 0.3s ease;
}

.nav-link i:hover {
  color: #ffc107;
}

/* Modal emergente */
.emergente h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.emergente p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.emergente .btn {
  margin: 5px;
}

/* Botones dentro del modal */
.modal-content .btn {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-content .btn-dark,
.modal-content .btn-success,
.modal-content .btn-primary {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

.modal-content .btn-dark:hover {
  background-color: #ffc107;
  color: #000;
  border-color: #ffc107;
}

/* Hover para botones primarios */
.modal-content .btn-primary:hover {
  background-color: #ffc107;
  color: #000;
  border-color: #ffc107;
}

/* Hover para botón de cerrar sesión */
.modal-content .btn-danger:hover {
  background-color: #ff6b6b;
  border-color: #ff6b6b;
}

/* ------------------------------------------------------------------- */
/* Imagen descubre tu estilo */
.hero {
  background-image: url('imagenes/portada1.jpg');
  background-size: cover;
  position: relative;
  background-position: center;
  text-align: center;
  padding: 5em 2em;
  filter: grayscale(0.1);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* oscurece el fondo */
  z-index: -1;
}

/* Carrusel de productos destacados */

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 220px;
  /* Limita el ancho de cada tarjeta */
  margin: auto;
  /* Centra la tarjeta dentro de su columna */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  /* Sombra sutil */
}

.card-img-top {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* Mantiene proporción uniforme */
  object-fit: contain;
  /* Muestra toda la imagen sin recortarla */
  background-color: #fff;
  /* Fondo blanco para imágenes con transparencia */
  border: 2px solid #dee2e6;
  /* Borde suave */
  border-radius: 8px;
  padding: 4px;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .carousel .card {
    min-width: 140px !important;
    max-width: 160px !important;
    font-size: 0.85rem;
  }

  .carousel .card img {
    height: 120px;
    object-fit: cover;
  }

  .carousel .card-title {
    font-size: 0.9rem;
  }

  .carousel .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 992px) {
  .carousel-inner .col {
    flex: 0 0 auto;
    max-width: 220px;
  }

  .carousel-inner .row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.carousel {
  overflow: visible;
}

.carousel-indicators [data-bs-target] {
  border-radius: 90%;
  width: 15px !important;
  background-color: #000000 !important;
  border-top: 5px solid #000000 !important;
  border-bottom: 5px solid #000000 !important;
}

.carousel-indicators .active {
  background-color: #000000;
}

.carousel-indicators button {
  transition: transform 0.2s ease;
}

.carousel-indicators button:hover {
  transform: scale(1.2);
}

/* ******************************************* */
/* Imagenes de informacion */
.info-img {
  width: 100%;
  /* tamaño base, se ajusta al contenedor */
  max-width: 160px;
  /* tamaño máximo en pantallas normales */
}

@media (max-width: 576px) {
  .info-img {
    max-width: 80px;
    /* la mitad del tamaño en pantallas pequeñas */
  }
}

/* ------------------------------------------------- */
/* Categorias */
.category-item {
  border: 1px solid #121212;
  border-radius: 5px;
  transition: all 0.3s;
  height: 100%;
  /* Asegura que ocupe todo el alto disponible */
  /* min-height: 420px; */
  /* Ajusta según el contenido promedio */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.category-item:hover {
  background-color: #f8f9fa;
}

section {
  padding: 60px 0;
}

.category-item img {
  border-radius: 4px;
  max-height: 200px;
  width: 100%;
  object-fit: cover;
}

.btn-outline-dark {
  transition: all 0.3s;
}

.btn-outline-dark:hover {
  background-color: #212529;
}


footer {
  background-color: #222;
  color: white;
  font-size: 0.95rem;
}

footer a:hover {
  color: #ffc107;
}

.horario-list li {
  margin-bottom: 6px;
}

.horario-list span {
  color: #f8f9fa;
}

.horario-list .cerrado {
  color: #aaa;
  font-style: italic;
}

.horario-list .especial {
  color: #ffc107;
  font-weight: bold;
}

.horario-list .hoy {
  background-color: #333;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.social-icon:hover {
  color: #ffc107;
  transition: color 0.3s ease;
}

/* ----------------------------------------------------------------- */
/* Inicio de sesion */
.inicio {
  background-color: rgba(255, 255, 255, 0.356);
}

.inises {
  background-color: rgb(255, 255, 255);
  border: solid 1px black;
  border-radius: 10%;
  width: 400px;
  height: 300px;
}

.inises h2 {
  color: #000000;
  border-bottom: solid 1px rgb(0, 0, 0);
  border-bottom-left-radius: 10%;
  border-bottom-right-radius: 10%;
}

.inises label {
  color: #000000;
  font-weight: bold;
  font-size: 18px;
}

.form-check label {
  font-size: 14px;
}

.form-check input {
  width: 16px;
}

.inises button {
  color: #000000;
  border: solid 1px #000000;
  font-weight: bold;
}

.inises button:hover {
  background-color: #a7a7a783;
  color: #000000;
  border: solid 1px #000000;
}

.inises p a {
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0);
  color: #000000;
}

.inises p a:hover {
  color: #364afa;
}

.regi p {
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0);
  color: #000000;
}

.regi p a {
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0);
  color: #000000;
}

.regi p a:hover {
  color: #364afa;
}

/* -------------------------------------------------------------------------- */
/* Registro.php */

.registro {
  background-color: rgba(255, 255, 255, 0.356);
}

.registro h2 {
  color: #000000;
  border-bottom: solid 1px rgb(0, 0, 0);
  /* border-bottom-left-radius: 10%;
    border-bottom-right-radius: 10%; */
}

.registro label {
  color: #000000;
  font-weight: bold;
  font-size: 18px;
}

.form-check label {
  font-size: 14px;
}

.form-check input {
  width: 16px;
}

.registro button {
  color: #000000;
  border: solid 1px #000000;
  font-weight: bold;
}

.registro button:hover {
  background-color: #a7a7a783;
  color: #000000;
}

.registro a {
  color: #000000fa;
}

.registro a:hover {
  color: #364afa;
}

/* -------------------------------------------------------------------------- */
/* admin.php */
/* Pagina admin.php */
/* Tablas admin */
.dataTables_filter {
  margin-bottom: 10px;
}

/* Corrige color de fondo y texto en los th de columnas fijas DataTables */
table.dataTable th,
div.DTFC_LeftWrapper th {
  background-color: #F68411 !important;
  color: white;
}

table.dataTable thead {
  background-color: #f68411f3;
  /* Naranja principal */
  color: white;
}

table.dataTable.stripe>tbody>tr.odd>*,
table.dataTable.display>tbody>tr.odd>* {
  background-color: #ffe5b4;
  /* Naranja claro */
  color: #F68411;
  /* Texto naranja */
}

table.dataTable.stripe>tbody>tr.even>*,
table.dataTable.display>tbody>tr.even>* {
  background-color: #FFF9EF;
  /* Fondo blanco cálido (como botones/nav) */
  color: #F68411;
  /* Texto naranja */
}

table.dataTable tbody tr:hover>* {
  background-color: #eae330;
  /* Amarillo suave (como admin-bar) */
  color: #F68411;
}

.p-admin a {
  color: #F68411;
  font-weight: bold;
}

/* --------------------------------------------------------------------------- */
/* producto.php */
.color-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: inline-block;
  cursor: pointer;
  position: relative;
  margin: 3px;
}

.color-circle input {
  position: absolute;
  opacity: 0;
  /* ocultamos el checkbox real */
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
  top: 0;
  left: 0;
}

/* Cuando el checkbox asociado está marcado → borde verde */
.btn-check:checked+.color-circle {
  border: 3px solid #000000;
  /* verde Bootstrap */
}

#precioRango {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: #ddd;
  outline: none;
}

/* Track en Chrome/Safari/Edge */
#precioRango::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 5px;
  background: #ddd;
}

/* Track en Firefox */
#precioRango::-moz-range-track {
  height: 6px;
  border-radius: 5px;
  background: #ddd;
}

/* Thumb en Chrome/Safari/Edge */
#precioRango::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #000000;
  cursor: pointer;
  margin-top: -6px;
  /* centra el thumb */
}

/* Thumb en Firefox */
#precioRango::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #000000;
  cursor: pointer;
}

/* ===============================
   Carrito - estilos personalizados
   =============================== */

/* .card */
.card-pri {

  max-width: 100% !important;
  width: 100%;
}

/* Producto */
.producto-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  transition: box-shadow 0.2s ease;
}

.producto-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Imagen */
.producto-img {
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

/* Nombre del producto */
.producto-nombre {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: orange;
}

.producto-nombre:hover {
  text-decoration: underline;
}

/* Input cantidad */
.producto-cantidad {
  width: 70px;
}

/* Responsive ajustes */
@media (max-width: 768px) {
  .producto-item {
    padding: 1rem;
  }

  .producto-item .row>div {
    margin-bottom: 0.5rem;
  }
}

/* Datos tranferencia */
.datos-transferencia {
  display: none;
}

input[type="radio"]:checked+label .datos-transferencia {
  display: block;
}