/* ═══════════════════════════════════════════════════════════
   🛒 ESTILOS DEL CARRITO DE COMPRAS
   ═══════════════════════════════════════════════════════════ */

:root {
  --accent: #00D4FF;
  --accent-light: #E0F7FF;
  --accent2: #FF6B35;
  --text: #1a1a1a;
  --text-muted: #707070;
  --muted: #a0a0a0;
  --green: #00E676;
  --red: #FF4444;
  --wsp: #25D366;
  --surface: #ffffff;
  --panel: #f8f9fa;
  --border: rgba(0, 0, 0, 0.06);
  --bg: #ffffff;
}

/* ───────────────────────────────────────────────────────────
   BOTÓN FLOTANTE DEL CARRITO
   ─────────────────────────────────────────────────────────── */

.cart-float {
  position: fixed;
  bottom: 7.5rem;
  right: 2rem;
  z-index: 85;
  background: linear-gradient(135deg, var(--accent), #0099BB);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.45);
  transition: transform 0.2s;
  animation: pulse-cart 3s ease infinite;
}

.cart-float:hover {
  transform: scale(1.1);
}

.cart-float-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent2);
  color: #fff;
  font-size: 0.68rem;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  min-width: 24px;
}

@keyframes pulse-cart {

  0%,
  100% {
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.45);
  }

  50% {
    box-shadow: 0 8px 48px rgba(0, 212, 255, 0.7), 0 0 0 10px rgba(0, 212, 255, 0.1);
  }
}

/* Inyección de botón en navbar si es necesario */
.site-header .cart-btn {
  margin-left: auto;
  margin-right: 1rem;
}

/* ───────────────────────────────────────────────────────────
   MODAL OVERLAY
   ─────────────────────────────────────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.overlay.open {
  display: flex;
}

/* ───────────────────────────────────────────────────────────
   CARRITO MODAL
   ─────────────────────────────────────────────────────────── */

.cart-modal {
  background: var(--surface);
  border: none;
  border-radius: 32px;
  width: 100%;
  max-width: 540px;
  max-height: 77vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  color: var(--text);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modal-close-btn:hover {
  color: var(--text);
  transform: scale(1.1);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.cart-h {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  letter-spacing: 0.02em;
}

.cart-h span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ───────────────────────────────────────────────────────────
   ITEMS DEL CARRITO
   ─────────────────────────────────────────────────────────── */

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.citem {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--panel);
  border-radius: 16px;
  padding: 1.2rem;
  position: relative;
}

.citem-icon {
  font-size: 1.8rem;
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}

.citem-info {
  flex: 1;
  min-width: 0;
}

.citem-name {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.citem-price {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  margin-top: 0.1rem;
  font-weight: 700;
}

.citem-controls {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0.8rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  width: fit-content;
  overflow: hidden;
}

.citem-controls button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  transition: background 0.2s;
}

.citem-controls button:hover {
  background: var(--accent-light);
  transform: none;
}

.citem-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  min-width: 2rem;
  text-align: center;
}

.citem-rm {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.4rem;
  transition: color 0.2s;
}

.citem-rm:hover {
  color: var(--red);
  background: none;
  border: none;
}

/* ───────────────────────────────────────────────────────────
   TOTAL Y OPCIONES DE PAGO
   ─────────────────────────────────────────────────────────── */

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  margin-top: 1rem;
}

.cart-total-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.cart-total-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--text);
}

.cart-total-val small {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: inline;
  margin-left: 0.4rem;
  font-weight: 700;
}

.pay-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.pay-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-payment {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.8rem;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  width: 100%;
}

.payment-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.whatsapp-box {
  background: #e8f9ef;
  color: #25D366;
}

.bank-box {
  background: #e0f2ff;
  color: #0088ff;
}

.deposit-box {
  background: #e0fff3;
  color: #00E676;
}

.cash-box {
  background: #f2e8ff;
  color: #a855f7;
}

.btn-payment:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pay-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
  line-height: 1.5;
  font-style: italic;
}

/* ───────────────────────────────────────────────────────────
   CARRITO VACÍO
   ─────────────────────────────────────────────────────────── */

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-cart-icon {
  font-size: 3.5rem;
  opacity: 0.35;
  margin-bottom: 1rem;
}

.empty-cart p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ───────────────────────────────────────────────────────────
   BOTÓN AGREGAR AL CARRITO (en productos)
   ─────────────────────────────────────────────────────────── */

.btn-add-cart {
  background: linear-gradient(135deg, var(--accent), #0099BB);
  border: none;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-add-cart:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}

/* ───────────────────────────────────────────────────────────
   TOAST NOTIFICACIONES
   ─────────────────────────────────────────────────────────── */

#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--green);
  color: #000;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 99px;
  z-index: 999;
  font-size: 0.88rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 230, 118, 0.35);
}

#toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ───────────────────────────────────────────────────────────
   BOTÓN FLOTANTE WHATSAPP
   ─────────────────────────────────────────────────────────── */

.wsp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  background: var(--wsp);
  border: none;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
  animation: pulse-wsp 3s ease infinite;
}

.wsp-float:hover {
  transform: scale(1.1);
}

@keyframes pulse-wsp {

  0%,
  100% {
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
  }

  50% {
    box-shadow: 0 8px 48px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
}

/* ───────────────────────────────────────────────────────────
   FORMULARIO DE CHECKOUT
   ─────────────────────────────────────────────────────────── */

.checkout-form label {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.checkout-form input {
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.checkout-form input:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-light);
  background: #fff !important;
}

.btn-wsp-pay {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 1.1rem;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  width: 100%;
  box-shadow: 0 10px 20px -5px rgba(0, 212, 255, 0.3);
}

.btn-wsp-pay:hover {
  background: #00b8e6;
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(0, 212, 255, 0.4);
}

.btn-wsp-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ───────────────────────────────────────────────────────────
   CHOICE MODAL (WhatsApp Logic)
   ─────────────────────────────────────────────────────────── */

.choice-modal {
  max-width: 440px;
  padding: 3rem 2rem;
  border-radius: 32px;
}

.product-cta-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.product-cta-outline:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cart-modal {
    max-width: 90%;
    padding: 1.5rem;
  }

  .cart-h {
    font-size: 1.4rem;
  }

  .wsp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
  }

  .btn-add-cart {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}
/* 
   INSTRUCCIONES DE PAGO (Post-Checkout)
    */

#checkout-instructions {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.payment-success-header {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.payment-success-header h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.payment-success-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bank-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bank-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  position: relative;
  transition: transform 0.2s;
}

.bank-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.bank-card.guayaquil {
  border-left: 4px solid #cc0000;
}

.bank-card:not(.guayaquil) {
  border-left: 4px solid #ffdd00;
}

.bank-name {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.bank-detail {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.bank-detail span {
  color: var(--text-muted);
  font-weight: 600;
  width: 70px;
  display: inline-block;
}

.proof-actions {
  background: var(--accent-light);
  padding: 1.5rem;
  border-radius: 20px;
  text-align: center;
}

.proof-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.proof-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-proof {
  padding: 0.8rem;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-proof.wsp {
  background: var(--wsp);
  color: #fff;
}

.btn-proof.email {
  background: var(--text);
  color: #fff;
}

.btn-proof:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* UBICACIN INSTRUCTIONS */
.location-instruction-card {
  background: var(--panel);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.loc-inst-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.loc-inst-item i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.loc-inst-item strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.loc-inst-item div {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

/* -
   BOTONES DE FINALIZACIN
   - */

.checkout-footer-actions {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}

.btn-finish-order {
  background: var(--text);
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-finish-order:hover {
  background: #333;
  transform: translateY(-2px);
}

.btn-finish-order-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-finish-order-outline:hover {
  background: var(--panel);
  color: var(--text);
  border-color: var(--muted);
}
