/* =========================================
   CERO PLAGA — Estilos personalizados
   Tailwind CDN maneja las utilidades
   ========================================= */

/* Tipografía base */
html, body { height: 100%; margin: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; }
h1, h2, h3, h4, .font-heading { font-family: 'Poppins', sans-serif; }

/* Imagen del producto */
.gel-tube {}
.product-img-wrap { position: relative; display: inline-block; isolation: isolate; }
.product-img-shadow {
  position: absolute; bottom: 50px; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 14px;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0.38) 0%,
    rgba(0,0,0,0.10) 52%,
    transparent 72%
  );
  border-radius: 50%;
  filter: blur(9px);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 639px) {
  .product-img-wrap { display: flex; justify-content: center; }
  .product-img-shadow { width: 68%; }
}

/* Animación de entrada */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up    { animation: fadeUp 0.6s ease-out forwards; }
.fade-up-d2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-d3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-d4 { animation-delay: 0.4s; opacity: 0; }

/* Fade al hacer scroll */
.scroll-fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulso del botón WhatsApp */
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(94,132,57,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(94,132,57,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,132,57,0); }
}
#wa-float-btn { animation: wa-pulse 3s ease-out infinite; }

/* Destello en botón de compra principal */
#buy-btn { overflow: hidden; }
#buy-btn::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: btn-shimmer 4.5s ease-in-out infinite;
  animation-delay: 2s;
}
@keyframes btn-shimmer {
  0%        { left: -100%; }
  35%, 100% { left: 160%; }
}

/* Overlay modal */
.modal-overlay { background: rgba(46, 44, 43, 0.55); backdrop-filter: blur(4px); }

/* Precio hero responsive */
.hero-price { font-size: 2rem; line-height: 1; }
@media (max-width: 640px) { .hero-price { font-size: 2rem; } }

/* Etiquetas método de pago */
.pago-label {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; border: 2px solid rgba(46,44,43,0.2);
  border-radius: 10px; padding: 10px 12px;
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.pago-label:hover    { background: rgba(94,132,57,0.15); }
.pago-label.selected { border-color: #5e8439; background: rgba(94,132,57,0.2); }

/* Botones de cantidad */
.kit-btn {
  border: 2px solid rgba(46,44,43,0.2);
  border-radius: 8px; padding: 5px 4px;
  text-align: center; cursor: pointer;
  transition: all 0.2s; background: white;
}
.kit-btn:hover    { background: rgba(94,132,57,0.1); border-color: #5e8439; }
.kit-btn.selected { border-color: #5e8439; background: rgba(94,132,57,0.18); }
.kit-btn .kit-qty   { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.9rem; color: #5e8439; }
.kit-btn .kit-label { font-size: 0.58rem; color: #2e2c2b; margin-top: 1px; }
.kit-btn .kit-price { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.68rem; color: #5e8439; margin-top: 2px; }
.kit-btn .kit-saving-pill {
  display: inline-block;
  font-size: 0.57rem; font-weight: 700;
  color: #ef4444;
  background: rgba(239,68,68,0.09);
  border-radius: 9999px;
  padding: 1px 5px;
  margin-top: 2px;
}
.kit-btn .kit-info-pill {
  display: inline-block;
  font-size: 0.57rem; font-weight: 600;
  color: #5e8439;
  background: rgba(94,132,57,0.09);
  border-radius: 9999px;
  padding: 1px 5px;
  margin-top: 2px;
}

/* Selector de pack en hero */
.hero-pack-btn {
  border: 1.5px solid rgba(46,44,43,0.18);
  border-radius: 8px; padding: 5px 4px;
  text-align: center; cursor: pointer;
  transition: all 0.2s; background: white; width: 100%;
}
.hero-pack-btn:hover    { background: rgba(94,132,57,0.08); border-color: #5e8439; }
.hero-pack-btn.selected { border-color: #5e8439; background: rgba(94,132,57,0.12); }
.hero-pack-label {
  font-size: 0.57rem; font-weight: 700; color: #5e8439;
  background: white;
  border: 1px solid rgba(94,132,57,0.3);
  border-radius: 9999px;
  padding: 1px 7px;
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap; z-index: 2;
}
.hero-pack-qty   { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.8rem; color: #2e2c2b; }
.hero-pack-price { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.7rem; color: #5e8439; margin-top: 2px; }

/* Panel de contacto flotante */
.contact-panel {
  position: fixed; right: 0; top: 4.25rem;
  width: min(14rem, calc(100vw - 1rem));
  background: #fff;
  border: 1px solid rgba(46,44,43,0.10);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  border-radius: 0 0 12px 12px;
  z-index: 60;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
}
.contact-panel.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 640px) {
  .contact-panel {
    top: 4.75rem;
    right: max(0px, calc((100vw - 56rem) / 2));
  }
}

/* Ocultar barras de desplazamiento */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
#order-modal > div { scrollbar-width: none; }
#order-modal > div::-webkit-scrollbar { display: none; }

/* Bordes redondeados uniformes en controles de formulario */
input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]),
select,
textarea { border-radius: 0.5rem; }

/* Botón flotante WhatsApp: posición inicial móvil */
@media (max-width: 639px) {
  #wa-float-btn {
    bottom: auto;
    top: 68vh;
  }
}

/* Flecha personalizada en select */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232e2c2b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* Panel menú móvil flotante */
.mobile-nav-panel {
  position: fixed; right: 0; top: 4.25rem;
  width: min(14rem, calc(100vw - 1rem));
  background: #fff;
  border: 1px solid rgba(46,44,43,0.10);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  border-radius: 0 0 12px 12px;
  z-index: 60;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
}
.mobile-nav-panel.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
/* Botón WhatsApp flotante — variante blanca sobre sección verde */
#wa-float-btn.wa-on-green {
  background: white !important;
  color: #5e8439 !important;
  animation: wa-pulse-white 3s ease-out infinite;
}
#wa-float-btn.wa-on-green:hover { background: #f0f4eb !important; }
@keyframes wa-pulse-white {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
#mobile-menu-toggle:active { background: transparent !important; }
/* Hamburger animado → X */
.burger-icon {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 20px; height: 20px; pointer-events: none;
}
.burger-bar {
  display: block; width: 20px; height: 2px;
  background: #1a1a1a; border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}
#mobile-menu-toggle.burger-active .burger-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
#mobile-menu-toggle.burger-active .burger-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}


