
/* ===================================================
   WIDGET FLOTANTE DE WHATSAPP - Solo HTML y CSS
   =================================================== */
 
 
/* ------------------------------------------ */
/* Checkbox oculto que controla el estado abierto/cerrado */
/* ------------------------------------------ */
#wa-toggle {
  display: none;
}
 
/* ------------------------------------------ */
/* Contenedor flotante fijo en la esquina */
/* ------------------------------------------ */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
 
.wa-widget * {
  box-sizing: border-box;
}
 
/* ------------------------------------------ */
/* PANEL: "Start a Conversation" (oculto por defecto) */
/* ------------------------------------------ */
.wa-panel {
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
 
  /* Estado cerrado por defecto */
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  max-height: 0;
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease;
}
 
/* Header verde del panel */
.wa-panel-header {
  background: #00aa6c !important;
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
 
.wa-panel-header svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: #fff;
}
 
.wa-panel-header-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}
 
.wa-panel-header-text span {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.3;
  display: block;
}
 
/* Cuerpo del panel */
.wa-panel-body {
  padding: 14px 16px 18px;
}
 
.wa-panel-note {
  font-size: 12px;
  color: #9a9a9a;
  margin: 0 0 12px;
}
 
.wa-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e6e6e6;
  border-left: 3px solid #00aa6c;
  border-radius: 6px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
 
.wa-contact:last-child {
  margin-bottom: 0;
}
 
.wa-contact:hover {
  background: #f5fdf7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
 
.wa-contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #263a49;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
 
.wa-contact-text {
  flex: 1;
  min-width: 0;
}
 
.wa-contact-text strong {
  display: block;
  font-size: 14px;
  color: #0b1f16;
}
 
.wa-contact-text span {
  display: block;
  font-size: 12.5px;
  color: #888;
}
 
.wa-contact-icon {
  width: 22px;
  height: 22px;
  color: #00aa6c;
  flex-shrink: 0;
}
 
/* ------------------------------------------ */
/* BOTÓN FLOTANTE PRINCIPAL con pulso */
/* ------------------------------------------ */
.wa-fab-wrapper {
  position: relative;
  width: 60px;
  height: 110px;
}
 
.wa-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #00aa6c !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}
 
.wa-fab:hover {
  background: #1EBE5A;
  transform: scale(1.05);
}
 
.wa-fab svg {
  position: absolute;
  width: 30px;
  height: 30px;
  fill: #fff;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
 
/* Icono de WhatsApp: visible por defecto (checkbox cerrado) */
.wa-icon-whatsapp {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
 
/* Icono de X: oculto por defecto */
.wa-icon-close {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
  width: 22px;
  height: 22px;
}
 
/* Anillos de palpitación (pulso) */
.wa-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366 !important;
  opacity: 0.6;
  z-index: 1;
  animation: wa-pulse 2s ease-out infinite;
}
 
.wa-pulse-ring.delay {
  animation-delay: 1s;
}
 
@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}
 
/* ------------------------------------------ */
/* ESTADOS: controlados por el checkbox #wa-toggle */
/* ------------------------------------------ */
 
/* Cuando está marcado (abierto): mostrar el panel */
#wa-toggle:checked ~ .wa-widget .wa-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  max-height: 500px;
}
 
/* Cuando está marcado: detener el pulso del botón */
#wa-toggle:checked ~ .wa-widget .wa-pulse-ring {
  animation-play-state: paused;
  opacity: 0;
}
 
/* Cuando está abierto: oscurecer el botón y alternar los iconos */
#wa-toggle:checked ~ .wa-widget .wa-fab {
  background: #1EBE5A;
}
 
#wa-toggle:checked ~ .wa-widget .wa-icon-whatsapp {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}
 
#wa-toggle:checked ~ .wa-widget .wa-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
 
/* Responsive */
@media (max-width: 480px) {
  .wa-widget {
    right: 16px;
    bottom: 16px;
  }
  .wa-panel {
    width: 280px;
  }
}

/* Contenedor: necesita position relative para que la imagen
   y el overlay se posicionen detrás del contenido */
.destination-item {
  position: relative;
  overflow: hidden;
  /* Mantén aquí tus estilos previos de la tarjeta: border-radius, padding, min-height, etc. */
}

/* La imagen ocupa todo el espacio del contenedor, igual que un background-image */
.destination-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* recorta y cubre el espacio, igual que background-size: cover */
  object-position: center; /* igual que background-position: center */
  z-index: 0;
}

/* Overlay oscuro para que el texto blanco siga siendo legible sobre cualquier imagen */
.destination-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

/* El contenido (texto, botón, etc.) va siempre por encima de la imagen y el overlay */
.destination-content {
  position: relative;
  z-index: 2;
}


/* .package-item .package-image ya tenía background-size/position/repeat,
   ya no se necesitan (puedes dejarlas, no estorban) — solo agrega esto: */
.package-item .package-image {
  position: relative;
  overflow: hidden;
  min-height: 220px; /* alto de respaldo por si el grid no da suficiente alto, ajústalo si hace falta */
}

.package-item .package-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}



/* .offer-item ya tenía position:relative, flex, min-height:520px, etc.
   No lo borres, solo agrega overflow:hidden si no lo tiene: */
.offer-item {
  overflow: hidden;
}

/* La imagen ocupa todo el espacio, igual que hacía el background-image */
.offer-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

/* El badge y el contenido deben ir por encima de la imagen */
.offer-item .offer-content {
  position: relative;
  z-index: 1;
}
.info-phone-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #3f83d7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-phone-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}