  /**
  * OV Card Menu - Estilos principales
  * Version: 1.0.0
  */

  /* ============================================
    IMPORTANTE: Este archivo USA las variables 
    inyectadas por PHP en el <head>:
    
    :root {
      --color-primary
      --color-secondary
      --color-accent
      --color-success
      --color-danger
      --color-warning
      --color-info
      --color-link
    }
    ============================================ */

  /* Variables CSS personalizables por instancia */
  .ovcm-catalog {
    /* Variables de espaciado (NO configurables) */
    --ovcm-spacing-sm: 8px;
    --ovcm-spacing-md: 15px;
    --ovcm-spacing-lg: 30px;
    
    /* Variables de bordes (NO configurables) */
    --ovcm-border-radius: 6px;
    --ovcm-border-radius-lg: 10px;
  }

  /* Reset y estilos base del catálogo */
  .ovcm-catalog {
    font-family: inherit;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .ovcm-catalog *,
  .ovcm-catalog *::before,
  .ovcm-catalog *::after {
    box-sizing: inherit;
  }

  /* Scrollbar personalizado */
  .ovcm-catalog ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }

  .ovcm-catalog ::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 8px;
  }

  .ovcm-catalog ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  /* Indicador de carga */
  .ovcm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--ovcm-spacing-lg);
    min-height: 300px;
  }

  .ovcm-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--color-primary);
    border-radius: 50%;
    animation: ovcm-spin 1s linear infinite;
  }

  @keyframes ovcm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .ovcm-loading p {
    margin-top: var(--ovcm-spacing-md);
    color: #666;
    font-size: 14px;
  }

  /* Mensajes de error */
  .ovcm-error-message {
    padding: var(--ovcm-spacing-lg);
    background: #fee;
    border: 1px solid #fcc;
    border-radius: var(--ovcm-border-radius);
    text-align: center;
  }

  .ovcm-error-text {
    color: var(--color-danger);
    margin-bottom: var(--ovcm-spacing-md);
  }

  .ovcm-retry-btn {
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--ovcm-border-radius);
    cursor: pointer;
    font-size: 14px;
  }

  .ovcm-retry-btn:hover {
    opacity: 0.9;
  }

  /* Mensaje de cerrado (fuera de horario) */
  .ovcm-closed-message {
    text-align: center;
    padding: var(--ovcm-spacing-lg);
    background: white;
    border-radius: var(--ovcm-border-radius-lg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: var(--ovcm-spacing-lg);
  }

  .ovcm-closed-icon {
    font-size: 48px;
    margin-bottom: var(--ovcm-spacing-md);
  }

  .ovcm-closed-message h3 {
    color: var(--color-warning);
    margin-bottom: var(--ovcm-spacing-md);
  }

  .ovcm-closed-text {
    color: #555;
    line-height: 1.6;
  }

  /* Barra superior con búsqueda y filtros */
  .ovcm-header {
    display: flex;
    align-items: center;
    gap: var(--ovcm-spacing-md);
    padding: var(--ovcm-spacing-md);
    background: white;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
  }

  .ovcm-search-container {
    flex: 1;
    min-width: 200px;
    position: relative;
  }

  .ovcm-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--ovcm-border-radius);
    font-size: 14px;
  }

  .ovcm-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .ovcm-filters-container {
    flex-shrink: 0;
  }

  .ovcm-category-filter {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--ovcm-border-radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
  }

  /* Botón del carrito */
  .ovcm-cart-toggle {
    position: relative;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--ovcm-border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }

  .ovcm-cart-toggle:hover {
    opacity: 0.9;
  }

  .ovcm-cart-icon {
    font-size: 20px;
  }

  .ovcm-cart-count {
    background: var(--color-danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
  }

  /* Contenedor del menú */
  .ovcm-menu-container {
    padding: var(--ovcm-spacing-md);
  }

  .ovcm-menu-section {
    margin-bottom: var(--ovcm-spacing-lg);
  }

  .ovcm-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: var(--ovcm-spacing-md);
    padding-top: var(--ovcm-spacing-md);
  }

  /* Layout Grid */
  .ovcm-layout-grid .ovcm-menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--ovcm-spacing-md);
  }

  /* Layout List (por defecto) */
  .ovcm-layout-list .ovcm-menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Tarjeta de producto */
  .ovcm-product-card {
    display: flex;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--ovcm-border-radius);
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .ovcm-product-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
  }

  .ovcm-product-image {
    flex: 1.6;
    overflow: hidden;
    border-radius: 4px;
    width: 100%;
    height: 96px;
  }

  .ovcm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ovcm-product-info {
    flex: 3;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .ovcm-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-top: 6px;
    padding-bottom: 8px;
    line-height: 1.2;
  }

  .ovcm-product-description {
    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 6px;
    color: #666;
  }

  .ovcm-product-price {
    font-size: 14px;
    font-weight: bold;
    color: #333;
  }

  /* Sidebar del carrito */
  .ovcm-cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 450px;
    z-index: 10000;
    pointer-events: none;
  }

  .ovcm-cart-sidebar.active {
    pointer-events: auto;
  }

  .ovcm-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .ovcm-cart-sidebar.active .ovcm-cart-overlay {
    opacity: 1;
    visibility: visible;
  }

  .ovcm-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  }

  .ovcm-cart-sidebar.active .ovcm-cart-panel {
    transform: translateX(0);
  }

  /* Header del carrito */
  .ovcm-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--ovcm-spacing-lg);
    border-bottom: 1px solid #e5e7eb;
  }

  .ovcm-cart-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
  }

  .ovcm-cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
  }

  .ovcm-cart-close:hover {
    color: #000;
  }

  /* Body del carrito */
  .ovcm-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--ovcm-spacing-lg);
  }

  .ovcm-cart-empty {
    text-align: center;
    padding: var(--ovcm-spacing-lg);
  }

  .ovcm-cart-empty-icon {
    font-size: 48px;
    margin-bottom: var(--ovcm-spacing-md);
    opacity: 0.5;
  }

  .ovcm-cart-empty p {
    color: #999;
    margin-bottom: var(--ovcm-spacing-md);
  }

  .ovcm-continue-shopping {
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--ovcm-border-radius);
    cursor: pointer;
    font-size: 14px;
  }

  .ovcm-continue-shopping:hover {
    opacity: 0.9;
  }

  /* Items del carrito */
  .ovcm-cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--ovcm-spacing-md);
  }

  .ovcm-cart-item {
    display: flex;
    gap: var(--ovcm-spacing-md);
    padding: var(--ovcm-spacing-md);
    background: #f9fafb;
    border-radius: var(--ovcm-border-radius);
    position: relative;
  }

  .ovcm-cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--ovcm-border-radius);
    overflow: hidden;
    flex-shrink: 0;
  }

  .ovcm-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ovcm-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .ovcm-cart-item-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
  }

  .ovcm-cart-item-options {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
  }

  .ovcm-cart-item-price {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 14px;
  }

  .ovcm-cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
  }

  .ovcm-quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--ovcm-border-radius);
    padding: 5px;
  }

  .ovcm-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--color-secondary);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ovcm-qty-btn:hover {
    opacity: 0.9;
  }

  .ovcm-qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #333;
  }

  .ovcm-remove-item {
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    line-height: 1;
  }

  .ovcm-remove-item:hover {
    opacity: 0.7;
  }

  /* Footer del carrito */
  .ovcm-cart-footer {
    border-top: 1px solid #e5e7eb;
    padding: var(--ovcm-spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--ovcm-spacing-md);
  }

  /* Sección de cupón */
  .ovcm-coupon-section {
    display: flex;
    gap: 10px;
  }

  .ovcm-coupon-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--ovcm-border-radius);
    font-size: 14px;
  }

  .ovcm-coupon-apply {
    padding: 10px 20px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: var(--ovcm-border-radius);
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
  }

  .ovcm-coupon-apply:hover {
    opacity: 0.9;
  }

  .ovcm-coupon-message {
    padding: 8px 12px;
    border-radius: var(--ovcm-border-radius);
    font-size: 13px;
    margin-top: -5px;
  }

  .ovcm-coupon-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }

  .ovcm-coupon-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }

  /* Selector de zona de envío */
  .ovcm-shipping-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .ovcm-shipping-section label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
  }

  .ovcm-shipping-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--ovcm-border-radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
  }

  /* Resumen de totales */
  .ovcm-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: var(--ovcm-spacing-md);
    border-top: 1px solid #e5e7eb;
  }

  .ovcm-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
  }

  .ovcm-total-row.ovcm-discount-row {
    color: var(--color-success);
  }

  .ovcm-total-row.ovcm-total-final {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    padding-top: 10px;
    border-top: 2px solid #e5e7eb;
  }

  .ovcm-total-row.ovcm-total-final .ovcm-total {
    color: var(--color-primary);
  }

  /* Botón de checkout */
  .ovcm-checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--color-success);
    color: white;
    border: none;
    border-radius: var(--ovcm-border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
  }

  .ovcm-checkout-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  }

  .ovcm-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
  }

  .ovcm-checkout-icon {
    font-size: 20px;
  }

  /* Modal de detalles del producto */
  .ovcm-product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .ovcm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .ovcm-product-modal.active .ovcm-modal-overlay {
    opacity: 1;
  }

  .ovcm-modal-content {
    position: relative;
    background: white;
    border-radius: var(--ovcm-border-radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .ovcm-product-modal.active .ovcm-modal-content {
    transform: scale(1);
    opacity: 1;
  }

  .ovcm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .ovcm-modal-close:hover {
    background: #f5f5f5;
    color: #000;
  }

  .ovcm-modal-body {
    padding: 0;
  }

  .ovcm-modal-product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: var(--ovcm-border-radius-lg) var(--ovcm-border-radius-lg) 0 0;
  }

  .ovcm-modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ovcm-modal-product-details {
    padding: var(--ovcm-spacing-lg);
  }

  .ovcm-modal-product-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
  }

  .ovcm-modal-product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: var(--ovcm-spacing-md);
  }

  .ovcm-modal-product-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--ovcm-spacing-md);
  }

  .ovcm-allergen-tag {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
  }

  .ovcm-modal-product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--ovcm-spacing-lg);
  }

  /* Opciones del producto */
  .ovcm-product-options {
    display: flex;
    flex-direction: column;
    gap: var(--ovcm-spacing-md);
    margin-bottom: var(--ovcm-spacing-lg);
  }

  .ovcm-option-group {
    border: 1px solid #e5e7eb;
    border-radius: var(--ovcm-border-radius);
    padding: var(--ovcm-spacing-md);
  }

  .ovcm-option-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
  }

  .ovcm-option-group-title .required {
    color: var(--color-danger);
    margin-left: 4px;
  }

  .ovcm-option-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .ovcm-option-choice {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: var(--ovcm-border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .ovcm-option-choice:hover {
    background: #f9fafb;
    border-color: var(--color-primary);
  }

  .ovcm-option-choice.selected {
    background: #f0f9ff;
    border-color: var(--color-primary);
  }

  .ovcm-option-choice input[type="radio"],
  .ovcm-option-choice input[type="checkbox"] {
    margin-right: 10px;
  }

  .ovcm-option-label {
    flex: 1;
    font-size: 14px;
    color: #333;
  }

  .ovcm-option-price {
    font-size: 14px;
    color: #666;
    font-weight: 600;
  }

  /* Control de cantidad en el modal */
  .ovcm-modal-quantity-control {
    display: flex;
    align-items: center;
    gap: var(--ovcm-spacing-md);
    margin-bottom: var(--ovcm-spacing-lg);
  }

  .ovcm-modal-quantity-control label {
    font-weight: 600;
    color: #333;
  }

  .ovcm-quantity-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--ovcm-border-radius);
    padding: 8px;
  }

  .ovcm-modal-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-secondary);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ovcm-modal-qty-btn:hover {
    opacity: 0.9;
  }

  .ovcm-modal-qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: #333;
  }

  /* Botón añadir al carrito en modal */
  .ovcm-add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--ovcm-border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
  }

  .ovcm-add-to-cart-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
  }

  .ovcm-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
  }

  /* Estados de disponibilidad */
  .ovcm-out-of-stock {
    opacity: 0.5;
    pointer-events: none;
  }

  .ovcm-out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-danger);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .ovcm-cart-sidebar {
      max-width: 100%;
    }
    
    .ovcm-modal-product-name {
      font-size: 20px;
    }
    
    .ovcm-modal-product-price {
      font-size: 24px;
    }
    
    .ovcm-header {
      flex-direction: column;
      align-items: stretch;
    }
    
    .ovcm-search-container {
      width: 100%;
    }
    
    .ovcm-filters-container {
      width: 100%;
    }
    
    .ovcm-category-filter {
      width: 100%;
    }
  }

  @media (max-width: 480px) {
    .ovcm-cart-item {
      flex-direction: column;
    }
    
    .ovcm-cart-item-image {
      width: 100%;
      height: 120px;
    }
    
    .ovcm-modal-product-image {
      height: 180px;
    }
    
    .ovcm-layout-grid .ovcm-menu-items {
      grid-template-columns: 1fr;
    }
  }

  /* ==============================================
    TRANSFERENCIA BANCARIA Y MESAS
    ============================================== */

  .bank-transfer-info {
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .bank-transfer-info h4 {
      margin: 0 0 18px 0;
      color: #111827;
      font-size: 16px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
  }

  .bank-transfer-info h4 i {
      color: var(--color-primary, #940000);
      font-size: 18px;
  }

  .bank-transfer-info pre {
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-left: 3px solid var(--color-primary, #940000);
      border-radius: 8px;
      padding: 20px;
      margin: 0 0 16px 0;
      font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
      font-size: 14px;
      line-height: 2;
      color: #374151;
      white-space: pre-wrap;
      word-wrap: break-word;
      transition: all 0.2s ease;
  }

  .bank-transfer-info pre:hover {
      background: #f3f4f6;
      border-color: var(--color-primary, #940000);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .bank-transfer-info > p {
      margin: 0;
      padding: 14px 16px !important;
      background: #fef3c7;
      border: 1px solid #fde68a;
      border-radius: 8px;
      font-size: 13px;
      color: var(--color-parrafo);
      line-height: 1.6;
  }

  .bank-transfer-info > p strong {
      color: var(--color-warning);
      font-weight: 700;
  }

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

  @media (max-width: 480px) {
      .bank-transfer-info {
          padding: 18px;
      }
      
      .bank-transfer-info pre {
          padding: 16px;
          font-size: 13px;
          line-height: 1.9;
      }
  }

  /* ==============================================
    MAPA MAPBOX
    ============================================== */

  #map {
    width: 100%;
    height: 240px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .delivery-warning {
    display: none;
    background: #fff4e5;
    color: #d17b00;
    border: 1px solid #ffd18c;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-in-out;
  }

  .delivery-warning span {
    font-weight: bold;
    display: inline-block;
    margin-bottom: 6px;
    margin-left: 6px;
  }

  .delivery-warning.active {
    display: block;
  }

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

  /* ==============================================
    MODAL DE TÉRMINOS Y CONDICIONES
    ============================================== */

  .terms-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.65);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 10002;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
  }

  .terms-modal.active {
      opacity: 1;
      visibility: visible;
  }

  .terms-modal-content {
      position: relative;
      background: #fff;
      border-radius: 12px;
      max-width: 700px;
      width: 100%;
      max-height: 80vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
      animation: slideInUp 0.4s ease;
  }

  .terms-modal-header {
      padding: 25px;
      border-bottom: 1px solid #e0e0e0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
      border-radius: 12px 12px 0 0;
  }

  .terms-modal-content .terms-modal-header #close-terms-modal {
      width: 38px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      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;
  }

  .terms-modal-header h2 {
      margin: 0;
      color: var(--color-secondary);
      font-size: 22px;
      font-weight: 700;
  }

  .terms-modal-close {
      background: none;
      border: none;
      font-size: 28px;
      cursor: pointer;
      color: #999;
      line-height: 1;
      padding: 0;
      transition: all 0.2s ease;
  }

  .terms-modal-close:hover {
      color: #333;
      transform: rotate(90deg);
  }

  .terms-modal-body {
      flex: 1;
      overflow-y: auto;
      padding: 25px;
      font-size: 14px;
      line-height: 1.7;
      color: #555;
  }

  .terms-modal-body h3 {
      color: var(--color-secondary);
      margin-top: 16px;
      margin-bottom: 4px;
      font-size: 16px;
      font-weight: 600;
  }

  .terms-modal-body p {
      margin-bottom: 15px;
      color: var(--color-parrafo);
  }

  .terms-modal-body ul,
  .terms-modal-body ol {
      margin-left: 20px;
      margin-bottom: 15px;
  }

  .terms-modal-body li {
      margin-bottom: 8px;
  }

  .terms-modal-footer {
      padding: 20px 25px;
      border-top: 1px solid #e0e0e0;
      display: flex;
      justify-content: flex-end;
  }

  .terms-modal-footer .btn-primary {
      background: var(--color-primary, #940000);
      color: #fff;
      border: none;
      padding: 12px 30px;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
  }

  .terms-modal-footer .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(148, 0, 0, 0.3);
  }

  /* ==============================================
    NOTIFICACIÓN DE ÉXITO
    ============================================== */

  .success-notification-popup {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 10000;
  }

  .success-notification-content {
      background: #fff;
      border-radius: 16px;
      padding: 40px 30px;
      max-width: 450px;
      width: 100%;
      text-align: center;
      box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
      animation: bounceIn 0.5s ease-out;
  }

  .success-icon {
      font-size: 80px;
      color: #4CAF50;
      margin-bottom: 20px;
      animation: scaleIn 0.5s ease-out 0.2s backwards;
  }

  .success-notification-content h2 {
      font-size: 24px;
      font-weight: 700;
      color: var(--color-secondary);
      line-height: 1.3;
      margin: 0 0 15px 0;
      animation: fadeInUp 0.5s ease-out 0.3s backwards;
  }

  .success-notification-content .order-number {
      font-size: 16px;
      color: var(--color-parrafo);
      margin: 15px 0;
      padding: 15px;
      background: #f8f9fa;
      border-radius: 8px;
      animation: fadeInUp 0.5s ease-out 0.4s backwards;
  }

  .success-notification-content .order-number strong {
      color: var(--color-secondary);
      font-weight: 700;
      font-size: 18px;
      display: block;
      margin-top: 5px;
  }

  .success-notification-content .success-message {
      font-size: 14px;
      line-height: 1.6;
      color: var(--color-parrafo);
      margin: 15px 0 25px 0;
      animation: fadeInUp 0.5s ease-out 0.5s backwards;
  }

  .success-notification-content .success-whatsapp-reminder {
      background: #ecfdf3;
      border: 1px solid #25d366;
      border-radius: 10px;
      padding: 14px 16px;
      color: #0f5132;
      font-size: 15px;
  }

  .success-notification-content .success-whatsapp-reminder strong {
      display: block;
      margin-bottom: 6px;
      font-size: 16px;
      color: #075e54;
  }

  .success-icon .fa-whatsapp {
      color: #25d366;
  }

  .success-notification-content .btn-primary {
      background: var(--color-success);
      color: #fff;
      border: none;
      padding: 14px 40px;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      animation: fadeInUp 0.5s ease-out 0.6s backwards;
  }

  .success-notification-content .btn-primary:hover {
      background: color-mix(in srgb, var(--color-success), black 10%);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px color-mix(in srgb, var(--color-success), transparent 70%);
  }

  /* ==============================================
    AVISO ANTES DE ENVIAR POR WHATSAPP
    ============================================== */

  .whatsapp-reminder-popup {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 10003;
  }

  .whatsapp-reminder-content {
      background: #fff;
      border-radius: 16px;
      padding: 36px 28px 28px;
      max-width: 460px;
      width: 100%;
      text-align: center;
      box-shadow: 0 10px 50px rgba(0, 0, 0, 0.18);
      animation: bounceIn 0.45s ease-out;
  }

  .whatsapp-reminder-icon {
      width: 72px;
      height: 72px;
      margin: 0 auto 18px;
      border-radius: 50%;
      background: #ecfdf3;
      color: #25d366;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 38px;
  }

  .whatsapp-reminder-content h2 {
      font-size: 22px;
      font-weight: 700;
      color: var(--color-secondary);
      line-height: 1.3;
      margin: 0 0 14px 0;
  }

  .whatsapp-reminder-content p {
      font-size: 15px;
      line-height: 1.6;
      color: var(--color-parrafo);
      margin: 0 0 12px 0;
  }

  .whatsapp-reminder-content p:last-of-type {
      background: #fff8e6;
      border: 1px solid #f5d78e;
      border-radius: 10px;
      padding: 12px 14px;
      color: #664d03;
      margin-bottom: 22px;
  }

  .whatsapp-reminder-actions {
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
  }

  .whatsapp-reminder-cancel {
      background: #fff;
      color: var(--color-secondary);
      border: 1px solid #d9d9d9;
      padding: 12px 22px;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
  }

  .whatsapp-reminder-cancel:hover {
      background: #f5f5f5;
  }

  .whatsapp-reminder-content .btn-primary {
      background: var(--color-success);
      color: #fff;
      border: none;
      padding: 12px 22px;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
  }

  .whatsapp-reminder-content .btn-primary:hover {
      background: color-mix(in srgb, var(--color-success), black 10%);
      transform: translateY(-1px);
  }

  /* ==============================================
    ANIMACIONES
    ============================================== */

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

  @keyframes bounceIn {
      0% {
          transform: scale(0.8);
          opacity: 0;
      }
      50% {
          transform: scale(1.05);
      }
      100% {
          transform: scale(1);
          opacity: 1;
      }
  }

  @keyframes scaleIn {
      from {
          transform: scale(0);
          opacity: 0;
      }
      to {
          transform: scale(1);
          opacity: 1;
      }
  }

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

  /* ==============================================
    MEJORA EN EL ENLACE DE TÉRMINOS
    ============================================== */

  .terminos a {
      color: var(--color-primary, #940000);
      text-decoration: underline;
      cursor: pointer;
      transition: color 0.3s ease;
  }

  .terminos a:hover {
      color: var(--color-secondary, #000000);
  }

  /* ==============================================
    RESPONSIVE - NOTIFICACIONES Y MODAL
    ============================================== */

  @media (max-width: 768px) {
      .terms-modal-content {
          max-width: 95%;
          max-height: 90vh;
      }
      
      .terms-modal-header h2 {
          font-size: 17px;
      }

      .terms-modal-body h3 {
        font-size: 15px;
    }
      
      .terms-modal-body {
          padding: 20px;
      }

      .terms-modal-body p {
        font-size: 13px;
        line-height: 1.6;
      }
      
      .success-notification-content {
          max-width: 95%;
          padding: 30px 20px;
      }
      
      .success-icon {
          font-size: 60px;
      }
      
      .success-notification-content h2 {
          font-size: 20px;
      }
      
      .success-notification-content .order-number strong {
          font-size: 16px;
      }

      .whatsapp-reminder-content {
          max-width: 95%;
          padding: 28px 18px 20px;
      }

      .whatsapp-reminder-content h2 {
          font-size: 19px;
      }

      .whatsapp-reminder-content p {
          font-size: 14px;
      }

      .whatsapp-reminder-actions {
          flex-direction: column-reverse;
      }

      .whatsapp-reminder-cancel,
      .whatsapp-reminder-content .btn-primary {
          width: 100%;
      }

      .terms-modal-footer .btn-primary {
        font-size: 14px;
      }
  }

  /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    CAMPO DE PAGO EN EFECTIVO
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

  #cash-payment-field,
  #cash-custom-amount-field {
      padding: 15px;
      border-radius: 8px;
  }

  #cash-payment-field {
      background: #f8f9fa;
      border: 1px solid #e0e0e0;
  }

  #cash-custom-amount-field {
      background: #f0f4ff;
      border: 1px solid #d0d9f0;
      margin-top: 0;
  }

  #cash-payment-field label,
  #cash-custom-amount-field label {
      font-weight: 600;
      color: #2c3e50;
      margin-bottom: 8px;
      display: block;
  }

  #cash-payment-amount,
  #cash-custom-amount {
      width: 100%;
      padding: 12px;
      border: 2px solid #e0e0e0;
      border-radius: 6px;
      font-family: 'Courier New', monospace;
      transition: all 0.2s ease;
      background: #fff;
  }

  #cash-payment-amount { font-size: 14px; }
  #cash-custom-amount  { font-size: 16px; }

  #cash-payment-amount:hover,
  #cash-custom-amount:hover {
      border-color: #bbb;
  }

  #cash-payment-amount:focus,
  #cash-custom-amount:focus {
      outline: none;
      border-color: var(--color-primary, #940000);
      box-shadow: 0 0 0 3px rgba(148, 0, 0, 0.1);
  }

  #cash-custom-amount-field small {
      display: block;
      margin-top: 10px;
      padding: 10px 12px;
      background: #fff;
      border-radius: 6px;
      border-left: 3px solid #2196F3;
      color: #555;
      font-size: 13px;
      line-height: 1.5;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }

  #cash-custom-amount-field small i {
      color: #2196F3;
      margin-right: 6px;
      font-size: 14px;
  }

  #cash-change-display {
      margin-top: 12px;
      animation: fadeIn 0.3s ease;
  }

  .change-info {
      border-radius: 8px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
  }

  .change-info i {
      font-size: 22px;
      line-height: 1.3;
      padding: 0;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .change-info span {
      font-size: 14px;
      flex: 1;
  }

  .change-info strong {
      font-size: 16px;
      font-weight: 700;
      font-family: 'Courier New', monospace;
  }

  .change-info:not(.error) {
      background: color-mix(in srgb, var(--color-success) 15%, white);
      border: 2px solid var(--color-success);
      border-left: 5px solid var(--color-success);
      box-shadow: 0 2px 6px rgba(from var(--color-success) r g b / 0.15);
  }
  .change-info:not(.error) i,
  .change-info:not(.error) strong { color: var(--color-success); }
  .change-info:not(.error) span { color: color-mix(in srgb, var(--color-success) 60%, black); }

  .change-info.error {
      background: color-mix(in srgb, var(--color-danger) 15%, white);
      border: 2px solid var(--color-danger);
      border-left: 5px solid var(--color-danger);
      box-shadow: 0 2px 6px rgba(from var(--color-danger) r g b / 0.15);
  }

  .change-info.error i,
  .change-info.error strong { color: var(--color-danger); }
  .change-info.error span { color: color-mix(in srgb, var(--color-danger) 60%, black); }

  @keyframes slideDown {
      from { opacity: 0; max-height: 0; margin-top: 0; padding: 0 15px; }
      to   { opacity: 1; max-height: 200px; margin-top: 15px; padding: 15px; }
  }

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

  @media (max-width: 480px) {
      #cash-payment-field,
      #cash-custom-amount-field {
          padding: 12px;
          margin-top: 12px;
      }

      #cash-custom-amount,
      #cash-payment-amount {
          font-size: 16px;
          padding: 10px;
      }

      .change-info {
          padding: 12px 14px;
          gap: 10px;
      }

      .change-info span { font-size: 13px; }
      .change-info strong { font-size: 16px; }

      #cash-custom-amount-field small {
          padding: 8px 10px;
          font-size: 12px;
      }
  }