/* ============================================
   IMPORTANTE: Las variables CSS de colores
   se inyectan automáticamente en <head> por:
   includes/class-ovcm-shortcode.php
   
   No es necesario definir :root aquí.
   ============================================ */

/* ============================================
   Aplicar estilo SOLO cuando NO es Wireframe (Divi 5)
   y NO es Visual Builder (Divi 4 / Divi 5)
   ============================================ */

/* Reglas generales */
html:not(.et-fb):not(.et-db):not(.et-vb-app-ancestor)
body:not([data-app-active-view="wireframe"]) {
  overflow: hidden;
  height: 100%;
}

html:not(.et-fb):not(.et-db):not(.et-vb-app-ancestor)
body:not([data-app-active-view="wireframe"]) 
#page-container .et_builder_inner_content {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   Escritorio
   ============================================ */
@media only screen and (min-width: 768px) {

  html:not(.et-fb):not(.et-db):not(.et-vb-app-ancestor)
  body:not([data-app-active-view="wireframe"]) 
  #page-container .et-l {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  html:not(.et-fb):not(.et-db):not(.et-vb-app-ancestor)
  body:not([data-app-active-view="wireframe"]) 
  #page-container .et_builder_inner_content {
    width: 100%;
    max-width: 380px;
    height: 100%;
    height: 100dvh;
    max-height: 770px;
    border-radius: 20px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.3);
  }
}

/* Estilos funcionalidad jquery */
.info-home, .info-menu, .info-ubicacion {
  display: none;
}

.ov-vcard-tabs .active {
  background-color: var(--color-primary) !important;
}

/* Estilos scrollbar */
::-webkit-scrollbar {
  width: 4px; 
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary); 
  border-radius: 8px; 
}

.dm-base-context {
  display: none;
}

/*** Estilos CSS Menu Dinamico ***/
#ov-listado-menu .titulo-seccion {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-secondary); 
  padding-top: 20px;
  margin-bottom: 6px;
  scroll-margin-top: 60px;
}

#ov-listado-menu .card-menu {
  position: relative;
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 10px;
  margin: 0 0 10px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

#ov-listado-menu .card-menu:hover {
    transform: translateY(-2px);
}

#ov-listado-menu .img-cover {
  flex: 1.6;
  overflow: hidden; 
  border-radius: 4px;
  width: 100%;
  height: 96px;
}

#ov-listado-menu .img-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#ov-listado-menu .info-menu {
  flex: 3;
  padding-left: 15px; 
  display: block;
}

#ov-listado-menu .info-menu .titulo {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-secondary); 
  margin-top: 6px;
  padding-bottom: 8px;
  line-height: 1.2;
}

#ov-listado-menu .info-menu .descripcion {
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-parrafo);
  margin-bottom: 6px;
  padding-bottom: 0;
}

.card-menu .descripcion {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
}

#ov-listado-menu .info-menu .precio {
  font-size: 14px;
  font-weight: bold;
  color: var(--color-secondary);
}

/* Ajustar la proporción imagenes menu */
.blurb-menu .et_pb_image_wrap {
  height: 96px;
}
.blurb-menu .et_pb_image_wrap img {
  height: 100%;
  object-fit: cover;
}

/* Estilos Tabs */
#tabs {
  display: flex;
  overflow: auto;
}
#tabs a {
  border: 1px solid var(--color-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 6px;
  color: var(--color-secondary);
  white-space: nowrap;
}
#tabs a.active {
  border: 1px solid var(--color-primary);
  background-color: var(--color-primary);
  color: #fff;
}

/* Estilos barra de desplazamiento por defecto en pestañas */
#tabs::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}
#tabs::-webkit-scrollbar-track {
  background-color: initial;
}
#tabs::-webkit-scrollbar-thumb {
  background-color: initial;
  border-radius: initial;
}
#tabs::-webkit-scrollbar-thumb:hover {
  background-color: initial;
}
#tabs {
  scrollbar-width: auto;
  scrollbar-color: initial;
}

/* Preloader */
#preloader {
  display: block;
  margin: 60px auto;
  z-index: 9999;
}

@keyframes ldio-pk6mhbe1fco {
  0% { transform: translate(-50%,-50%) rotate(0deg); }
  100% { transform: translate(-50%,-50%) rotate(360deg); }
}
.ldio-pk6mhbe1fco div {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 10px solid #cbd5e1;
  border-top-color: transparent;
  border-radius: 50%;
}
.ldio-pk6mhbe1fco div {
  animation: ldio-pk6mhbe1fco 1s linear infinite;
  top: 50px;
  left: 50px
}
.loadingio-spinner-rolling-zt8qwybayi {
  width: 91px;
  height: 91px;
  display: inline-block;
  overflow: hidden;
  background: none;
}
.ldio-pk6mhbe1fco {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(0.91);
  backface-visibility: hidden;
  transform-origin: 0 0;
}
.ldio-pk6mhbe1fco div { box-sizing: content-box; }

/* Estilos Popup Opciones */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 9999;
}
.popup.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear;
}

.popup-content,
.cart-popup {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup.show .popup-content,
.popup.show .cart-popup {
  opacity: 1;
  transform: scale(1);
}

.popup-content {
  background-color: #fff;
  display: flex;
  position: relative;
  justify-content: center;
  margin: auto;
  height: 100%;
  max-height: 600px;
  width: 100%;
  max-width: 1160px;
  padding: 0;
  border-radius: 8px;
  margin-right: 20px;
  margin-left: 20px;
}
.popup-left {
  flex: 1 1 580px;
}
.popup-left img {
  border-radius: 8px 0 0 8px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.popup-right {
  flex: 1 1 580px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.popup-content-wrapper {
  flex: 1;
  padding: 40px 30px 15px;
  overflow-y: auto;
}
.popup-right h3 {
  font-size: 26px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--color-secondary);
}
.popup-right p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--color-parrafo);
}

.quantity-control-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background-color: #f5f5f5;
  box-sizing: border-box;
  border-radius: 0 0 10px 0;
  width: 100%;
}
.quantity-control {
  display: flex;
  align-items: center;
}
.quantity-control button {
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #fff;
  color: var(--color-secondary);
  font-size: 17px;
  height: 30px;
  width: 30px;
  cursor: pointer;
}
.quantity-control button.decrement-quantity {
  margin-right: 10px;
}
.quantity-control button.increment-quantity {
  margin-left: 10px;
}
.quantity-control input {
  font-size: 15px;
  width: 40px;
  height: 30px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.options-container {
  margin-top: 30px;
  margin-bottom: 90px;
}

.option-group {
  margin-bottom: 30px;
}

.option-group h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-secondary);
}

.option-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.option-item input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width:18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  margin-right: 10px;
  position: relative;
}

.option-item input[type="checkbox"]:checked {
  background-color: var(--color-success);
  border-color: var(--color-success);
}

.option-item input[type="checkbox"]:checked::before {
  content: "\2713";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.option-item label {
  font-size: 15px;
  color: var(--color-parrafo);
}

.option-item input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%; 
  outline: none;
  cursor: pointer;
  margin-right: 10px;
  position: relative;
}

.option-item input[type="radio"]:checked {
  background-color: var(--color-success);
  border-color: var(--color-success);
}

.option-item input[type="radio"]:checked::before {
  content: "\2022"; /* Bullet point */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.required-badge {
  color: var(--color-danger);
  margin-left: 5px;
}

.option-group[data-required="true"] h4 {
  font-weight: bold;
}

.max-selection-note {
  font-size: 0.8em;
  color: var(--color-parrafo);
  font-weight: normal;
  margin-left: 5px;
}

.option-item input:disabled + label {
  color: #aaa;
  cursor: not-allowed;
}

.popup .icono-cerrar {
  position: absolute;
  font-size: 22px;
  top: 16px;
  right: 16px;
  color: #fff;
  background: var(--color-warning);
  padding: 7px 10px;
  border-radius: 100px;
  z-index: 99;
  cursor: pointer;
}

.agregar-al-carrito {
  flex-grow: 1;
  margin-left: 10px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  background-color: var(--color-secondary);
  color: #fff;
  padding: 12px 6px;
  border: none;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: filter 0.25s ease;
}
.agregar-al-carrito:hover {
    filter: brightness(0.85);
}

.agregar-al-carrito .precio {
  margin-left: 8px;
}

/* Estilos Icono Carrito */
.cart-icon {
  font-size: 24px;
  color: #fff;
}
.cart-count {
  position: absolute;
  top: -27px;
  left: -24px;
  background-color: var(--color-danger);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estilos Carrito Popup */
.cart-popup {
  position: relative;
  max-height: 90vh;
  box-sizing: border-box;
  min-height: 450px;
  width: 450px;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cart-content {
  flex: 1;
  overflow-y: auto;
}

.cart-content .cart-empty {
  font-size: 16px;
}

.cart-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

.cart-actions .cart-total {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--color-secondary);
}

.cart-totals {
  margin-bottom: 15px;
  font-size: 15px;
}

.subtotal-row, .tax-row {
  margin-bottom: 5px;
  color: var(--color-parrafo);
}

.total-row {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-secondary);
  margin-top: 8px;
}

.cart-actions .empty-cart,
.cart-actions #complete-order {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 10px;
  cursor: pointer;
}
.cart-actions #complete-order:disabled {
  cursor: not-allowed;
}

.cart-actions .empty-cart {
  background-color: #fff;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.cart-actions #complete-order {
  background-color: var(--color-secondary);
  color: #fff;
  border: 1px solid var(--color-secondary);
  padding: 11px;
  margin-bottom: 0;
}

.cart-popup .cart-content h2 {
  font-size: 26px;
  font-weight: bold;
  color: var(--color-secondary);
  margin-top: 0;
  margin-bottom: 30px;
}

.cart-popup ul {
  list-style: none;
  padding-left: 0;
}

.remove-item {
  font-size: 14px;
  margin-left: auto;
  margin-right: 10px;
  color: var(--color-danger);
  cursor: pointer;
}
.empty-cart {
  margin-top: 10px;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 20px;
  border-radius: 6px;
}

.cart-popup .cart-item-details h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 0;
  margin-bottom: 10px;
  padding: 0;
}

.cart-popup .cart-item-details .list-cantidad {
  margin-top: 6px;
  margin-bottom: 4px;
  padding: 0;
  color: var(--color-parrafo);
}
.cart-popup .cart-item-details .list-precio {
  color: var(--color-parrafo);
  margin: 0;
}

.cart-popup .cart-item-details .list-opciones {
  line-height: 1.5;
  color: var(--color-parrafo);
}
.cart-popup .cart-item-details .list-opciones b {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--color-parrafo);
}

.cart-popup .cart-item-details .list-item-total {
  color: var(--color-secondary);
}

/* Estilos Alérgenos */
.allergens-container {
  margin: 15px 0;
}

.allergens-container h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-secondary);
}

.allergens-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.allergen-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}

.allergen-item img {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}

.allergen-item span {
  text-align: center;
  color: var(--color-parrafo);
}


/* Estilos Formulario Pedido */
.order-form {
  width: 100%;
  margin: 0;
}

.order-form h2 {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-secondary);
  margin-top: 0;
  margin-bottom: 30px;
  padding-bottom: 0;
}

.order-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--color-parrafo);
}

.order-form input[type="text"],
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  color: var(--color-parrafo);
}

.order-form input.text:focus, .order-form input.title:focus, .order-form input[type=text]:focus, .order-form select:focus, .order-form textarea:focus {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.order-form textarea {
  resize: vertical;
}

.order-form input[type="tel"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  color: var(--color-parrafo);
}

.order-form input[type="tel"]:focus {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

#phone-error {
  margin-top: -10px;
  margin-bottom: 15px;
  font-size: 12px;
  color: var(--color-danger);
  display: none;
}

.order-form button[type="submit"] {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: var(--color-success);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 20px;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

#submit-order i {
  margin-right: 5px;
}

.order-form button[type="submit"]:hover {
  background-color: #45a049;
}

.order-form button[type="submit"]:disabled {
  background-color: #88d4a5; 
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.order-form .terminos {
  display: flex;
  margin-bottom: 15px;
}

.order-form .terminos a {
  color: var(--color-link);
}

.order-form .terminos label {
  font-size: 13px;
  font-weight: 400;
  margin-left: 6px;
  margin-bottom: 0;
}

#back-to-cart {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
}

#back-to-cart:hover,
#back-to-cart:hover i {
  color: var(--color-danger);
}
#back-to-cart i {
  color: #FF1844;
  margin-right: 5px;
}

.coupon-section {
  margin: 15px 0 20px 0;
}

.coupon-input {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}

.coupon-input input {
  flex: 1;
  margin-bottom: 0 !important;
}

.coupon-input button {
  background-color: var(--color-secondary);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

#coupon-message {
  margin-top: 5px;
  font-size: 13px;
}

#coupon-message .success {
  color: var(--color-success);
}

#coupon-message .error {
  color: var(--color-danger);
}

.order-summary {
  background-color: #f8f8f8;
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
}

.order-summary h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--color-secondary);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--color-secondary);
}

.summary-row.total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-weight: bold;
  font-size: 18px;
}

/* Mensaje de monto mínimo de pedido */
.order-summary .minimum-order-warning {
  background-color: #fff3cd;
  border: none;
  border-radius: 6px;
  padding: 12px 15px;
  margin: 15px 0 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #856404;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.order-summary .minimum-order-warning i {
  font-size: 18px;
  color: var(--color-warning, #940000);
  vertical-align: middle;
  display: block;
  margin-top: px;
  margin-bottom: 10px;
}

.order-summary .minimum-order-warning strong {
  display: inline-block;
  font-size: 14px;
  line-height: 1.3;
  color: #664d03;
  margin-bottom: 10px;
}

.legal-notice {
  background-color: #f5f5f5;
  border-left: 3px solid var(--color-info);
  padding: 10px 15px;
  margin: 15px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-parrafo);
}

#shipping-zones {
  margin-top: 15px;
}

/* Estilos popup fuera de horario */
.closed-message-popup {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.closed-message-popup i {
  font-size: 48px;
  color: var(--color-warning);
  margin-bottom: 20px;
}

.closed-message-popup h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--color-secondary);
}

.closed-message-popup p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--color-parrafo);
}

.timezone-info {
  font-size: 12px;
  color: #828994;
  margin-bottom: 20px;
  font-style: italic;
}

.closed-message-popup button {
  background-color: var(--color-secondary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.closed-message-popup button:hover {
  background-color: var(--color-secondary);
}

/** Estilos generales responsive  **/
@media only screen and (max-width: 980px) {
  .popup-content {
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: flex-start;
    max-height: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin-right: 0;
    margin-left: 0;
  }
  .popup-left {
    flex: initial;
  }
  .popup-left img {
    border-radius: 0;
    object-fit: cover;
    width: 100%;
    max-width: 100%;
    height: 260px;
    min-width: 320px;
  }
  .popup-content-wrapper {
    padding: 20px 30px 20px;
  }
  .popup-right {
    overflow-y: auto;
  }
  .popup-right h3 {
    font-size: 20px;
    padding-bottom: 0;
  }
  .popup-right p {
    font-size: 14;
  }
  .options-container {
    margin-top: 20px;
  }
  .option-group {
    margin-bottom: 25px;
  }
  .option-group h4 {
    font-size: 16;
    font-weight: 600;
  }
  .option-item label {
    font-size: 14px;
  }

  .agregar-al-carrito {
    font-size: 13px;
  }
 
  .cart-popup {
    max-height: 100%;
    min-height: 100%;
    width: 100%;
    padding: 30px 20px 20px 20px;
    border-radius: 0;
  }
  .cart-popup .cart-content h2 {
    font-size: 22px;
    margin-top: 20px;
  }
  .cart-item img {
    width: 35px;
    height: 35px;
    margin-right: 16px;
  }
  .cart-actions .empty-cart, .cart-actions #complete-order {
    font-size: 15px;
  }
  
  .quantity-control-container {
    border-radius: 0;
  }
  
  .order-form select {
    height: 50px;
  }
}

@media only screen and (max-width: 768px) {
  .cart-icon {
    font-size: 20px;
  }
  .cart-count {
    top: -26px;
    left: -26px;
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
  .popup-left img {
    height: 200px;
  }
  .allergens-icons {
    gap: 10px;
  }
  .allergen-item img {
    width: 25px;
    height: 25px;
  }
  .allergen-item span {
    font-size: 10px;
  }
  .cart-totals {
    font-size: 14px;
  }

  .total-row {
      font-size: 16px;
  }
}

/* ===========================
   ESTILOS UNIFICADOS DE DESCUENTOS Y MENSAJES
   =========================== */

.motivational-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 10px 0 15px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    animation: slideInDown 0.5s ease-out;
    display: block;
}

.motivational-message.success {
    background: linear-gradient(
        135deg,
        var(--color-success),
        color-mix(in srgb, var(--color-success) 90%, black)
    );
    box-shadow: 0 2px 8px rgba(from var(--color-success) r g b / 0.30);
}

.motivational-message i {
    margin-right: 8px;
}

.discount-row {
    color: var(--color-success);
    font-weight: 600;
    margin-top: 6px;
}

.discount-row .discount-value {
    color: var(--color-success);
    font-weight: 700;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.cart-totals .motivational-message {
    margin: 8px 0 12px;
    padding: 10px 12px;
}

.cart-totals .motivational-message.success,
.cart-totals .motivational-message {
    border-radius: 8px;
}

.cart-actions .motivational-message {
    margin-bottom: 15px;
}

/* Toast de carrito */
.cart-toast {
  position: fixed;
  bottom: 130px; 
  right: 20px;
  background: linear-gradient(
    135deg,
    var(--color-success),
    color-mix(in srgb, var(--color-success) 90%, black)
  );
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: toastSlide 0.4s ease, toastHide 0.4s ease 2.5s forwards;
}

@media (max-width: 768px) {
  .cart-toast {
    bottom: 165px;
    right: 10px;         
    padding: 8px 12px;   
    font-size: 12px;     
    border-radius: 6px;
    gap: 6px;
  }
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastHide {
  to   { opacity: 0; transform: translateY(10px); }
}

/* --------------- BUSCADOR DISEÑO PRO ---------------- */
#contenedor-buscador {
    transition: opacity 0.3s ease;
}

#contenedor-buscador.oculto {
    display: none !important;
    opacity: 0;
}

.ov-search-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 4px;
}

.ov-search-wrapper input {
  width: 100%;
  padding: 6px 16px !important;
  padding-left: 40px !important;
  font-size: 14px;
  border-radius: 50px;
  border: 2px solid #e3e3e3 !important;
  background: #fff;
  outline: none;
  transition: all 0.25s ease;
  font-weight: 500;
  color: var(--color-parrafo) !important;
}

.ov-search-wrapper input::placeholder{
    color: color-mix(in srgb, var(--color-parrafo) 60%, white);
}


.ov-search-wrapper input:focus {
    border-color: color-mix(in srgb, var(--color-parrafo) 50%, white) !important;
}

.ov-search-wrapper .ov-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.6;
  color: color-mix(in srgb, var(--color-parrafo) 60%, white);
}

#menu-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 20px;
  opacity: 0;
  cursor: pointer;
  line-height: 1;
  transition: 0.2s ease;
}

#menu-search-clear.visible {
  opacity: 0.8;
  color: var(--color-warning);
}

#menu-search-clear:hover {
  opacity: 1;
}

/* ========================================
   BOTÓN DE UBICACIÓN ACTUAL
   ======================================== */
.locate-me-btn {
  width: 100%;
  padding: 12px 20px;
  margin: 0 0 20px;
  background: var(--color-accent, #f39c12);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.locate-me-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  filter: brightness(1.1);
}

.locate-me-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  filter: brightness(0.95);
}

.locate-me-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.locate-me-btn i {
  font-size: 16px;
}

.locate-me-btn .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive para botón de ubicación */
@media (max-width: 600px) {
  .locate-me-btn {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* ====================================
   ESTILOS DE DESCUENTOS Y PRECIOS
   ==================================== */

/* Badge general de descuento */
.ovcm-product-discount-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(
        135deg,
        var(--color-accent),
        color-mix(in srgb, var(--color-accent) 80%, white)
    );
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(from var(--color-accent) r g b / 0.25);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse-discount 2s ease-in-out infinite;
}

@keyframes pulse-discount {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(from var(--color-accent) r g b / 0.25);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 18px rgba(from var(--color-accent) r g b / 0.35);
    }
}

/* Precios individuales */
.ovcm-price-original,
.menu-precio-original,
.modal-precio-original {
    text-decoration: line-through;
    color: #999;
    opacity: 0.7;
}

.ovcm-price-original { font-size: 0.9em; margin-right: 8px; }
.menu-precio-original { font-size: 0.9em; font-weight: 400; }
.modal-precio-original { font-size: 1em; }

/* Precios con descuento */
.ovcm-price-discounted,
.menu-precio-descuento,
.modal-precio-descuento {
    color: var(--color-accent);
    font-weight: 700;
}

.ovcm-price-discounted { font-size: 1.1em; }
.menu-precio-descuento { font-size: 1.1em; }
.modal-precio-descuento { font-size: 1.3em; }

/* Contenedores de precios */
.ovcm-product-prices,
.menu-precio-container,
.modal-precio-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.menu-precio-container { margin-top: 8px; }
.modal-precio-container { margin: 12px 0 24px; gap: 10px; }

/* Modal */
.ovcm-modal-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(
        135deg,
        var(--color-accent),
        color-mix(in srgb, var(--color-accent) 80%, white)
    );
    color: white;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(from var(--color-accent) r g b / 0.4);
    margin-bottom: 20px;
}

.modal-precio-normal {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2em;
}

/* Badge del carrito */
.cart-item-discount-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(
        135deg,
        var(--color-accent),
        color-mix(in srgb, var(--color-accent) 80%, white)
    );
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 5px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(from var(--color-accent) r g b / 0.4);
    z-index: 5;
}

.list-img,
.list-item,
.card-menu {
    position: relative;
}

/* Tarjetas con descuento */
.card-menu.has-discount {
    box-shadow: 0 4px 20px rgba(from var(--color-accent) r g b / 0.15);
    transition: box-shadow .25s ease, transform .25s ease;
}

.card-menu.has-discount:hover {
    box-shadow: 0 6px 30px rgba(from var(--color-accent) r g b / 0.25);
    transform: translateY(-2px);
}

/* Productos sin descuento */
.card-menu:not(.has-discount) .menu-precio {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1em;
}

/* ====================================
   RESPONSIVE
   ==================================== */

/* 768px */
@media (max-width: 768px) {
    .ovcm-modal-discount-badge {
        font-size: 12px;
        padding: 5px 11px;
    }
}

/* 992px */
@media (max-width: 992px) {
    .modal-precio-descuento { font-size: 1.2em; }
    .menu-precio-descuento { font-size: 1.05em; }
}

/* 480px */
@media (max-width: 480px) {
    .ovcm-product-discount-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    .cart-item-discount-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
    .menu-precio-container { gap: 6px; }
    .menu-precio-original { font-size: 0.85em; }
    .menu-precio-descuento { font-size: 1em; }
}

/* ================================
   MANTENANCE SCREEN (OVCM)
   ================================ */

.ovcm-maintenance-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
    text-align: center;
    border-radius: 20px;
    animation: ovcmFadeIn 0.4s ease;
}

.ovcm-maintenance-icon {
    font-size: 80px;
    margin-bottom: 20px;
    color: var(--color-warning);
}

.ovcm-maintenance-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.ovcm-maintenance-text {
    font-size: 18px;
    color: var(--color-parrafo);
    line-height: 1.6;
}

/* Fade-in animation */
@keyframes ovcmFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .ovcm-maintenance-icon {
    font-size: 60px;
  } 

  .ovcm-maintenance-title {
     font-size: 20px;
  }

  .ovcm-maintenance-text {
      font-size: 14px;
  }
}

/* ============================================
   ESTILOS PARA SISTEMA DE COMBOS
   ============================================ */

/* Contenedor principal del combo */
.ovcm-combo-selector {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Título del combo */
.ovcm-combo-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ovcm-combo-icon {
  font-size: 18px;
}

/* Contador de progreso */
.ovcm-combo-progress {
  margin: 15px 0;
  padding: 12px;
  background: white;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
}

.ovcm-combo-progress-text {
  font-size: 14px;
  color: var(--color-parrafo);
  margin-bottom: 8px;
  text-align: center;
}

.ovcm-combo-counter {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

.ovcm-combo-counter.complete {
  color: var(--color-success);
}

.ovcm-combo-counter.exceeded {
  color: var(--color-danger);
}

/* Barra de progreso */
.ovcm-combo-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.ovcm-combo-progress-fill {
  height: 100%;
  background: var(--color-primary);
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

.ovcm-combo-progress-fill.complete {
  background: var(--color-success);
}

.ovcm-combo-progress-fill.exceeded {
  background: var(--color-danger);
}

/* Lista de opciones del combo */
.ovcm-combo-options {
  margin-top: 15px;
}

.ovcm-combo-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.ovcm-combo-option:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ovcm-combo-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ovcm-combo-option-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-secondary);
}

.ovcm-combo-option-price {
  font-size: 13px;
  color: var(--color-parrafo);
}

/* Controles de cantidad */
.ovcm-combo-quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ovcm-combo-qty-btn {
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-primary);
  background: white;
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.ovcm-combo-qty-btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.ovcm-combo-qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #d1d5db;
  color: #9ca3af;
}

.ovcm-combo-qty-value {
  min-width: 30px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
}

/* Mensajes de validación */
.ovcm-combo-validation {
  margin-top: 15px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.ovcm-combo-validation.show {
  display: block;
}

.ovcm-combo-validation.success {
  background: color-mix(in srgb, var(--color-success), white 80%);
  color: color-mix(in srgb, var(--color-success), black 30%);
  border: 1px solid color-mix(in srgb, var(--color-success), white 40%);
}


.ovcm-combo-validation.warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.ovcm-combo-validation.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Indicador de combo en la card del producto */
.ovcm-combo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Animación de shake para errores */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.ovcm-combo-validation.shake {
  animation: shake 0.3s ease;
}

/* Resumen del combo en el carrito */
.ovcm-cart-combo-details {
  margin-top: 8px;
  margin-bottom: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.cart-item-details .list-combo-title {
  color: var(--color-parrafo);
  padding: 0;
}

.ovcm-cart-combo-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: var(--color-parrafo);
}

.ovcm-cart-combo-item-qty {
  font-weight: 600;
  color: var(--color-primary);
  margin-right: 5px;
}

/* Responsive */
@media (max-width: 480px) {
  .ovcm-combo-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .ovcm-combo-quantity-controls {
    width: 100%;
    justify-content: flex-end;
  }
}

/** AJUSTE5 DIVI 5 **/
.et_block_row.info-home .et_pb_button:before,
.et_block_row.info-ubicacion .et_pb_button:before {
    left: auto !important;
}
