/* ======================================================
   ESTILOS COMPARTIDOS DEL CARRITO — Dunas & Olas
   Usado en experiences.html y fleet.html para que el
   carrito luzca y funcione igual en ambas páginas.
   ====================================================== */

/* Botón del carrito anclado en el navbar (esquina superior derecha) */
.nav-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #a855f7;
  cursor: pointer;
  font-size: 20px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-cart-btn:hover {
  color: #c084fc;
  transform: translateY(-1px);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #c9a227;
  color: #1f1308;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #1f2430;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.55);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 420px;
  background: #fff;
  z-index: 1101;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
}
.cart-drawer.active {
  transform: translateX(0);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}
.cart-line {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eee;
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #d8d2e0;
  background: #f6f2fb;
  color: #5b3a82;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.cart-qty-btn:hover {
  background: #ece4f5;
}

.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.6);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.checkout-modal-overlay.active {
  display: flex;
}
.checkout-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 2rem;
}
.checkout-modal input,
.checkout-modal textarea,
.checkout-modal select {
  width: 100%;
  border: 1.5px solid #e2dcea;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.checkout-modal input:focus,
.checkout-modal textarea:focus,
.checkout-modal select:focus {
  outline: none;
  border-color: #5b3a82;
  box-shadow: 0 0 0 3px rgba(91, 58, 130, 0.14);
}
.checkout-modal label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b4456;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.3rem;
}

.add-to-cart-btn {
  background: #fff;
  color: #5b3a82;
  border: 2px solid #5b3a82;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  white-space: nowrap;
}
.add-to-cart-btn:hover {
  background: #5b3a82;
  color: #fff;
}
.add-to-cart-btn.added {
  background: #1d8a4d;
  border-color: #1d8a4d;
  color: #fff;
}

.price-tag {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}
.price-tag .price-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7f95;
}
.price-tag .price-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #3f2761;
  white-space: nowrap;
}

/* Botón para cambiar la moneda de pago, junto al total del carrito/checkout */
.currency-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #f8f6fb;
  border: 1px solid #e5dff0;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5b3a82;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.currency-switch-btn:hover {
  background: #ece4f5;
  border-color: #c9a227;
}
.currency-switch-value {
  letter-spacing: 0.02em;
}

/* Botón estilo WhatsApp para agregar botes al carrito */
/* Botón sólido morado: "Agregar al Carrito" en las tarjetas de botes */
.add-to-cart-btn-solid {
  background: #5b3a82;
  color: #fff;
  border: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  text-align: center;
}
.add-to-cart-btn-solid:hover {
  background: #3f2761;
}
.add-to-cart-btn-solid.added {
  background: #1d8a4d;
}

/* Botón verde de WhatsApp para pedir más información sobre un bote/servicio puntual */
.whatsapp-info-btn {
  background: #25d366;
  color: #fff;
  border: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  white-space: nowrap;
}
.whatsapp-info-btn:hover {
  background: #1ebd5a;
}

/* Botones de adicionales (comida, quesos, picadas) en las tarjetas de botes */
.addon-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  background: #f8f6fb;
  border: 1px solid #e5dff0;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  color: #3f2761;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.addon-btn:hover {
  background: #ece4f5;
  border-color: #c9a227;
}
.addon-btn.added {
  background: #1d8a4d;
  border-color: #1d8a4d;
  color: #fff;
}

/* Selector de bote dentro de las tarjetas de experiencias */
.boat-pick-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #f8f6fb;
  border: 1px solid #e5dff0;
  border-radius: 10px;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  font-size: 0.78rem;
  color: #3f2761;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.boat-pick-btn:hover {
  background: #ece4f5;
  border-color: #c9a227;
}
.boat-pick-btn .boat-pick-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.boat-pick-btn .boat-pick-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.boat-pick-btn .boat-pick-name {
  font-weight: 700;
}
.boat-pick-btn .boat-pick-cap {
  font-weight: 400;
  color: #8a7f95;
  font-size: 0.72rem;
}
.boat-pick-btn .boat-pick-cap i {
  margin-right: 0.2rem;
}
.boat-pick-btn .boat-pick-info {
  color: #5b3a82;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 0.25rem;
}

/* Resalta la tarjeta del bote en fleet.html al llegar desde "Más información" */
[id^="bote-"] {
  scroll-margin-top: 90px;
}
.boat-highlight {
  animation: boat-highlight-pulse 1.8s ease-out 2;
}
@keyframes boat-highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.65);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(201, 162, 39, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0);
  }
}

/* Tap targets más grandes en móvil (mínimo recomendado ~44px) */
@media (max-width: 480px) {
  .cart-qty-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
  .add-to-cart-btn,
  .add-to-cart-btn-solid,
  .whatsapp-info-btn,
  .addon-btn,
  .boat-pick-btn {
    min-height: 44px;
  }
}
