/* ============================================================
   BOTONES v2  ·  sistema de CTA para lechonerías (móvil primero)
   Se carga DESPUÉS de bootstrap.css y style.css.
   Relieve 3D: el del banner flota, los demás se hunden al tocar.
   ============================================================ */

:root {
  --wa-verde: #25D366;
  --wa-verde-oscuro: #128C7E;
  --wa-base: #0B6B45;          /* el "canto" del botón verde */
  --tel-azul: #0088cc;
  --tel-azul-oscuro: #006699;
  --tel-base: #044E75;         /* el "canto" del botón azul */
}

/* ---------- Base común de los CTA ---------- */
.btn-wa,
.btn-tel,
a.bubbly-button {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;                 /* área táctil cómoda */
  padding: 14px 28px !important;
  font-family: 'Barlow Semi Condensed', 'Segoe UI', Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.15;
  letter-spacing: .3px !important;
  text-align: center;
  text-decoration: none !important;
  border: none;
  border-radius: 50px !important;   /* pastilla: se lee mejor en móvil */
  color: #fff !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-wa:focus-visible,
.btn-tel:focus-visible,
a.bubbly-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Ícono automático (no hay que tocar el HTML) */
.btn-wa::before,
a.bubbly-button::before {
  content: "\f232";                 /* fa-whatsapp */
  font-family: "Font Awesome 5 Brands", "FontAwesome";
  font-weight: 400;
  font-size: 1.25em;
  line-height: 1;
}
.btn-tel::before {
  content: "\f095";                 /* fa-phone */
  font-family: "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
  font-size: 1.05em;
  line-height: 1;
}
/* Si el HTML ya trae ícono o emoji propio */
.btn-wa--sin-icono::before,
.btn-tel--sin-icono::before { content: none; }

/* ============================================================
   RELIEVE  ·  botones de la página (WhatsApp y Llamar)
   Base gruesa que se hunde al tocarlo, como una tecla real.
   ============================================================ */
.btn-wa {
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.42) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, #2EE87A 0%, #22C55E 55%, #17A34A 100%) !important;
  border-bottom: 6px solid var(--wa-base) !important;
  box-shadow: 0 8px 0 -2px var(--wa-base), 0 14px 22px rgba(0, 0, 0, .35) !important;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .28);
  transition: transform .09s ease, box-shadow .09s ease, border-bottom-width .09s ease;
}
.btn-tel {
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.42) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, #2FA8E0 0%, #0088cc 55%, #0170A8 100%) !important;
  border-bottom: 6px solid var(--tel-base) !important;
  box-shadow: 0 8px 0 -2px var(--tel-base), 0 14px 22px rgba(0, 0, 0, .35) !important;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .28);
  transition: transform .09s ease, box-shadow .09s ease, border-bottom-width .09s ease;
}

/* El canto brillante que da el volumen ya va en el fondo del botón */

.btn-wa:hover, .btn-tel:hover { color: #fff !important; filter: brightness(1.05); }

/* Se hunde al tocarlo */
.btn-wa:active {
  transform: translateY(6px);
  border-bottom-width: 2px !important;
  box-shadow: 0 2px 0 -1px var(--wa-base), 0 6px 12px rgba(0,0,0,.3) !important;
}
.btn-tel:active {
  transform: translateY(6px);
  border-bottom-width: 2px !important;
  box-shadow: 0 2px 0 -1px var(--tel-base), 0 6px 12px rgba(0,0,0,.3) !important;
}

/* ============================================================
   BANNER  ·  el botón del slider: volumen en perspectiva y flota
   ============================================================ */
a.bubbly-button {
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.42) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(160deg, #3BEB86 0%, #25D366 45%, #0F7A6C 100%) !important;
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.5),
    inset 0 -4px 10px rgba(0,0,0,.3),
    0 12px 26px rgba(9, 80, 62, .5) !important;
  text-shadow: 0 2px 3px rgba(0,0,0,.3);
  font-size: 20px !important;
  min-height: 58px;
  padding: 16px 34px !important;
  transform: perspective(600px) rotateX(9deg);
  transform-origin: center bottom;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.bubbly-button:hover { color: #fff !important; filter: brightness(1.06); }

@media (prefers-reduced-motion: no-preference) {
  a.bubbly-button { animation: wa-flota 3.2s ease-in-out infinite; }
}
@keyframes wa-flota {
  0%, 100% { transform: perspective(600px) rotateX(9deg) translateY(0); }
  50%      { transform: perspective(600px) rotateX(9deg) translateY(-7px); }
}
a.bubbly-button:active {
  animation: none;
  transform: perspective(600px) rotateX(2deg) translateY(4px);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.4), 0 4px 10px rgba(9,80,62,.5) !important;
}

/* ============================================================
   EL BRILLO QUE LLAMA LA ATENCIÓN
   Un reflejo que cruza el botón cada pocos segundos. En la
   página de precios los botones van desfasados para que no
   destellen todos a la vez.
   ============================================================ */
/* La franja de luz: una banda blanca inclinada que cruza el botón */
.btn-wa::after,
.btn-tel::after,
a.bubbly-button::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -35%;
  width: 28%;
  height: 220%;
  background: linear-gradient(90deg,
              rgba(255,255,255,0) 0%,
              rgba(255,255,255,.55) 50%,
              rgba(255,255,255,0) 100%);
  transform: rotate(18deg);
  pointer-events: none;
}

@keyframes wa-destello {
  0%, 62%   { left: -35%; }
  84%, 100% { left: 115%; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn-wa::after,
  a.bubbly-button::after { animation: wa-destello 3.4s ease-in-out infinite; }
  .btn-tel::after        { animation: wa-destello 4.1s ease-in-out infinite; }

  /* Desfase en la lista de precios: que no destellen todos a la vez */
  .d-flex:nth-of-type(2n) .btn-wa::after { animation-delay: .9s; }
  .d-flex:nth-of-type(3n) .btn-wa::after { animation-delay: 1.8s; }
  .agileinfo-tab-content1:nth-of-type(2) .btn-wa::after { animation-delay: .45s; }
}

/* ---------- Variantes de tamaño ---------- */
.btn-wa-lg {
  font-size: 21px !important;
  min-height: 60px;
  padding: 17px 38px !important;
}
.btn-block-movil { width: auto; }    /* en escritorio se ajusta al texto */

/* ============================================================
   MÓVIL  (lo importante: dedo grande, pantalla chica)
   ============================================================ */
@media (max-width: 767px) {

  .btn-wa,
  .btn-tel,
  a.bubbly-button {
    min-height: 56px;
    font-size: 18px !important;
    padding: 15px 22px !important;
  }

  /* En tarjetas de producto y CTA sueltos: ancho completo */
  .btn-block-movil,
  .menu-text-right1 .btn-wa,
  .menu-text-right1 .btn-tel {
    display: flex !important;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  /* El del banner no debe comerse la imagen de fondo */
  a.bubbly-button {
    font-size: 18px !important;
    min-height: 56px;
    padding: 15px 26px !important;
    max-width: 92vw;
  }

  .btn-wa-lg {
    display: flex !important;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    font-size: 19px !important;
    padding: 16px 20px !important;
  }
}

@media (max-width: 360px) {
  .btn-wa, .btn-tel, a.bubbly-button {
    font-size: 16.5px !important;
    padding: 14px 16px !important;
  }
}

/* ============================================================
   BOTONES FLOTANTES (WhatsApp derecha / Llamar izquierda)
   ============================================================ */
.whatsapp-float,
.phone-float {
  width: 62px !important;
  height: 62px !important;
  font-size: 30px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.whatsapp-float {
  background: linear-gradient(160deg, #3BEB86 0%, #25D366 45%, #0F7A6C 100%) !important;
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.45),
    inset 0 -4px 8px rgba(0,0,0,.28),
    0 8px 18px rgba(0, 0, 0, .38) !important;
}
.phone-float {
  background: linear-gradient(160deg, #4FB6E8 0%, #0088cc 45%, #045A87 100%) !important;
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.45),
    inset 0 -4px 8px rgba(0,0,0,.28),
    0 8px 18px rgba(0, 0, 0, .38) !important;
}

.whatsapp-float:active,
.phone-float:active { transform: scale(.94); }

/* Halo que pulsa alrededor del flotante de WhatsApp */
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
    animation: wa-halo 2.2s ease-out infinite;
    pointer-events: none;
  }
}
@keyframes wa-halo {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 767px) {
  .whatsapp-float, .phone-float {
    width: 58px !important;
    height: 58px !important;
    font-size: 28px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .whatsapp-float { right: 16px !important; }
  .phone-float   { left: 16px !important; }
}

/* ============================================================
   ARREGLO DEL BANNER
   El contenido del primer slide (título, frase y botón) se
   quedaba invisible porque la transición duraba más que el
   tiempo en pantalla. Este seguro lo deja siempre visible.
   ============================================================ */
#js-main-slider .pogoSlider-slide:first-child .pogoSlider-slide-element {
  opacity: 1 !important;
  visibility: visible !important;
}
