/* =========================================================
   1) Reset / Tipografía base / Fondo
========================================================= */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: rgb(246 246 246);
  color: #ffffff;
}

/* =========================================================
   2) Header: portada, logo, título, indicadores y botones sociales
========================================================= */
header {
  text-align: center;
  padding: 50px 0;
  background-color: #182027;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* Solo aplica al logo */
header img.logo {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  position: relative;
}

header h1 {
  font-family: 'Poppins', sans-serif;
  margin-top: 10px;
  font-size: 24px;
  color: #ffffff;
  position: relative;
  padding: 0px 10px;
}

/* Portada rectangular sin borde redondeado */
header img.image-portada {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.image-portada {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

header > *:not(.image-bg) {
  z-index: 1;
  color: white;
}

/* ---- Indicador de horario (abierto/cerrado) ---- */
.schedule-indicator {
  position: absolute;
  font-family: 'Poppins', sans-serif;
  top: 10px;
  right: 10px;
  background-color: #ffffff;
  color: #333;
  padding: 10px 5px;
  border-radius: 50px;
  font-size: 10px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 0;
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.status-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 10px;
  margin-left: 5px;
  background-color: red; /* Inicialmente cerrado (rojo) */
  transition: background-color 0.3s ease;
}

.status-text {
  font-size: 14px;
  font-weight: normal;
  margin-right: 5px;
}

.clock-icon {
  font-size: 18px;
  color: #333;
}

.open { color: green; }
.closed { color: red; }

.open .status-circle { background-color: green; }
.open .status-text   { color: green;  }
.closed .status-circle { background-color: red; }
.closed .status-text   { color: red;  }

/* ---- FABs sociales ---- */
.social-fabs{
  position: absolute;
  top: 62px;
  right: 10px;
  z-index: 9999;
  display: grid;
  grid-template-columns: repeat(2, 44px);
  grid-auto-rows: 44px;
  gap: 10px;
  direction: rtl; /* orden visual derecha→izquierda */
}
.social-fabs .sfab{ direction: ltr; }
.social-fabs--row{ flex-direction: column; }

.sfab{
  --size: 44px;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: #50C878;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.sfab:hover{
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  opacity: .95;
}
.sfab i{ font-size: 18px; }
.sfab svg{ width: 18px; height: 18px; fill: #fff; }

/* ---- Botón volver ---- */
.back-button {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #50c878;
  border-radius: 50%;
  text-decoration: none;
  z-index: 10000; /* siempre arriba */
  transition: background 0.3s ease;
}
.back-button:hover { background: rgba(0,0,0,0.8); }

/* =========================================================
   3) Navegación / Chips de categorías
========================================================= */
.nav-bar {
  margin-top: -30px;
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #50C878;
  padding: 5px 0;
  z-index: 1;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-buttons {
  display: flex;
  gap: 5px;
  padding: 0 10px;
  margin: auto;
  width: fit-content;
}

.nav-bar button {
  background-color: #50C878;
  border: none;
  padding: 5px 12px;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
}
.nav-bar button:hover { background-color: #0f1317; }

/* =========================================================
   4) Sección de productos (cards) y estados
========================================================= */
.menu {
  padding: 10px 15px 10px;
}

.menu-group {
  margin-bottom: 30px;
}

.menu-group h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  color: #3c3c3c;
  text-align: center;
  padding-bottom: 2px;
  margin: 15px 0;
}

/* Contenedor de cada producto */
.menu-item {
  position: relative;
  display: flex;
  background-color: #ffffff;
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 15px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.1);
}

.menu-item.agotado { position: relative; }

.menu-item.agotado .image-container,
.menu-item.agotado .product-info { opacity: 0.5; }

/* La etiqueta no será afectada */
.agotado-label {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #c40000;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  font-weight: bold;
  z-index: 10;
}

/* Imagen del producto */
.menu-item img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  margin-right: 20px;
  position: relative;
}

/* Contenedor para la imagen y el icono */
.image-container {
  position: relative;
  display: inline-block;
}

/* Icono "+" como círculo en esquina */
.icono {
  position: absolute;
  bottom: -1px;
  left: -5px;
  width: 30px;
  height: 30px;
  background-color: #50C878;
  color: #ffffff;
  font-size: 25px;
  font-weight: lighter;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Información del producto */
.menu-item .product-info {
  flex: 1;
  margin-right: 10px;
}

.menu-item h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  margin: 0px 0;
  color: #50C878;
}

.menu-item p {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  margin: 5px 0;
  color: #3c3c3c;
}

.menu-item .price {
  font-family: 'Lexend', sans-serif;
  margin: 5px 0;
  font-size: 14px;
  font-weight: bold;
  color: #3c3c3c;
}

/* =========================================================
   5) Modales (Producto/Extras) y contenido
========================================================= */
.modal {
  display: none; /* Oculta el modal por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow: auto;
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  border-radius: 10px;
  width: 98%;
  max-width: 400px;
  color: #3c3c3c;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 90vh;
  overflow: auto;
  padding-bottom: 0px;
}

.modal-content h2 {
  font-family: 'Poppins', sans-serif;
  color: #3c3c3c;
  text-align: center;
  font-size: 18px;
  margin-bottom: 5px;
  margin-top: 45px;
}

.modal-content p {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  text-align: justify;
  padding: 0px 15px;
}

.modal-content label {
  display: block;
  margin-top: 20px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #ffffff;
}

.modal-content textarea {
  width: 100%;
  height: 60px;
  border: 2px solid #ffffff;
  border-radius: 5px;
  padding: 5px;
  resize: none;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  background-color: #ededed;
  box-sizing: border-box;
}

.modal-content button {
  padding: 10px 15px;
  background-color: #50C878;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

#extras-section {
  margin-top:20px;
  padding: 0px 15px;
}

.agregar {
  align-items: center;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  padding: 10px 0;
  background-color: #ffffff;
  box-shadow: 0px -4px 10px rgba(30, 30, 30, 0.1);
  padding-left: 15px;
  padding-right: 15px;
}

.close {
  position: sticky;
  top: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #282828;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  background-color: #50C878;
  width: 40px;
  height: 40px;
  align-items: center;
  z-index: 1000;
  left: 15px;
}

.retro { color: #010101; }

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 120px;
  border: 1px solid #50C878;
  border-radius: 5px;
  background-color: #ffffff;
  padding: 5px;
}

#quantity-display { color: #3c3c3c; }

/* =========================================================
   6) Botón flotante carrito y contador
========================================================= */
.cart-bubble {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #50C878;
  color: #ffffff;
  width: 95%;
  max-width: 600px;
  height: 60px;
  border-radius: 5px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 0;
}

.cart-bubble p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
}

#cart-total-price {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 15px;
}

/* Contador dentro del rectángulo */
.cart-count {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff;
  color: #3c3c3c;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* =========================================================
   7) Modal del carrito
========================================================= */
.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9;
}

.cart-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  overflow-y: auto;
  background-color: #ffffff;
  color: #010101;
  padding: 15px;
  padding-bottom: 0px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 2000;
  max-height: 90vh;
}

.cart-modal h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  margin-bottom: 10px;
  text-align: center;
  color: #3c3c3c;
}

.cart-modal ul {
  list-style: none;
  padding: 0;
  max-height: 250px;
  overflow-y: auto;
  margin: 0 0 15px 0;
}

.cart-modal li {
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Roboto', sans-serif;
  color: #4c4c4c;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.product-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px 0;
}

.cart-modal .product-name {
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  color: #50C878;
  flex-grow: 1;
}

.cart-modal .product-details {
  font-size: 16px;
  color: #333;
  font-weight: bold;
  text-align: right;
  justify-content: space-between;
}

.cart-modal li .extras {
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  color: #6f6f6f;
  margin-top: 5px;
}

.cart-modal li .options {
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  color: #3c3c3c;
  margin-top: 5px;
}

.cart-modal li .comments,
.cart-modal li .salsa {
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  color: #6f6f6f;
  margin-top: 3px;
}

.cart-modal .buttons-container {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 15px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  background: rgb(255, 255, 255);
}

.cart-modal button {
  background-color: #50C878;
  color: #ffffff;
  border: none;
  padding: 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
}

.cart-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}

.cart-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-details {
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  margin-left: 5px;
}

.cart-price {
  display: flex;
  align-items: flex-end;
  float: right;
}

.product-quantity {
  font-weight: bold;
  font-size: 12px ;
  width: 20px;
  color: #727272;
  margin-left: 5px;
}

.product-total {
  font-size: 14px;
  font-weight: bold;
  color: #3c3c3c;
}

.cart-total-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  padding: 10px;
  color: #0f1317;
  border-radius: 8px;
  margin-top: 15px;
}

.cart-total-price {
  font-size: 20px;
  font-weight: bold;
  color: #1d1d1d;
}

.cart-modal .close-cart-btn {
  position: absolute;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  background-color: #50C878;
  top: -10px;
  left: 10px;
  margin: 20px 0;
  width: 35px;
  height: 35px;
  align-items: center;
  z-index: 1000;
}
.cart-modal .close-cart-btn:hover { color: #e83232; }
.close-cart-btn:hover { color: #e83232; }

.cart-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

/* Estilo de la "X" */
.remove-item {
  display: inline-block;
  font-size: 18px;
  color: #3c3c3c;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  font-weight: 300;
  font-family: 'Lexend', sans-serif;
}
.remove-item:hover {
  color: darkred;
  transform: scale(1.2);
}

/* Contenedor de imagen con margen a la izquierda */
.cart-img-container {
  width: 50px;
  height: 50px;
  margin-left: 6px;
}

/* =========================================================
   8) Formularios / Inputs / Selects / Labels
========================================================= */
.phone-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin-top: 8px;
}

.country-code {
  color: #333;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
}

#phone {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  outline: none;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
}

select {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #50C878;
  border-radius: 8px;
  background-color: #ffffff;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  color: #3c3c3c;
  outline: none;
  -webkit-appearance: none;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
}

option {
  padding: 12px;
  font-size: 16px;
  background-color: #f7f7f7;
}

/* Etiquetas de sección en el modal */
#opciones-section {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 5px;
  display: block;
  padding: 0px 15px;
}

.required-label {
  font-size: 10px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  color: #fffdcf;
  float: right;
}

/* Estilo para las etiquetas */
label {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: #555;
  margin-bottom: 5px;
  display: block;
}

/* Instrucciones especiales */
#comments-section label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #3c3c3c;
  margin-bottom: 10px;
  display: block;
}

.optional-label {
  font-size: 10px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  color: #50C878;
  float: right
}

/* Tipo de entrega */
.delivery-options {
  margin-top: 15px;
  font-size: 14px;
}

.delivery-options label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #3c3c3c;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  text-align: center;
}

#delivery-method {
  width: 100%;
  padding: 8px;
  border: 1px solid #50C878;
  border-radius: 5px;
  background-color: #ffffff;
  color: #0f1317;
  font-size: 14px;
}

/* Dirección / Contacto */
.shipping-note {
  font-size: 14px;
  color: #212121;
  margin-top: 15px;
  font-family: 'Lexend', sans-serif;
  text-align: justify;
}

#name-container { margin-top: 15px; }

#customer-name{
  width: 100%;
  height: 60px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  resize: none;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
}

.shipping-not {
  font-size: 12px;
  color: #212121;
  margin-top: 15px;
  font-family: 'Lexend', sans-serif;
  text-align: justify;
}

/* Inputs agrupados */
.input-group {
  margin-bottom: 10px;
}

.input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #3c3c3c;
}

.input-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none;
  font-size: 14px;
  font-family: 'Lexend', sans-serif;
  box-sizing: border-box;
}

.input-group:first-child {
  margin-top: 15px;
}

.obligatorio-envio,
.opcional-envio {
  font-size: 10px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  color: #50C878;
  float: right
}

.error-message {
  color: red;
  font-size: 12px;
  display: none;
  margin-top: 5px;
}

#comments-section{
  margin-bottom: 25px;
  padding: 0px 15px;
}

/* =========================================================
   9) Extras dentro del modal de producto
========================================================= */
#extras-section h4 {
  margin: 8px 0;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.extra-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.extra-name {
  flex: 1;
  text-align: left;
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  color: #3c3c3c;
}

.extra-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.extra-price {
  color: #50C878;
  font-weight: bold;
  white-space: nowrap;
}

.extra-item input {
  transform: scale(1.2);
}

.optional-extra {
  font-size: 10px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  color: #fffdcf;
  float: right;
}

/* =========================================================
   10) Carrusel / Banners
========================================================= */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  margin: auto;
  border-radius: 10px;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel img {
  width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}

.indicators {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 25px;
  width: 100%;
}

.indicator {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: gray;
  border-radius: 50%;
  cursor: pointer;
}

.indicator.active { background: white; }

/* =========================================================
   11) Utilidades / Varios
========================================================= */
.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-product-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  margin: -40px 0;
}

/* =========================================================
   12) Responsividad
========================================================= */
@media (max-width: 480px){
  .sfab{ --size: 38px; }
  .sfab i{ font-size: 16px; }

  .social-fabs{
    grid-template-columns: repeat(2, 38px);
    grid-auto-rows: 38px;
  }
}
