/* ============================================================
   BOTONES · El Chancho Tolimense (móvil primero)
   Estándar de CTA de las lechonerías (ref. El Encanto 28-08-2026),
   adaptado a esta plantilla: Font Awesome 4.7 y style-starter.css.
   Se carga DESPUÉS de style-starter.css.
   ============================================================ */

:root {
  --wa-base: #0B6B45;   /* canto del botón verde */
  --tel-base: #044E75;  /* canto del botón azul  */
}

/* ---------- Base común ---------- */
.btn-wa,
.btn-tel {
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px !important;
  font-family: 'Barlow Semi Condensed', 'Josefin Sans', 'Segoe UI', Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.15;
  letter-spacing: .3px;
  text-align: center;
  text-decoration: none !important;
  border: none !important;
  border-radius: 50px !important;
  color: #fff !important;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .09s ease, box-shadow .09s ease, border-bottom-width .09s ease;
}
.btn-wa:focus-visible,
.btn-tel:focus-visible { outline: 3px solid #fb811e; outline-offset: 3px; }

/* Ícono automático (Font Awesome 4.7) */
.btn-wa::before,
.btn-tel::before {
  font-family: "FontAwesome";
  font-weight: normal;
  line-height: 1;
}
.btn-wa::before  { content: "\f232"; font-size: 1.3em; }   /* fa-whatsapp */
.btn-tel::before { content: "\f095"; font-size: 1.1em; }   /* fa-phone */

/* Relieve sólido: base gruesa que se hunde al tocar */
.btn-wa {
  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, .3) !important;
}
.btn-tel {
  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, .3) !important;
}
.btn-wa:hover, .btn-tel:hover { color: #fff !important; filter: brightness(1.05); }

.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;
}

/* Franja de luz que barre el botón */
.btn-wa::after,
.btn-tel::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%; }
}

/* Botón principal del banner: más grande y flota */
.btn-wa-lg {
  font-size: 21px !important;
  min-height: 60px;
  padding: 17px 38px !important;
}

/* Botón de cada producto del menú */
.btn-pedir {
  margin-top: 14px;
  min-height: 48px;
  padding: 11px 24px !important;
  font-size: 17px !important;
}

@media (prefers-reduced-motion: no-preference) {
  .btn-wa::after  { animation: wa-destello 3.4s ease-in-out infinite; }
  .btn-tel::after { animation: wa-destello 4.1s ease-in-out infinite; }
  /* En el menú: que no destellen todos a la vez */
  .menu-item:nth-of-type(2n) .btn-wa::after { animation-delay: .9s; }
  .menu-item:nth-of-type(3n) .btn-wa::after { animation-delay: 1.8s; }

  .btn-wa-lg { animation: wa-flota 3.2s ease-in-out infinite; }
  .btn-wa-lg:active { animation: none; }
}
@keyframes wa-flota {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Formularios que se envían por WhatsApp */
.signin-form .btn-wa { margin-top: 8px; }

/* ============================================================
   MÓVIL
   ============================================================ */
@media (max-width: 767px) {
  .btn-wa,
  .btn-tel,
  .btn-pedir {
    display: flex !important;
    width: 100%;
    max-width: 420px;
    min-height: 56px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px !important;
    padding: 15px 22px !important;
  }
  .btn-wa-lg { font-size: 19px !important; padding: 16px 20px !important; }
}
@media (max-width: 360px) {
  .btn-wa, .btn-tel { font-size: 16.5px !important; padding: 14px 16px !important; }
}

/* ============================================================
   FLOTANTES v2 · con texto (16-nov-2026)
   Escritorio: dos pastillas con ícono + texto.
   Celular: BARRA FIJA abajo con "Llamar" y "WhatsApp" a lo ancho,
   donde cae el pulgar. WhatsApp ocupa más porque es el que vende.
   ============================================================ */
a.float,
a.float2 {
  position: fixed !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto !important;
  height: 58px !important;
  padding: 0 24px 0 20px !important;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  border-radius: 50px !important;
  color: #fff !important;
  font-family: 'Barlow Semi Condensed', 'Josefin Sans', Arial, sans-serif !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
  z-index: 1000 !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .1s ease, filter .15s ease;
}
a.float {
  right: 22px !important;
  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,.25), 0 8px 18px rgba(0,0,0,.35) !important;
}
a.float2 {
  left: 22px !important;
  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,.25), 0 8px 18px rgba(0,0,0,.35) !important;
}
a.float .my-float  { font-size: 30px !important; margin: 0 !important; line-height: 1; }
a.float2 .my-float { font-size: 24px !important; margin: 0 !important; line-height: 1; }
.float-txt { font-size: 19px; line-height: 1; letter-spacing: .3px; white-space: nowrap; }
.float-num { font-weight: 600; opacity: .95; }
a.float:hover, a.float2:hover { filter: brightness(1.06); color: #fff !important; }
a.float:active, a.float2:active { transform: scale(.96); }
a.float:focus-visible, a.float2:focus-visible { outline: 3px solid #fb811e; outline-offset: 3px; }

/* Halo que late en el de WhatsApp (escritorio) */
@media (prefers-reduced-motion: no-preference) {
  a.float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    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 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- CELULAR: barra fija abajo ---------- */
@media (max-width: 767px) {
  a.float,
  a.float2 {
    bottom: 0 !important;
    height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 10px env(safe-area-inset-bottom, 0px) !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 14px rgba(0,0,0,.22) !important;
  }
  a.float2 { left: 0 !important;  right: auto !important; width: 40% !important; }
  a.float  { right: 0 !important; left: auto !important;  width: 60% !important; }
  a.float::after { content: none; }              /* sin halo dentro de la barra */
  a.float:active, a.float2:active { transform: none; filter: brightness(.92); }
  .float-num { display: none; }                  /* en celular basta "Llamar" */
  .float-txt { font-size: 19px; }

  /* Que la barra no tape el final de la página ni el botón de subir */
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  #movetop { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; right: 14px !important; }
}
@media (max-width: 340px) {
  .float-txt { font-size: 17px; }
  a.float .my-float { font-size: 26px !important; }
}

/* ============================================================
   BANNER EN CELULAR
   La plantilla ponía primero la foto (alto = pantalla completa) y
   dejaba el saludo y el botón "Quiero pedir" escondidos debajo.
   Ahora el botón se ve apenas abre la página.
   ============================================================ */
@media (max-width: 768px) {
  .w3l-banner .banner-left  { order: 1 !important; padding-top: 6.5em !important; padding-bottom: 3em !important; }
  .w3l-banner .banner-right { order: 2 !important; min-height: 80vh; }
  .w3l-banner h3 { font-size: 32px !important; line-height: 42px !important; }
}
