/* === RESET Y ESTRUCTURA BÁSICA === */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
  background: #000;
  color: #000;
}

/* === TOPBAR NUEVA ORDENADA === */
/* === TOPBAR CENTRADO NUEVO === */
.topbar {
  background: #000;
  color: #fff;
  padding: 1rem 0.5rem;
  border-bottom: 2px solid #fff;
  text-align: center;
}

.topbar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.topbar-logo {
  width: 160px;
  height: 50px;
}

.site-logo-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
  color: #fff;
}

.site-logo-slogan {
  font-size: 0.75rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ccc;
}

.top-buttons {
  margin-top: 15px;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.top-buttons .btn-black {
  padding: 0.25rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 6px;
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  text-decoration: none;
  white-space: nowrap;
}

.btn-black.active {
  background: #fff;
  color: #000;
}


/* === SLIDER === */
.slider-container {
  max-width: 500px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.slider {
  display: flex;
  flex-direction: column;
}
.slide {
  display: none;
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
}
.slide img {
  width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 30px;
  margin-bottom: 10px;
}
.slide-info h2 {
  font-size: 20px;
  margin: 10px 0 5px;
  color: #b20000;
}
.slide-info p {
  font-size: 16px;
  margin: 0;
  color: #333;
}

/* === CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 6rem;
  box-sizing: border-box;
}



.product-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 320px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.product-card h3 {
  font-size: 1.1rem;
  margin: 0.8rem 0 0.3rem;
  color: #fff;
  font-weight: 600;
}

.product-card p {
  font-size: 1rem;
  font-weight: bold;
  color: #00ff9d;
  margin-bottom: 0.5rem;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card button {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: black;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.85rem;
}

.product-card:hover img {
  transform: scale(1.08);
}

.product-card .slide-info h2 {
  font-size: 20px;
  color: #b20000;
}
.product-card .slide-info p {
  font-size: 16px;
  color: #ccc;
}

/* === Public food app refresh === */
body {
  background: #f53646;
  color: #1f2933;
  align-items: center;
}

.public-app-shell {
  width: min(100%, 430px);
  height: 100vh;
  min-height: 100vh;
  background: #fff;
  border: 7px solid #fff;
  border-radius: 0 0 34px 34px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  overflow-y: auto;
  padding: 20px 16px 94px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #ff3145 #f3f4f6;
}

.public-app-shell::-webkit-scrollbar {
  width: 9px;
}

.public-app-shell::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 999px;
}

.public-app-shell::-webkit-scrollbar-thumb {
  background: #ff3145;
  border-radius: 999px;
  border: 2px solid #f3f4f6;
}

.public-app-shell::-webkit-scrollbar-thumb:hover {
  background: #e8273a;
}

@media (min-width: 768px) {
  .public-app-shell {
    width: calc(100vw - 48px);
    max-width: none;
    border-radius: 0 0 34px 34px;
    padding: 26px 24px 100px;
  }

  .public-app-shell .top-buttons {
    max-width: 520px;
  }

  .public-search-panel {
    grid-template-columns: minmax(0, 1fr) 58px;
    max-width: 620px;
  }

  .public-app-shell .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }

  .public-bottom-nav {
    width: calc(100vw - 48px);
    max-width: none;
  }
}

@media (min-width: 1180px) {
  .public-app-shell {
    width: calc(100vw - 64px);
    max-width: none;
    border-radius: 0 0 28px 28px;
    padding-inline: 32px;
  }

  .public-app-shell .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }

  .public-bottom-nav {
    width: calc(100vw - 64px);
    max-width: none;
  }
}

.topbar {
  background: #fff;
  color: #101828;
  padding: 0;
  border-bottom: 0;
  text-align: left;
}

.topbar-container {
  align-items: stretch;
  gap: 14px;
}

.public-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.topbar-logo {
  display: none;
}

.site-logo-title {
  display: block;
  margin: 0;
  color: #2e2e32;
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  font-family: 'Trebuchet MS', 'Poppins', sans-serif;
}

.topbar-container > .site-logo-slogan {
  display: none;
}

.site-logo-slogan {
  color: #667085;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 8px;
}

.top-buttons {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.top-buttons .btn-black {
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid #edf0f5;
  background: #fff;
  color: #344054;
  box-shadow: 0 7px 20px rgba(16, 24, 40, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
}

.btn-black.active {
  background: #ff3145;
  border-color: #ff3145;
  color: #fff;
}

.topbar-action-delivery {
  position: static !important;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 16px;
  background: #fff;
  color: #ff3145;
  border: 1px solid #edf0f5;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.12);
}

.public-search-panel {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 12px;
  margin: 22px 0 18px;
}

.public-search {
  height: 54px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(16, 24, 40, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.public-search i {
  color: #1f2933;
  font-size: 24px;
}

.public-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-weight: 600;
  color: #344054;
  font-size: 14px;
  background: transparent;
}

.public-filter-btn {
  border: 0;
  border-radius: 16px;
  background: #ff3145;
  color: #fff;
  box-shadow: 0 9px 26px rgba(255, 49, 69, 0.32);
  font-size: 25px;
  cursor: pointer;
}

.public-filter-btn.is-active {
  background: #101828;
}

.public-category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.public-category-tabs::-webkit-scrollbar {
  display: none;
}

.public-category-tabs button {
  border: 0;
  min-width: 92px;
  max-width: 132px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: #f4f5f7;
  color: #7a828f;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 0 auto;
}

.public-category-tabs button.active {
  background: #ff3145;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 49, 69, 0.26);
}

.cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 16px;
}

.product-card {
  position: relative;
  max-width: none;
  width: 100%;
  min-height: 232px;
  margin: 0;
  background: #fff;
  color: #303744;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.13);
  overflow: visible;
  text-align: left;
  padding: 10px;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.16);
}

.product-card img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.product-card:hover img {
  transform: none;
}

.product-card h3 {
  margin: 10px 0 2px;
  color: #344054;
  font-size: 13px;
  line-height: 1.2;
  min-height: 32px;
  font-weight: 800;
}

.product-card p {
  color: #ff3145;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.product-card p::before {
  content: "★ ";
  color: #f59e0b;
}

.product-card .agregar-pedido-btn,
.agregar-pedido-btn {
  width: 100%;
  min-height: 36px;
  margin: auto 0 0;
  padding: 8px 10px;
  border-radius: 11px;
  background: #101828;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.product-card .agregar-pedido-btn:hover,
.agregar-pedido-btn:hover {
  background: #ff3145;
  transform: none;
}

.agregar-pedido-btn.is-disabled-by-schedule,
.agregar-pedido-btn:disabled {
  background: #cbd5e1 !important;
  color: #64748b !important;
  cursor: not-allowed;
  opacity: 0.78;
  box-shadow: none;
}

.favorite-btn {
  position: absolute;
  right: 8px;
  bottom: 48px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #2e3440;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  z-index: 2;
}

.favorite-btn.is-active {
  color: #ff3145;
}

@media (max-width: 480px) {
  .favorite-btn {
    right: 7px;
    bottom: 45px;
    width: 22px;
    height: 22px;
    font-size: 14px;
    box-shadow: none;
  }
}

.boton-flotante-carrito {
  right: calc(50% - 32px);
  bottom: 28px;
  width: 64px;
  height: 64px;
  background: #ff3145;
  color: #fff;
  border: 6px solid #fff;
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.25);
  z-index: 1200;
}

.boton-flotante-carrito,
.public-app-shell ~ .boton-flotante-carrito {
  background: #ff3145;
  color: #fff;
}

.boton-parpadeo::after {
  display: none;
}

.public-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 430px);
  height: 72px;
  padding: 0 28px;
  box-sizing: border-box;
  background: #ff3145;
  border-radius: 28px 28px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr 76px 1fr;
  align-items: center;
  gap: 10px;
  z-index: 1100;
}

.public-bottom-nav a,
.public-bottom-nav button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.public-bottom-nav .active,
.public-bottom-nav .is-active {
  color: #fff;
}

.footer-marquee {
  display: none;
}

/* === BOTONES PRINCIPALES === */
.boton-vaciar {
  background: linear-gradient(135deg, #6c757d, #343a40);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  margin: 5px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.boton-vaciar:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #5a6268, #23272b);
}

.boton-finalizar {
  background: linear-gradient(135deg, #28a745, #218838);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  margin: 5px;
  cursor: pointer;
  animation: parpadeo 1s infinite;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
}

.boton-cerrar {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  margin: 5px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
  transition: transform 0.2s;
}
.boton-cerrar:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #bd2130, #a71d2a);
}

/* === CARRITO FLOTANTE === */
.boton-flotante-carrito {
  position: fixed;
  bottom: 75px;
  right: 20px;
  background-color: black;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 1000;
  transition: transform 0.2s;
}
.boton-flotante-carrito:hover {
  transform: scale(1.1);
}
.contador-carrito {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #28a745;
  color: white;
  font-size: 13px;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  animation: parpadeo 1s infinite;
}

/* === FOOTER MARQUEE === */
.footer-marquee {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: black;
  color: white;
  overflow: hidden;
  height: 55px;
  z-index: 999;
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
}
.marquee-text {
  font-size: 15px;
  white-space: nowrap;
  animation: scroll-text 10s linear infinite;
  padding-left: 100%;
}
@keyframes scroll-text {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}


@keyframes parpadeo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.boton-parpadeo {
  animation: parpadeo 1s infinite;
}
.boton-parpadeo::after {
  content: 'Presiona aquí para finalizar tu pedido';
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #dc2626;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(220,38,38,0.4);
  white-space: nowrap;
}

@keyframes moverLado {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-8px); }
}
.flecha-indicadora {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  animation: moverLado 1s infinite alternate;
}
.flecha-indicadora img {
  width: 32px;
  height: auto;
}


@media (max-width: 480px) {
  .product-card img {
    height: 180px;
  }

  .swal2-popup {
        font-size: 14px !important;
        max-width: 100% !important;
    }

    .swal2-actions button {
        width: 70% !important;
    }


  .product-card button {
    font-size: 0.75rem;
  }

  .footer-marquee {
    font-size: 16px;
    height: 45px;
  }

  .topbar {
    flex-direction: column;
    text-align: center;
  }

  .top-buttons {
    justify-content: center;
    margin-top: 15px;
  }
}

/* === SELECT EXTRAS === */
.select-extras {
    width: 80%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 25px; /* Redondeado */
    border: 2px solid #28a745;
    margin: 0 auto; /* Centrado */
    display: block; /* Necesario para centrar */
    background: #fff;
    color: #333;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.select-extras:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.4);
    outline: none;
}

.select-extras option {
    padding: 8px;
    text-align: center;
}

/* === CONTENEDOR DE EXTRAS === */
.extras-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

/* === CADA EXTRA (SELECT + BOTÓN X) === */
.extra-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}


/* === BOTÓN DE ELIMINAR EXTRA (X) === */
.remove-extra-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: bold;
    width: 32px;          /* Tamaño fijo pequeño */
    height: 32px;         /* Cuadrado */
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 6px;     /* Separación del select */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

.remove-extra-btn:hover {
    background: #b02a37;
}

/* === BOTÓN "Agregar otro Extra" === */

.agregar-pedido-btn {
  width: 90%;
  margin: 0.8rem auto;
  padding: 0.7rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  transition: background 0.3s ease, transform 0.2s;
}

.agregar-pedido-btn:hover {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  transform: scale(1.05);
}

.add-extra-btn {
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin-top: 0.6rem;
  cursor: pointer;
  width: 90%;
  transition: all 0.3s ease;
}
.add-extra-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #ffc371, #ff5f6d);
}

.extras-title {
            font-size: 12px;
            text-align: center;
            margin: 8px 0;
            color: #ccc;
            font-style: italic;
        }
        .extras-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: center;
            margin: 10px 0;
        }
        .extra-chip {
            font-size: 13px;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s ease, background 0.3s ease;
        }
        .extra-chip:hover {
            transform: scale(1.05);
        }
        .chip-green {
            background: #28a745;
            color: #fff;
        }
        .chip-red {
            background: #dc3545;
            color: #fff;
        }
        .extras-feedback {
            text-align: center;
            font-size: 12px;
            margin-top: 6px;
            height: 14px; /* Mantiene espacio fijo para que no se muevan los elementos */
        }
        .text-added {
            color: #28a745;
            font-weight: bold;
        }
        .text-removed {
            color: #dc3545;
            font-weight: bold;
        }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 24, 40, 0.46);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal.is-closing {
    opacity: 0;
    visibility: visible;
}

.modal-content {
    background: #fff;
    color: #000;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transition: opacity 220ms ease, transform 220ms ease;
}

.modal.is-open .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal.is-closing .modal-content {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
}

.close-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
}


.carrito-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.carrito-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.carrito-item img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    margin-right: 10px;
    object-fit: cover;
}

.item-info {
    flex: 1;
    margin: 0 10px;
}

.item-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.precio {
    font-weight: bold;
    color: #28a745;
    margin: 4px 0;
}

.badge {
    background: #007bff;
    color: white;
    font-size: 12px;
    border-radius: 12px;
    padding: 3px 8px;
    margin: 2px;
    display: inline-block;
}

.cantidad-input {
    width: 60px;
    padding: 5px;
    font-size: 14px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.finalizar-pedido {
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    animation: parpadeo 1s infinite;
    margin-top: 15px;
}

.btn-quitar {
    background: #dc3545;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-quitar:hover {
    background: #b02a37;
}

.cantidad-input {
    width: 60px;
    padding: 4px;
    font-size: 14px;
}
.subtotal {
    font-size: 14px;
    color: #28a745;
    font-weight: bold;
}

.remove-extra {
    color: #fff;
    margin-left: 5px;
    cursor: pointer;
    font-weight: bold;
}
.acciones {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.swal2-container {
    z-index: 9999 !important;
}


.swal2-popup {
    width: 90% !important;   
    max-width: 400px !important; 
    box-sizing: border-box;
    font-size: 16px;
}

.swal2-input {
    width: 70% !important; 
    font-size: 16px;
}

.swal2-actions {
    flex-wrap: wrap; 
    gap: 10px;
}

/* === Carrito: ajustes compactos y responsive === */
.carrito-header{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
.carrito-title{ font-size:1rem; font-weight:600; margin:0; }

/* Botón cerrar (X) como botón compacto */
.close-modal{
  float:none;                 /* anula el float previo */
  background: linear-gradient(135deg,#dc3545,#c82333);
  color:#fff;
  border:none;
  border-radius:8px;
  padding:4px 8px;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,.25);
  transition:transform .2s;
}
.close-modal:hover{ transform:scale(1.05); }

/* Finalizar / Vaciar más chicos */
.finalizar-pedido{
  font-size:14px;
  padding:8px 14px;
  border-radius:20px;
  width:auto;
  margin:0;
  animation: parpadeo 1s infinite;
}
.btn-vaciar{
  background: linear-gradient(135deg,#6c757d,#343a40);
  color:#fff;
  border:none;
  border-radius:20px;
  padding:8px 12px;
  font-size:13px;
  cursor:pointer;
}

/* Ítems compactos */
.carrito-item{ padding:10px; gap:8px; }
.item-info h4{ font-size:14px; margin:0 0 4px 0; }
.item-info p{ font-size:12px; margin:2px 0; line-height:1.35; }

.badge{
  font-size:11px;
  padding:3px 6px;
  border-radius:12px;
}
.subtotal{ font-size:13px; color:#28a745; font-weight:600; }

/* Botón quitar más pequeño */
.btn-quitar{
  font-size:12px;
  padding:5px 8px;
  border-radius:6px;
  align-self:flex-end;
}

/* Footer del carrito */
.carrito-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 6px;
  border-top:1px solid #eee;
}
.total-title,
#total-carrito{ font-size:14px; margin:0; font-weight:600; }

/* === Mobile optimizado === */
@media (max-width:560px){
  .carrito-item{
    flex-direction:column;
    align-items:flex-start;
  }
  .acciones{
    width:100%;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin-top:6px;
  }
  .cantidad-input{
    width:50px;
    font-size:12px;
    padding:4px;
  }
  .finalizar-pedido,
  .btn-vaciar{
    width:100%;
    margin-top:8px;
    font-size:14px;
  }
  .badge{ font-size:10px; padding:2px 6px; }
}

/* === Shim de utilidades .btn para el carrito === */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  border:none; border-radius:20px; padding:8px 14px; cursor:pointer;
  font-size:14px; line-height:1; box-shadow:0 2px 6px rgba(0,0,0,.2);
  transition:transform .15s ease, filter .15s ease;
}
.btn:active{ transform: translateY(1px); }

/* tamaños */
.btn--sm{ padding:8px 14px; font-size:14px; }
.btn--xs{ padding:5px 8px;  font-size:12px; border-radius:8px; }
.btn--icon{ width:28px; height:28px; padding:0; border-radius:8px; font-size:16px; }

/* variantes de color (mapeadas a tu estética) */
.btn--success{
  background: linear-gradient(135deg, #28a745, #218838);
  color:#fff;
}
.btn--danger{
  background: linear-gradient(135deg, #dc3545, #c82333);
  color:#fff;
}
.btn--ghost{
  background:#fff; color:#000; border:2px solid #e6e6e6;
}
.btn--success:hover,
.btn--danger:hover,
.btn--ghost:hover{ filter: brightness(.98); }

/* Cerrar modal (cuando venga con .btn--ghost .btn--icon) */
.close-modal{
  /* si ya la tenías con float, lo anulamos para que no estorbe */
  float:none !important;
}

/* Vaciar (si usas .btn-vaciar junto a .btn) */
.btn-vaciar{
  background: linear-gradient(135deg, #6c757d, #343a40);
  color:#fff;
}

/* Ajustes compactos del carrito (coinciden con tu estructura actual) */
.carrito-header{ display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:10px; }
.carrito-title{ font-size:1rem; font-weight:600; margin:0; }

.carrito-item{ padding:10px; gap:8px; }
.item-title{ font-size:14px; margin:0 0 4px; }
.item-line{ font-size:12px; margin:2px 0; line-height:1.35; }
.badge{ font-size:11px; padding:3px 6px; border-radius:12px; }
.subtotal{ font-size:13px; color:#28a745; font-weight:600; }
.btn-quitar{ font-size:12px; padding:5px 8px; border-radius:6px; align-self:flex-end; }

.carrito-footer{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 6px; border-top:1px solid #eee; }
.total-title, #total-carrito{ font-size:14px; margin:0; font-weight:600; }

/* Mobile */
@media (max-width:560px){
  .carrito-item{ flex-direction:column; align-items:flex-start; }
  .acciones{ width:100%; flex-direction:row; justify-content:space-between; align-items:center; gap:8px; margin-top:6px; }
  .cantidad-input{ width:50px; font-size:12px; padding:4px; }
  .btn-vaciar, .finalizar-pedido, .btn.btn--success{ width:100%; margin-top:8px; }
  .badge{ font-size:10px; padding:2px 6px; }
}



/* ===== SweetAlert2 · Minimal Theme ===== */

/* Popup limpio y compacto */
.swal2-container{ padding:12px; }
.swal2-popup{
  background: rgba(255,255,255,.96);
  color:#000;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  padding:18px 16px;
}
.swal2-title{
  font-size:1rem;           /* más chico */
  font-weight:700;
  margin:0 0 8px 0;
  text-align:center;
}
.swal2-html-container{
  font-size:.92rem;
  margin:6px 0 0 0;
  text-align:center;        /* centra contenidos por defecto */
}

/* ===== Botones minimalistas ===== */
.swal2-actions{
  width:100%;
  display:flex !important;
  justify-content:center !important;
  align-items:center;
  gap:8px;
  margin-top:12px !important;
}
.swal2-styled{
  border:none !important;
  border-radius:999px !important;
  padding:8px 14px !important;
  font-size:14px !important;
  font-weight:600 !important;
  line-height:1 !important;
  box-shadow:0 2px 10px rgba(0,0,0,.15);
  transition:transform .08s ease, filter .15s ease;
}
.swal2-styled:active{ transform:translateY(1px); }

/* Colores mapeados a tu estética */
.swal2-confirm{
  background:linear-gradient(135deg,#28a745,#218838) !important;
  color:#fff !important;
}
.swal2-cancel{
  background:linear-gradient(135deg,#6c757d,#343a40) !important;
  color:#fff !important;
}
.swal2-deny{
  background:linear-gradient(135deg,#dc3545,#c82333) !important;
  color:#fff !important;
}

/* ===== Inputs minimalistas centrados ===== */
.swal2-input,
.swal2-textarea,
.swal2-select,
.swal2-file{
  width:min(420px,92%) !important;
  margin:8px auto !important;      /* SIEMPRE centrados */
  text-align:center !important;
  background:#fff !important;
  color:#000 !important;
  border:1.5px solid #e6e6e6 !important;
  border-radius:12px !important;
  padding:10px 12px !important;
  font-size:14px !important;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
  outline:none;
}
.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus{
  border-color:#007bff !important;
  box-shadow:0 0 0 3px rgba(0,123,255,.12) !important;
}

/* Mensajes de validación */
.swal2-validation-message{
  text-align:center;
  font-size:.9rem;
}

/* ===== Radios minimalistas (input:'radio') ===== */
.swal2-radio{
  display:flex !important;
  flex-direction:column;
  align-items:center;
  gap:8px;
  margin:8px 0 0 0 !important;
}
.swal2-radio label{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#f7f7f7;
  border:1px solid #eee;
  border-radius:12px;
  padding:8px 12px;
  min-width:240px;
  cursor:pointer;
  font-weight:600;
}
.swal2-radio input{
  accent-color:#28a745;
  transform:scale(1.1);
}

/* ===== Progreso (si usas timer) ===== */
.swal2-timer-progress-bar{ background:linear-gradient(90deg,#28a745,#00c6ff); }

/* ===== Responsive ===== */
@media (max-width:480px){
  .swal2-popup{ width:96% !important; padding:16px 14px; }
  .swal2-actions .swal2-styled{
    width:100% !important;      /* botones full width en móvil */
    min-width:0 !important;
    padding:10px 12px !important;
    font-size:15px !important;
  }
}

/* === Topbar: botón Delivery (derecha) === */
.topbar { position: relative; }
.topbar-action-delivery{
  position: absolute;
  top: 35px;
  right: 35px;
  background:#000;
  color:#fff;
  border:2px solid #fff;
  width:42px; height:42px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; cursor:pointer;
  box-shadow:0 3px 10px rgba(0,0,0,.25);
}
.topbar-action-delivery:hover { filter: brightness(1.05); }
.topbar-action-delivery .badge-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #28a745;
  box-shadow: 0 0 0 2px #000;
}

.badge-pulse {
  animation: pulse-fast 0.6s infinite;
}

@keyframes pulse-fast {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* === <dialog> nativo estilizado === */
dialog#delivery-modal{
  border:none; border-radius:14px; padding:0; width:min(520px, 92%);
  max-height: min(86vh, 720px);
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 220ms ease, transform 220ms ease, overlay 220ms ease allow-discrete, display 220ms ease allow-discrete;
  overflow: hidden;
}
dialog#delivery-modal[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}
dialog#delivery-modal.is-closing {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}
dialog#delivery-modal.is-closing::backdrop {
  opacity: 0;
}
dialog#delivery-modal::backdrop{
  background: rgba(16,24,40,.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 220ms ease;
}
@starting-style {
  dialog#delivery-modal[open] {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  dialog#delivery-modal[open]::backdrop {
    opacity: 0;
  }
}
.dialog-header, .dialog-footer{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:10px 12px; border-bottom:1px solid #eee;
  background: #fff;
}
.dialog-footer{ border-top:1px solid #eee; border-bottom:none; }
.dialog-header strong{ font-size:1rem; }
.dialog-body{
  padding:12px;
  max-height: calc(min(86vh, 720px) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ff3145 #f3f4f6;
}

.dialog-body::-webkit-scrollbar {
  width: 9px;
}

.dialog-body::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 999px;
}

.dialog-body::-webkit-scrollbar-thumb {
  background: #ff3145;
  border: 2px solid #f3f4f6;
  border-radius: 999px;
}

.dialog-body::-webkit-scrollbar-thumb:hover {
  background: #e8273a;
}

/* === Tarjetas Delivery === */
.delivery-wrap{ display:flex; flex-direction:column; gap:12px; }
.delivery-card{
  background:#fff; color:#000; border-radius:12px; padding:12px;
  box-shadow:0 3px 10px rgba(0,0,0,.12);
}
.delivery-head{ display:flex; align-items:center; gap:10px; }
.delivery-head i{ font-size:28px; color:#000; }
.delivery-title{ margin:0; font-size:1rem; }
.delivery-meta{ margin:2px 0 0; font-size:.85rem; color:#444; }
.delivery-body p{ margin:6px 0; }
.delivery-tracking{ margin-top:8px; display:flex; align-items:center; gap:8px; }
.tracking-hint{ color:#ff3936; }

/* Lista historial */
.delivery-list{ display:flex; flex-direction:column; gap:8px; }
.delivery-item{
  display:flex; align-items:center; justify-content:space-between;
  background:#fff; padding:10px; border-radius:10px; box-shadow:0 2px 6px rgba(0,0,0,.08);
}

/* Modal selección ingredientes */
.ingredientes-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 12000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.ingredientes-modal.is-open,
.ingredientes-modal.is-closing {
  display: flex;
}
.ingredientes-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.ingredientes-modal.is-closing {
  opacity: 0;
  visibility: visible;
}
.ingredientes-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16,24,40,0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ingredientes-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  width: min(480px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
  z-index: 1;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 220ms ease, transform 220ms ease;
}
.ingredientes-modal.is-open .ingredientes-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ingredientes-modal.is-closing .ingredientes-modal__dialog {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}
.ingredientes-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
  color: #555;
}
.ingredientes-modal__product {
  font-weight: 600;
  margin: 8px 0 16px;
}
.ingredientes-modal__sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}
.ingredientes-modal__section h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ingredientes-modal__section {
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
}
.ingredientes-modal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.ingredientes-modal__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f7f9fc;
}
.ingredientes-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.swal2-container {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.swal2-popup {
  animation-duration: 220ms !important;
}

.reuse-customer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  margin-top: 8px;
}

.reuse-customer-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.reuse-customer-card strong {
  color: #0f172a;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.btn-cancelar,
.btn-confirmar {
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 600;
  cursor: pointer;
}
.btn-cancelar {
  background: #e2e8f0;
  color: #1f2937;
}
.btn-confirmar {
  background: linear-gradient(135deg,#28a745,#218838);
  color: #fff;
}

/* Final public app overrides */
body {
  background: #f53646;
  color: #1f2933;
  align-items: center;
}

.public-app-shell {
  width: min(100%, 430px);
  height: 100vh;
  min-height: 100vh;
  background: #fff;
  border: 7px solid #fff;
  border-radius: 0 0 34px 34px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 16px 94px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #ff3145 #f3f4f6;
}

.public-app-shell::-webkit-scrollbar {
  width: 9px;
}

.public-app-shell::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 999px;
}

.public-app-shell::-webkit-scrollbar-thumb {
  background: #ff3145;
  border: 2px solid #f3f4f6;
  border-radius: 999px;
}

.public-app-shell::-webkit-scrollbar-thumb:hover {
  background: #e8273a;
}

.public-app-shell .topbar {
  position: relative;
  background: #fff;
  color: #101828;
  padding: 0;
  border-bottom: 0;
  text-align: left;
}

.public-app-shell .topbar-container {
  align-items: stretch;
  gap: 14px;
}

.public-app-shell .topbar-logo,
.public-app-shell .topbar-container > .site-logo-slogan {
  display: none;
}

.public-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.public-app-shell .site-logo-title {
  display: block;
  margin: 0;
  color: #2e2e32;
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  font-family: 'Trebuchet MS', 'Poppins', sans-serif;
}

.public-app-shell .site-logo-slogan {
  color: #667085;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 8px;
}

.public-app-shell .top-buttons {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.public-app-shell .top-buttons .btn-black {
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid #edf0f5;
  background: #fff;
  color: #344054;
  box-shadow: 0 7px 20px rgba(16, 24, 40, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
}

.public-app-shell .btn-black.active {
  background: #ff3145;
  border-color: #ff3145;
  color: #fff;
}

.public-app-shell .topbar-action-delivery {
  position: absolute !important;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 16px;
  background: #fff;
  color: #ff3145;
  border: 1px solid #edf0f5;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.12);
}

.public-app-shell .cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 16px;
}

.public-app-shell .product-card {
  position: relative;
  max-width: none;
  width: 100%;
  min-height: 232px;
  margin: 0;
  background: #fff;
  color: #303744;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.13);
  overflow: visible;
  text-align: left;
  padding: 10px;
  box-sizing: border-box;
}

.public-app-shell .product-card img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.public-app-shell .product-card h3 {
  margin: 10px 0 2px;
  color: #344054;
  font-size: 13px;
  line-height: 1.2;
  min-height: 32px;
  font-weight: 800;
}

.public-app-shell .product-card p {
  color: #ff3145;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.public-app-shell .product-card p::before {
  content: "★ ";
  color: #f59e0b;
}

.public-app-shell .product-card .agregar-pedido-btn,
.public-app-shell .agregar-pedido-btn {
  width: 100%;
  min-height: 36px;
  margin: auto 0 0;
  padding: 8px 10px;
  border-radius: 11px;
  background: #101828;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: none;
}

.public-app-shell .product-card .agregar-pedido-btn:hover,
.public-app-shell .agregar-pedido-btn:hover {
  background: #ff3145;
  transform: none;
}

.public-app-shell .agregar-pedido-btn.is-disabled-by-schedule,
.public-app-shell .agregar-pedido-btn:disabled {
  background: #cbd5e1 !important;
  color: #64748b !important;
  cursor: not-allowed;
  opacity: 0.78;
  box-shadow: none;
  transform: none;
}

.public-app-shell .product-card .favorite-btn,
.product-card .favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto;
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  height: 26px;
  min-height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #101828;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  font-size: 15px;
  line-height: 1;
  z-index: 3;
}

.public-app-shell .product-card .favorite-btn.is-active,
.product-card .favorite-btn.is-active {
  color: #ff3145;
}

.public-app-shell .product-card .favorite-btn i,
.product-card .favorite-btn i {
  line-height: 1;
  pointer-events: none;
}

@media (min-width: 768px) {
  .public-app-shell {
    width: calc(100vw - 48px);
    max-width: none;
    padding: 26px 24px 100px;
  }

  .public-app-shell .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }

  .public-app-shell .top-buttons {
    max-width: 520px;
  }

  .public-search-panel {
    max-width: 620px;
  }

  .public-bottom-nav {
    width: calc(100vw - 48px);
    max-width: none;
  }
}

@media (min-width: 1180px) {
  .public-app-shell {
    width: calc(100vw - 64px);
    max-width: none;
    border-radius: 0 0 28px 28px;
    padding-inline: 32px;
  }

  .public-app-shell .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }

  .public-bottom-nav {
    width: calc(100vw - 64px);
    max-width: none;
  }
}

@media (max-width: 767px) {
  .public-app-shell {
    width: min(100%, 430px);
  }

  .public-app-shell .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-bottom-nav {
    width: min(100%, 430px);
  }
}
