/* ============================= */
/* VARIABLES DE COLOR */
/* ============================= */
:root {
  --verde-oscuro: #2D4A2D;
  --verde-medio: #3D6B3D;
  --verde-lima: #C8E63C;
  --blanco: #FFFFFF;
  --gris-oscuro: #2C2C2C;
  --gris-medio: #6B7280;
  --gris-claro: #F5F5F5;
  --gris-borde: #E2E8E2;
  --sombra: 0 8px 40px rgba(45, 74, 45, 0.15);
  --sombra-hover: 0 16px 60px rgba(45, 74, 45, 0.25);
}

/* ============================= */
/* HERO */
/* ============================= */
.hero-context {
  text-align: center;
  margin-bottom: 32px;
}

.hero-context .overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--verde-lima);
  margin-bottom: 12px;
  display: block;
}

.hero-context h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-context h1 em {
  color: var(--verde-lima);
  font-style: italic;
}

/* ============================= */
/* CONTENEDOR */
/* ============================= */
.widget-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: block !important;
}

/* ============================= */
/* WIDGET PRINCIPAL (FIX) */
/* ============================= */
.booking-widget {
  background: var(--blanco);
  border-radius: 20px;
  box-shadow: var(--sombra);
  padding: 14px;                 /* antes 10px */
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto; /* FIX: antes eran 5 columnas */
  gap: 0;                        /* FIX: separadores se manejan con ::after */
  align-items: stretch;
  transition: box-shadow 0.3s ease;
}

.booking-widget:hover {
  box-shadow: var(--sombra-hover);
}

/* ============================= */
/* CAMPOS (FIX: altura + alineación) */
/* ============================= */
.field {
  position: relative;
  padding: 14px 18px;
  border-radius: 12px;
  transition: background 0.2s ease;
  border: 2px solid transparent;

  display: flex;                 /* FIX */
  flex-direction: column;        /* FIX */
  justify-content: center;       /* FIX */
  min-height: 92px;              /* FIX: estabiliza altura */
}

.field:hover {
  background: var(--gris-claro);
}

.field.active {
  background: var(--gris-claro);
  border-color: var(--verde-oscuro);
}

.field-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--verde-oscuro);
  margin-bottom: 6px;
}

.field select,
.field input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--gris-oscuro);
  outline: none;
  appearance: none;
}

/* ============================= */
/* SEPARADORES VERTICALES (FIX: sin dividers en HTML) */
/* ============================= */
.booking-widget .field::after{
  content:"";
  position:absolute;
  top: 14px;
  bottom: 14px;
  right: 0;
  width: 1px;
  background: var(--gris-borde);
}

/* No mostrar línea en el último campo antes del botón
   (si tienes 3 .field, esto funciona perfecto) */
.booking-widget .field:last-of-type::after{
  display:none;
}

/* (Opcional) Si por alguna razón el botón cuenta como "last-of-type"
   y te queda una línea extra, usa esta alternativa:
.booking-widget .field:nth-of-type(3)::after{ display:none; }
*/

/* ============================= */
/* DIVIDER (por si existe en alguna parte, lo desactivamos) */
/* ============================= */
.divider {
  display: none !important;
}

/* ============================= */
/* BOTÓN RESERVAR */
/* ============================= */
.btn-reservar {
  background: var(--verde-oscuro);
  color: var(--blanco);
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-reservar:hover {
  background: var(--verde-medio);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(45, 74, 45, 0.4);
}

/* ============================= */
/* PASAJEROS */
/* ============================= */
.personas-display {
  font-size: 15px;
  font-weight: 500;
  color: var(--gris-oscuro);
}

/* FIX placeholder */
.personas-display.placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

#fieldPersonas {
  z-index: 30;
  pointer-events: auto;
}

.dropdown-panel {
  position: absolute;
  top: auto;
bottom: calc(100% + 8px);
  left: 0;
  transform: none;
  width: 280px;
  max-width: calc(100vw - 24px);
  background: var(--blanco);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  padding: 20px;
  z-index: 9999 !important;
  display: none;
}

.dropdown-panel.show {
  display: block;
}

.counter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.counter-value {
  font-size: 18px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}

.counter-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #D1D5DB;
  background: #F9FAFB;
  font-size: 18px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.counter-btn:hover:not(:disabled) {
  border-color: var(--verde-oscuro);
  background: #eef7ee;
  color: var(--verde-oscuro);
}

.counter-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.counter-btn::before,
.counter-btn::after {
  display: none !important;
}

/* ============================= */
/* RESPONSIVE (FIX: quitar separadores) */
/* ============================= */
@media (max-width: 900px) {
  .booking-widget {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .booking-widget .field::after {
    display: none;
  }

  .btn-reservar {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .booking-widget {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/* SVG FIX */
/* ============================= */
.booking-widget svg,
.widget-wrapper svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-block !important;
  vertical-align: middle;
}

.booking-widget .field-label svg {
  width: 13px !important;
  height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
}

.btn-reservar svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}

/* ============================= */
/* INFO TAGS */
/* ============================= */
.widget-info {
  width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.info-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  font-weight: 400;
}

.info-tag svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  color: var(--verde-lima);
}

/* ============================= */
/* TOAST */
/* ============================= */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--verde-oscuro);
  color: var(--blanco);
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.toast-icon {
  width: 20px;
  height: 20px;
  background: var(--verde-lima);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 12px !important;
  height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
}
/* 1) Asegura que el widget permita overlays */
.widget-wrapper,
.booking-widget{
  position: relative;
  overflow: visible !important;
}

/* 2) Eleva el campo "Pasajeros" por sobre el resto */
#fieldPersonas{
  position: relative;
  z-index: 99999 !important;
}

/* 3) Eleva el panel desplegable y permite clicks */
#personasPanel,
.dropdown-panel{
  position: absolute;
  z-index: 100000 !important;
  pointer-events: auto !important;
}

/* 4) Por si algún pseudo-elemento está tapando (tema/section) */
.booking-widget *{
  pointer-events: auto;
}
/* Mata cualquier capa/pseudo-elemento que esté tapando el widget */
.widget-wrapper::before,
.widget-wrapper::after,
.booking-widget::before,
.booking-widget::after{
  pointer-events: none !important;
}
/* ===== FIX B – Forzar dropdown por encima y permitir clicks ===== */

.dropdown-panel{
  z-index: 999999 !important;
  pointer-events: auto !important;
}

.dropdown-panel *{
  pointer-events: auto !important;
}

.btn-reservar{
  position: relative;
  z-index: 1;
}
/* ===== BLINDAJE ANTI-CAPA INVISIBLE ===== */

/* Crea un “mundo” propio para el widget (stacking context) */
.widget-wrapper{
  position: relative !important;
  z-index: 2147483647 !important; /* máximo práctico */
  isolation: isolate !important;
}

/* Asegura que el dropdown está por sobre TODO */
#personasPanel,
.dropdown-panel{
  position: absolute !important;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

/* Importantísimo: pseudo-elementos pueden tapar (y tu * no los afecta) */
.widget-wrapper::before,
.widget-wrapper::after,
.booking-widget::before,
.booking-widget::after{
  pointer-events: none !important;
}

/* Si existe nuestra barra, ocultar el add-to-cart nativo */
.single-product .srb-booking-bar ~ form.cart,
.single-product form.cart {
  /* no tocamos acá aún */
}

.single-product .srb-booking-bar + form.cart,
.single-product .srb-booking-bar ~ .cart {
  display: none !important;
}

/* SRB - WhatsApp flotante circular (costado) */
.srb-wa-float{
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 99999 !important;

  width: 62px !important;
  height: 62px !important;
  border-radius: 999px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.18) !important;
  text-decoration: none !important;
}

/* Si el botón trae texto, lo escondemos para que quede solo el ícono */
.srb-wa-float span{
  display: none !important;
}

/* Tamaño del ícono si es SVG o imagen */
.srb-wa-float svg,
.srb-wa-float img{
  width: 28px !important;
  height: 28px !important;
}

/* En móvil lo bajamos a la esquina (mejor UX) */
@media (max-width: 768px){
  .srb-wa-float{
    top: auto !important;
    bottom: 16px !important;
    transform: none !important;
    right: 16px !important;
  }
}
/* Ocultar botón "Reserva Ahora" en carrito y checkout */
body.woocommerce-cart .header-button,
body.woocommerce-checkout .header-button {
    display: none !important;
}
/* Carrito y Checkout: header minimal (solo logo) */
body.woocommerce-cart #site-header,
body.woocommerce-checkout #site-header{
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* ================================
   CONTENEDOR + PADDING (no pegado a bordes)
   Carrito y Checkout
================================ */
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main{
  max-width: 1200px !important;   /* ancho cómodo tipo ecommerce */
  margin: 0 auto !important;      /* centrado */
  padding-left: 24px !important;  /* aire a los lados */
  padding-right: 24px !important;
}

/* Extra: evita que el form se vaya a ancho infinito */
body.woocommerce-checkout form.checkout,
body.woocommerce-cart .woocommerce-cart-form{
  width: 100% !important;
}

/* Asegurar que el logo no se deforme */
body.woocommerce-cart #masthead .site-header-item-logo,
body.woocommerce-checkout #masthead .site-header-item-logo{
  display: flex !important;
  align-items: center !important;
}

/* Carrito + Checkout: separar contenido del top */
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main{
  padding-top: 32px !important;  /* prueba 32px; si quieres más, 48px */
}
/* ===== Carrito + Checkout: mostrar logo, ocultar menú y botón ===== */

/* Oculta navegación */
body.woocommerce-cart #masthead .primary-navigation,
body.woocommerce-checkout #masthead .primary-navigation,
body.woocommerce-cart #masthead .site-navigation,
body.woocommerce-checkout #masthead .site-navigation{
  display: none !important;
}

/* Oculta botón */
body.woocommerce-cart #masthead .header-button,
body.woocommerce-checkout #masthead .header-button{
  display: none !important;
}

/* Asegura que el logo siga visible */
body.woocommerce-cart #masthead .site-branding,
body.woocommerce-checkout #masthead .site-branding{
  display: block !important;
}

/* Carrito + Checkout: baja el contenido para que no choque con el header */
body.woocommerce-cart #inner-wrap,
body.woocommerce-checkout #inner-wrap{
  padding-top: 90px !important; /* si queda mucho, baja a 70px */
}
body.woocommerce-cart #masthead .custom-logo,
body.woocommerce-checkout #masthead .custom-logo{
  max-height: 120px !important;
  width: auto !important;
}