/* ============================================================
   styles.css — Diseño Dark Card (App Pedidos)
   Bootstrap 5
   ============================================================ */

/* ------------------------------------------------------------
   2. BASE / RESET
   ------------------------------------------------------------ */
html, body {
  background: linear-gradient(160deg, var(--app-bg-1) 0%, var(--app-bg-2) 100%);
  background-attachment: fixed;
  color: var(--app-text);
  font-family: var(--app-font);
  font-size: 14px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--app-heading);
  font-weight: 700;
}

h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; font-weight: 600; }

a { text-decoration: none; color: var(--app-accent); }
a:hover { color: var(--app-accent-hover); }

/* Utilidades de limpieza */
.cleaner_h0 { clear: both; width: 100%; height: 0; }
.cleaner_h1 { clear: both; width: 100%; height: 10px; }
.cleaner_h2 { clear: both; width: 100%; height: 20px; }
.cleaner_h3 { clear: both; width: 100%; height: 30px; }
.cleaner_h4 { clear: both; width: 100%; height: 40px; }
.cleaner_h5 { clear: both; width: 100%; height: 50px; }
.cleaner_h6 { clear: both; width: 100%; height: 60px; }

.hidden { display: none; }

/* ------------------------------------------------------------
   3. TÍTULOS PERSONALIZADOS
   ------------------------------------------------------------ */
.tit-1 {
  border-bottom: 2px solid var(--app-accent);
  display: inline-block;
  padding-bottom: 4px;
}
.tit-2 {
  font-weight: 700;
  color: var(--app-heading);
  margin-bottom: 10px;
}
.tit-3 {
  color: var(--app-accent);
  font-weight: 300;
  padding: 7px 0 2px;
  text-align: center;
}
.tit-4 {
  border-bottom: 3px solid var(--app-accent);
  display: inline-block;
}
.p-dott-1 {
  padding-bottom: 20px;
  border-bottom: 3px dotted var(--app-border);
}
.img-border-1 {
  border: 5px solid var(--app-border);
  border-radius: var(--app-radius-sm);
}

/* ------------------------------------------------------------
   4. ANIMACIONES
   ------------------------------------------------------------ */
.e-a, .e-a-1-5, .e-a-2, .e-a-2-5 {
  animation: animationFrames ease 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
.e-a-1-5 { animation-duration: 1.5s; }
.e-a-2 { animation-duration: 2s; }
.e-a-2-5 { animation-duration: 2.5s; }

@keyframes animationFrames {
  0%   { opacity: 0; transform: translateY(-25px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   5. BANNER SUPERIOR
   ------------------------------------------------------------ */
.banner-perfil {
  width: 100%;
  height: 200px;
  margin-left: 0;
  border-radius: var(--app-radius);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--app-shadow-card);
  overflow: hidden;
  position: relative;
}

.banner-perfil .banner-col-actions {
  float: right;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  margin-top: 2%;
}

.banner-perfil .btn-circle {
  margin-right: 15px;
  margin-top: 10px;
}

/* ------------------------------------------------------------
   6. LOGO / MENÚ
   ------------------------------------------------------------ */
.menu__container {
  margin-top: -100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}
.menu__logo {
  max-width: 150px;
  max-height: 150px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--app-bg-1), 0 0 0 6px var(--app-accent);
  overflow: hidden;
  background: var(--app-bg-1);
    z-index: 1000;

}
.menu__logo img {
  width: 150px;
  max-height: 150px;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------
   7. BOTONES
   ------------------------------------------------------------ */
.btn-circle {
  width: 45px;
  height: 45px;
  border-radius: var(--app-radius-pill);
  text-align: center;
  font-size: 20px;
  background-color: var(--app-accent);
  color: var(--app-bg-1);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}
.btn-circle:hover {
  transform: scale(1.1);
  background-color: var(--app-accent-hover);
  color: var(--app-bg-1);
}

#boton-menu {
  text-align: center;
  min-width: 300px;
  color: var(--app-bg-1);
  background: var(--app-accent);
  border: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--app-radius);
}
#boton-menu:hover {
  background: var(--app-accent-hover);
  color: var(--app-bg-1);
}

.btn-volver {
  text-align: right;
  min-width: 300px;
  color: var(--app-bg-1);
  background: var(--app-warning);
  border: none;
  border-radius: var(--app-radius);
}

.btn-danger,
.btn-success {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
  border-radius: var(--app-radius-sm);
}
.btn-danger:hover,
.btn-success:hover {
  background-color: var(--app-primary-hover);
  border-color: var(--app-primary-hover);
}

/* ------------------------------------------------------------
   8. TARJETAS DE PRODUCTO  ★ ★ ★  (estilo de la imagen)
   ------------------------------------------------------------ */
#box-contenedor-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 10px 0;
}

/* Card */
.container-item {
  background: var(--app-card);
  border-radius: var(--app-radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--app-shadow-card);
  border: 1px solid var(--app-border);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.container-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--app-shadow-hover);
  background: var(--app-card-hover);
  border-color: var(--app-accent);
}

/* Contenedor interno flex */
.containeritems {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: auto;
}

/* Imagen */
.items-img {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
  padding: 0;
}
.items-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .4s ease;
  display: block;
}
.container-item:hover .items-img img {
  transform: scale(1.06);
}

/* Contenido */
.box-principal {
  width: 100%;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.box-items {
  width: 100%;
  margin-left: 0;
}

/* Título + descripción */
.items-titulo {
  min-height: auto;
  width: 100%;
  color: var(--app-heading);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  text-shadow: none;
  line-height: 1.3;
  padding: 0;
  display: block;
  word-break: break-word;
}

.items-titulo .tit-secundario,
.art_deta + .tit-secundario {
  display: block;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  color: var(--app-text-muted);
  line-height: 1.4;
  margin-top: 4px;
  text-shadow: none;
}

/* Fila inferior: precio + botón */
.box-flex-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--app-divider);
  margin-top: auto;
  gap: 10px;
}

/* Precio */
.items-precio {
  font-size: 20px;
  font-weight: 800;
  color: var(--app-accent);
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  line-height: 1;
}

/* Etiqueta % OFF */
.item-porcdesc {
  display: inline-block;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  background: var(--app-primary);
  color: #fff;
  padding: 3px 8px;
  border-radius: 8px;
  border: none;
  opacity: 1;
  line-height: 1;
  vertical-align: middle;
}

/* Botón + y botón ver */
.items-opciones {
  width: auto;
  float: none;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
}

.items-opciones .agregar,
.items-opciones .ver {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--app-accent);
  color: var(--app-bg-1);
  border: none;
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 12px rgba(196, 245, 66, .25);
  padding: 0;
  line-height: 1;
}

.items-opciones .agregar:hover,
.items-opciones .ver:hover {
  background: var(--app-accent-hover);
  color: var(--app-bg-1);
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(196, 245, 66, .45);
}

.items-opciones .ver i {
  font-size: 18px;
}

/* ------------------------------------------------------------
   9. GRUPOS / CATEGORÍAS (rubros)
   ------------------------------------------------------------ */
.producto-categorias {
  margin-bottom: 15px;
}

.box-gru {
  border-radius: var(--app-radius);
  margin: 10px 0 20px;
  position: relative;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.box-gru:hover {
  transform: translateY(-3px);
  box-shadow: var(--app-shadow-hover);
}

.box-gru .gru-img {
  border-radius: var(--app-radius);
  width: 100%;
  height: 150px;
  object-fit: cover;
  box-shadow: var(--app-shadow-card);
  display: block;
}

.box-gru .abs {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 27, 45, .95), transparent);
  padding: 20px 10px 10px;
}

.box-gru .gru-deta {
  display: inline-block;
  margin: auto;
  position: relative;
}
.box-gru .gru-deta h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
  display: inline-block;
  margin: 0;
  padding: 0;
  background: none;
}
.box-gru .rejilla-line-2 {
  height: 3px;
  width: 60px;
  margin: 6px auto 0;
  background: var(--app-accent);
  border-radius: 2px;
  transition: width .3s ease;
}
.box-gru:hover .rejilla-line-2 {
  width: 90px;
}

/* ------------------------------------------------------------
   10. HEAD DE SECCIÓN (título categoría + atrás)
   ------------------------------------------------------------ */
#tituloprincipal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
#tituloprincipal .tit-2 {
  font-size: 24px;
  color: var(--app-heading);
  margin: 0;
}
#tituloprincipal + .rejilla-line-1 {
  background: var(--app-border);
  height: 1px;
  margin-bottom: 20px;
}

/* ------------------------------------------------------------
   11. PEDIDO / MODALES
   ------------------------------------------------------------ */
#box-pedido {
  background: var(--app-card);
  padding: 10px;
  border-radius: var(--app-radius);
}

/* Barra inferior fija */
#totales_foot,
#box-totales {
  background: rgba(15, 27, 45, .98) !important;
  color: #fff;
  border-top: 1px solid var(--app-border);
}
#totales_foot {
  width: 100%;
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 78px;
  z-index: 100;
}
#totales_foot .totalpedido {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 10px 0;
  background: none;
}
#totales_foot .btn-ver-compra {
  width: 170px;
  border-radius: var(--app-radius);
  font-size: 15px;
  font-weight: 700;
  background: var(--app-accent);
  border: none;
  color: var(--app-bg-1);
  padding: 10px;
}
#totales_foot .btn-ver-compra:hover {
  background: var(--app-accent-hover);
  color: var(--app-bg-1);
}
#totales_foot #foot_total {
  background: var(--app-accent);
  color: var(--app-bg-1);
  text-align: right;
  max-width: 170px;
  border-radius: var(--app-radius);
  font-size: 17px;
  font-weight: 800;
  border: none;
  padding: 8px 14px;
  display: flex;
  float: right;
}
.text-totalpedido {
  color: var(--app-text-muted);
  text-align: center;
  font-size: 12px;
  width: 100%;
}
#count-cart {
  color: var(--app-accent);
  font-style: normal;
}

/* ------------------------------------------------------------
   12. MODAL (producto / carrito / sabores)
   ------------------------------------------------------------ */
.modal-content {
  background: var(--app-card);
  color: var(--app-text);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
}
.modal-header,
.modal-footer {
  border-color: var(--app-border);
}
.modal-title {
  color: var(--app-heading);
}
.btn-close {
  filter: invert(1);
}

/* Caja de sabores / combinaciones */
.box-sabores {
  background: var(--app-bg-1);
  border-radius: var(--app-radius);
  padding: 20px;
  color: var(--app-text);
}
.box-sabores .box-contenedor-sabores {
  background: rgba(0, 0, 0, .25);
  border-radius: var(--app-radius-sm);
  padding: 16px 20px;
  overflow-y: auto;
}
.box-sabores-cat {
  color: var(--app-text);
  margin-bottom: 20px;
}
.box-sabores-cat .tit-2 {
  color: var(--app-accent);
  margin-bottom: 10px;
}
.box-sabores ul.list-sabores {
  list-style: none;
  padding: 0;
}
.box-sabores ul.list-sabores > li {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--app-text);
  transition: background .2s ease;
}
.box-sabores ul.list-sabores > li:hover {
  background: rgba(196, 245, 66, .1);
}
.box-sabores ul.list-sabores li.active {
  background: rgba(196, 245, 66, .15);
  border: 1px solid var(--app-accent);
}
.box-sabores .btn-sabor {
  color: var(--app-text);
  cursor: pointer;
}
.box-sabores .fa-check-square-o.check {
  color: var(--app-accent);
}

/* ------------------------------------------------------------
   13. TABLA PEDIDOS
   ------------------------------------------------------------ */
#tabla-pedidos,
.tabla-mobil table.stacktable {
  border-collapse: separate;
  border-spacing: 0 6px;
  color: var(--app-text);
}
#tabla-pedidos thead tr th,
.tabla-mobil table.stacktable thead tr th {
  color: var(--app-text-muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: none;
  border: none;
  padding: 8px;
}
#tabla-pedidos tbody tr,
.tabla-mobil table.stacktable tbody tr {
  background-color: var(--app-card);
  border-radius: var(--app-radius-sm);
}
#tabla-pedidos tbody tr td,
.tabla-mobil table.stacktable tbody tr td {
  color: var(--app-text);
  border: none;
  padding: 12px 8px;
}
#tabla-pedidos tbody tr td.detalle { text-align: left; width: 70%; }
#tabla-pedidos tbody tr td.total { text-align: right; color: var(--app-accent); font-weight: 700; }
#tabla-pedidos tbody tr td.eliminar .btn-eliminar {
  background: none;
  border: none;
  color: var(--app-primary);
  font-size: 16px;
}
#tabla-pedidos tbody tr.row-end { background: none; }
#tabla-pedidos tbody tr.row-end .preciofinal span {
  display: block;
  background: var(--app-accent);
  color: var(--app-bg-1);
  font-weight: 800;
  padding: 8px 12px;
  border-radius: var(--app-radius-sm);
}

/* ------------------------------------------------------------
   14. CARRUSEL
   ------------------------------------------------------------ */
.carousel {
  width: 100%;
  height: auto;
  min-height: 100px;
  margin-bottom: 20px;
}
.carousel-item {
  height: auto;
  text-align: center;
  padding: 10px;
}
.carousel-item > img {
  position: static;
  min-width: auto;
  height: 100px;
  width: auto;
  border-radius: var(--app-radius-sm);
  display: inline-block;
}
.marca-sponsor-img {
  padding: 0;
  height: 100px;
  width: auto;
  max-width: 160px;
  border-radius: var(--app-radius-sm);
}

/* ------------------------------------------------------------
   15. FORMULARIOS / INPUTS
   ------------------------------------------------------------ */
.form-control {
  background-color: var(--app-bg-1);
  color: var(--app-text);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
}
.form-control:focus {
  background-color: var(--app-bg-1);
  color: var(--app-text);
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(196, 245, 66, .15);
}
.form-control::placeholder {
  color: var(--app-text-muted);
  opacity: 1;
}

/* Login */
.box-ingresar {
  background: var(--app-card);
  border-radius: var(--app-radius);
  max-width: 350px;
  width: 100%;
  padding: 30px;
  text-align: center;
  box-shadow: var(--app-shadow-card);
}
.form-signin .form-control {
  background: var(--app-bg-1);
  color: var(--app-text);
  padding: 14px;
  font-size: 16px;
  border: 1px solid var(--app-border);
}
.btn-registrarme {
  color: var(--app-accent);
  font-weight: 700;
}
.line {
  border-top: 1px solid var(--app-border);
  margin: 20px 30px 10px;
}

/* Errores / éxito */
.error_logg,
#after-registro,
.success_logg {
  display: none;
  padding: 10px;
  font-size: 14px;
  border-radius: var(--app-radius-sm);
  margin-bottom: 5px;
}
.error_logg {
  border: 2px solid var(--app-primary);
  color: var(--app-primary);
  background: rgba(255, 107, 53, .1);
}
#after-registro,
.success_logg {
  border: 2px solid var(--app-accent);
  color: var(--app-accent);
  background: rgba(196, 245, 66, .1);
}

/* ------------------------------------------------------------
   16. PROMO DESTACADA / LINK EDITAR
   ------------------------------------------------------------ */
.promo-destacada {
  font-size: 22px;
  font-weight: 800;
  color: var(--app-accent);
  text-decoration: none;
  display: block;
  text-align: center;
  padding: 10px;
}
.promo-destacada:hover {
  color: var(--app-accent-hover);
  opacity: .9;
}

.link-editar {
  display: flex;
  justify-content: center;
  font-size: 22px;
  color: var(--app-accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 6px;
}
.link-editar i { margin-left: 5px; }
.link-editar:hover { color: var(--app-accent-hover); }

/* ------------------------------------------------------------
   17. FREE-NAV / RUBROS CHIPS
   ------------------------------------------------------------ */
.sec-fnd-1 {
  padding: 20px 0;
  display: flex;
  justify-content: center;
  background: transparent;
  height: auto;
}
.free-nav .navbar-head-1 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 10px;
  margin: 0;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  scrollbar-width: none;
}
.free-nav .navbar-head-1::-webkit-scrollbar { display: none; }
.free-nav .navbar-head-1 li { display: inline-block; float: none; }
.free-nav .navbar-head-1 li a {
  background: var(--app-card);
  color: var(--app-text);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-pill);
  text-transform: uppercase;
  text-decoration: none;
  transition: all .2s ease;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 16px;
  white-space: nowrap;
}
.free-nav .navbar-head-1 li.active > a,
.free-nav .navbar-head-1 a:hover,
.free-nav .navbar-head-1:hover a:focus {
  background: var(--app-accent);
  color: var(--app-bg-1);
  border-color: var(--app-accent);
}

/* ------------------------------------------------------------
   18. DETALLES (talles / colores)
   ------------------------------------------------------------ */
ul.talles { padding: 0; margin: 0; list-style: none; }
ul.talles li {
  display: inline-block;
  margin: 4px 4px 4px 0;
}
ul.talles li a {
  background: var(--app-card);
  color: var(--app-text);
  display: block;
  padding: 8px 14px;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  min-width: 50px;
  text-align: center;
  font-weight: 600;
}
ul.talles li.active a {
  border-color: var(--app-accent);
  background: var(--app-accent);
  color: var(--app-bg-1);
}

ul.colores { padding: 0; margin: 0; list-style: none; }
ul.colores li {
  border: 1px solid var(--app-border);
  padding: 2px;
  display: inline-block;
  margin: 3px 4px 3px 0;
  border-radius: var(--app-radius-sm);
}
ul.colores li a {
  display: block;
  padding: 2px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
ul.colores li.active {
  border: 2px solid var(--app-accent);
  padding: 1px;
}

/* ------------------------------------------------------------
   19. FOOTER
   ------------------------------------------------------------ */
footer {
  color: var(--app-text-muted);
  background: transparent;
  font-family: var(--app-font-alt);
  margin-top: 40px;
  margin-bottom: 100px;
  font-size: 15px;
  padding: 20px;
  text-align: center;
}
footer .menu-foot { list-style: none; padding: 0; }
footer .menu-foot a { color: var(--app-text-muted); }
footer .menu-foot a:hover { color: var(--app-accent); }

#copyright {
  color: var(--app-text-muted);
  background: #0a1422;
  text-align: center;
  padding: 14px;
  font-size: 12px;
}
#copyright .web_copy {
  font-size: 11px;
  color: var(--app-text-muted);
}

/* ------------------------------------------------------------
   20. UTILIDADES
   ------------------------------------------------------------ */
.mt-0 { margin-top: 0 !important; }
.ml-1 { margin-left: 5px !important; }
.ml-2 { margin-left: 10px !important; }
.mr-1 { margin-right: 5px !important; }
.mr-2 { margin-right: 10px !important; }
.px-2 { padding-left: 5px !important; padding-right: 5px !important; }

.d-none-important { display: none !important; }

/* ------------------------------------------------------------
   21. RESPONSIVE
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  #box-contenedor-productos {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 767px) {
  #box-contenedor-productos {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
  }

  .items-img { height: 180px; }
  .items-titulo { font-size: 16px; }
  .items-precio { font-size: 18px; }
  .items-opciones .agregar,
  .items-opciones .ver { width: 40px; height: 40px; font-size: 18px; }

  .banner-perfil { height: 160px; }
  .menu__container { margin-top: -80px; }
  .menu__logo,
  .menu__logo img { width: 120px; max-height: 120px; }
}

@media (max-width: 480px) {
  #box-contenedor-productos {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   22. MENÚ — BUSCADOR STICKY + CATEGORÍAS
   ============================================================ */

/* ---------- Buscador sticky ---------- */
.search-sticky {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--app-bg-1);
  padding: 12px 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  display: flex;
  justify-content: center;
}

.menu-search-box {
  display: flex;
  width: 100%;
  max-width: 550px;
  border-radius: var(--app-radius-pill);
  background: transparent;
  z-index: 10;
}

.menu-search-box .input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-pill);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
  align-items: center;
}
.menu-search-box .input-group:focus-within {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(196, 245, 66, .15);
}

#buscar-top {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: var(--app-text) !important;
  font-size: 15px;
  padding: 12px 18px;
  box-shadow: none !important;
  outline: none;
}
#buscar-top::placeholder {
  color: var(--app-text-muted);
  opacity: 1;
}

#boton-limpiar {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
#boton-limpiar button {
  border: none;
  background: transparent;
  color: var(--app-text-muted);
  font-size: 20px;
  padding: 0 6px;
  cursor: pointer;
  border-radius: 50%;
  transition: color .2s ease, background .2s ease;
}
#boton-limpiar button:hover {
  color: var(--app-primary);
  background: rgba(255, 107, 53, .1);
}

/* ✅ DESPUÉS */
.btn-search {
  background: transparent;
  border: none;
  border-left: 1px solid var(--app-border);
  color: var(--app-accent);
  font-size: 20px;
  width: 56px;
  min-width: 56px;
  height: 45px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
  line-height: 1;
}
.btn-search:hover {
  background: rgba(196, 245, 66, .08);
  color: var(--app-accent-hover);
}
.btn-search i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 20px;
}

/* ---------- Categorías (NO sticky) ---------- */
.sec-fnd-1 {
  padding: 10px 0;
  background: var(--app-bg-1);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.scrolling-button {
  font-size: 18px;
  font-weight: 700;
  color: var(--app-accent);
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
  transition: color .2s ease, transform .2s ease;
  flex-shrink: 0;
}
.scrolling-button:hover {
  color: var(--app-accent-hover);
  transform: scale(1.15);
}

.free-nav .navbar-head-1 {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 8px;
  margin: 0;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: var(--app-accent) transparent;
}
.free-nav .navbar-head-1::-webkit-scrollbar {
  height: 5px;
  background: transparent;
}
.free-nav .navbar-head-1::-webkit-scrollbar-thumb {
  background: var(--app-accent);
  border-radius: 20px;
}

.free-nav .navbar-head-1 li {
  display: inline-block;
  float: none;
  flex-shrink: 0;
}
.free-nav .navbar-head-1 li a {
  background: var(--app-card);
  color: var(--app-text);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-pill);
  text-transform: uppercase;
  text-decoration: none;
  transition: all .2s ease;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 16px;
  white-space: nowrap;
  display: inline-block;
}
.free-nav .navbar-head-1 li.active > a,
.free-nav .navbar-head-1 li a:hover {
  background: var(--app-accent);
  color: var(--app-bg-1);
  border-color: var(--app-accent);
}

/* ---------- Botones admin ---------- */
.admin-actions {
  display: flex;
  margin: 0 20px 10px;
  gap: 8px;
}
.admin-actions .btn-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  color: var(--app-text);
  border-radius: var(--app-radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  width: auto;
  transition: all .2s ease;
}
.admin-actions .btn-success:hover {
  background: var(--app-accent);
  color: var(--app-bg-1);
  border-color: var(--app-accent);
}
  


/* ============================================================
   23. FOOTER
   ============================================================ */
.app-footer {
  background: var(--app-bg-1);
  border-top: 1px solid var(--app-border);
  padding: 30px 0 20px;
  margin-top: 40px;
  margin-bottom: 90px; /* espacio para la barra fija de totales */
  color: var(--app-text-muted);
  text-align: center;
  font-family: var(--app-font);
}

.app-footer .container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Horario */
.footer-horario {
  margin-bottom: 16px;
}
.footer-horario p {
  margin: 0;
  font-size: 13px;
  color: var(--app-text-muted);
}
.footer-horario i {
  color: var(--app-accent);
  margin-right: 6px;
}

/* Logo */
.footer-logo {
  margin: 12px 0 20px;
  display: flex;
  justify-content: center;
}
.footer-logo a {
  display: inline-block;
  line-height: 0;
}
.footer-logo img {
  height: 45px;         /* ← tamaño reducido */
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}
.footer-logo img:hover {
  opacity: 1;
  transform: scale(1.04);
}
/* Botón CTA */
.footer-cta {
  margin: 16px 0 20px;
}
.footer-cta .btn-cta-footer {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--app-accent);
  color: var(--app-accent);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: var(--app-radius-pill);
  text-decoration: none;
  transition: all .2s ease;
}
.footer-cta .btn-cta-footer:hover {
  background: var(--app-accent);
  color: var(--app-bg-1);
  transform: translateY(-1px);
}
/* Visitas */
.footer-visitas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--app-text-muted);
  margin-bottom: 16px;
}
.footer-visitas img {
  height: 14px;
  width: auto;
  opacity: .7;
}
.footer-visitas span {
  font-weight: 600;
  color: var(--app-text);
}

/* Copyright */
.footer-copy {
  padding-top: 14px;
  border-top: 1px solid var(--app-border);
  font-size: 11px;
  color: var(--app-text-muted);
  opacity: .8;
}
.footer-copy p {
  margin: 0;
}

/* Responsive */
@media (max-width: 767px) {
  .app-footer { padding: 24px 0 16px; margin-bottom: 90px; }
  .footer-logo img { height: 38px; max-width: 130px; }
  .footer-cta .btn-cta-footer { font-size: 13px; padding: 9px 18px; }  /* ✅ */
}

