/* wa-cta.css — Floating WhatsApp CTA & Hero WhatsApp CTA
   Números de teléfono codificados en base64; nunca expuestos en markup ni fuente JS.
   ─────────────────────────────────────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════════
   BOTÓN FLOTANTE  ·  Fijo en pantalla, siempre visible
   ═══════════════════════════════════════════════════════════════ */

.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.05rem 0.6rem 0.8rem;

  /* Cristal oscuro — coherente con la paleta del sitio */
  background: rgba(8, 8, 8, 0.82);
  border: 1px solid rgba(205, 181, 115, 0.2);
  border-radius: 100px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);

  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.28s ease,
    background   0.28s ease,
    transform    0.22s ease,
    box-shadow   0.28s ease;

  /* Aparece con suavidad al cargar */
  animation: wa-float-fadein 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.4s both;
}

.wa-float:hover,
.wa-float:focus-visible {
  border-color: rgba(205, 181, 115, 0.75);
  background: rgba(16, 16, 16, 0.96);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6);
  outline: none;
}

.wa-float:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Ícono ── */
.wa-float__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-float__icon svg {
  width: 17px;
  height: 17px;
  /* Latido suave: sutil, no intrusivo */
  animation: wa-icon-pulse 4s ease-in-out 2.2s infinite;
}

/* ── Texto ── */
.wa-float__label {
  font-family: var(--font1);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-grey);
  white-space: nowrap;
  transition: color 0.28s ease;
}

.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label {
  color: var(--accent);
}


/* ═══════════════════════════════════════════════════════════════
   HERO CTA  ·  Debajo del hero en el home
   ═══════════════════════════════════════════════════════════════ */

.hero-wa-cta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.8rem 1rem 1rem;
}

.hero-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 2rem 0.72rem 1.6rem;

  background: transparent;
  border: 1px solid rgba(205, 181, 115, 0.35);
  border-radius: var(--radius-ui);

  font-family: var(--font1);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-grey);
  text-decoration: none;
  cursor: pointer;

  transition:
    border-color 0.28s ease,
    color        0.28s ease,
    background   0.28s ease,
    transform    0.2s ease;

  animation: wa-hero-fadein 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.hero-wa-cta:hover,
.hero-wa-cta:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(205, 181, 115, 0.06);
  transform: translateY(-1px);
  outline: none;
}

.hero-wa-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Ícono dentro del hero CTA ── */
.hero-wa-cta__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.hero-wa-cta__icon svg {
  width: 15px;
  height: 15px;
}

.hero-wa-cta:hover .hero-wa-cta__icon {
  transform: scale(1.12);
}


/* ═══════════════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════════════ */

@keyframes wa-float-fadein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes wa-hero-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

@keyframes wa-icon-pulse {
  0%,  100% { transform: scale(1);    opacity: 1;    }
  50%        { transform: scale(1.18); opacity: 0.85; }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   BURGER MENU CTA  ·  Último ítem del menú móvil
   ═══════════════════════════════════════════════════════════════ */

.wa-burger-cta {
  margin-top: auto;
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 0 !important;
  border-top: 1px solid rgba(205, 181, 115, 0.2) !important;
  border-bottom: none !important;
  color: var(--accent) !important;
  text-decoration: none;
  font-family: var(--font1);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 0.22s ease;
}

.wa-burger-cta:hover,
.wa-burger-cta:focus-visible {
  opacity: 0.75;
  outline: none;
}

.wa-burger-cta__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wa-burger-cta__icon svg {
  width: 18px;
  height: 18px;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .wa-float {
    bottom: 1.4rem;
    right: 1.2rem;
    padding: 0.55rem 0.9rem 0.55rem 0.7rem;
  }

  .wa-float__icon svg {
    width: 16px;
    height: 16px;
  }

  .wa-float__label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero-wa-cta-wrap {
    padding-top: 2.2rem;
  }

  .hero-wa-cta {
    font-size: 0.82rem;
    padding: 0.65rem 1.5rem 0.65rem 1.2rem;
    letter-spacing: 0.16em;
  }
}

/* Pantallas landscape muy cortas (móvil horizontal) */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .wa-float {
    bottom: 0.75rem;
    right: 0.75rem;
  }
}
