select option,
select optgroup {
    color: #e2e8e4;
    background-color: #1a2332;
}

html {
  scroll-behavior: smooth;
}

body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: #0d1210;
}
body::-webkit-scrollbar-thumb {
  background: #16a34a;
  border-radius: 4px;
}

.shader-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none !important;
}

a, button {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.liquid-glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid rgba(169, 214, 176, 0.15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);

}

.tilt-card { will-change: transform; }

.cart-sidebar::-webkit-scrollbar { width: 6px; }
.cart-sidebar::-webkit-scrollbar-thumb { background: rgba(169, 214, 176, 0.3); border-radius: 10px; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.animate-shake { animation: shake 0.4s ease-in-out; }

.card-description-scroll::-webkit-scrollbar { width: 4px; }
.card-description-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 4px; }

/* ===== Safe areas para iPhone (home indicator) ===== */
#cart-footer { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
#checkout-modal .liquid-glass-card { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
#client-panel { padding-bottom: env(safe-area-inset-bottom); }

.switch-toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch-toggle input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; background: rgba(255,255,255,0.1); border-radius: 22px; cursor: pointer; transition: 0.3s; }
.switch-slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.switch-toggle input:checked + .switch-slider { background: #16a34a; }
.switch-toggle input:checked + .switch-slider::before { transform: translateX(18px); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-fade-in { animation: fadeInUp 0.5s ease-out; }

/* ===== Carrusel de fondo ===== */
.carousel-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.carousel-slide.active { opacity: 0.22; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 18, 16, 0.75), #0d1210);
  z-index: 2;
  pointer-events: none;
}

.landing-banda-bg {
  position: absolute;
  inset: 0;
  background-image: url("/static/img/bg_nature_1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.landing-banda-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 16, 0.72);
  pointer-events: none;
}

.shader-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(13, 18, 16, 0.55) 0%, rgba(13, 18, 16, 0) 30%, rgba(13, 18, 16, 0) 65%, rgba(13, 18, 16, 0.55) 100%);
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-bounce-slow { animation: bounce-slow 2s infinite; }

@keyframes float-horizontal {
  0%, 100% { transform: translateY(0px) scale(1); }
  25% { transform: translateY(-6px) scale(1.01); }
  50% { transform: translateY(0px) scale(1); }
  75% { transform: translateY(6px) scale(0.99); }
}
.carousel-slide-float { animation: float-horizontal 4s ease-in-out infinite; }
.carousel-slide-float:nth-child(2) { animation-delay: 0.5s; }
.carousel-slide-float:nth-child(3) { animation-delay: 1s; }
.carousel-slide-float:nth-child(4) { animation-delay: 1.5s; }

.servicio-card {
  transition: opacity 0.7s ease-out, transform 0.7s ease-out, filter 0.7s ease-out;
  cursor: pointer;
}
.servicio-card.blurred-side {
  filter: blur(4px) saturate(60%);
  opacity: 0.5;
  transform: scale(0.95);
}

.social-glass-btn {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(25px) saturate(140%);
  -webkit-backdrop-filter: blur(25px) saturate(140%);
  border: 1px solid rgba(169, 214, 176, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease-out;
  text-decoration: none;
  will-change: transform;
}
@media (max-width: 767px) {
  .social-glass-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}
.social-glass-btn:hover {
  transform: scale(1.08);
  border-color: rgba(169, 214, 176, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 30px rgba(169, 214, 176, 0.1);
}
.social-glass-btn--instagram:hover {
  border-color: #DD2A7B;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 35px rgba(221, 42, 123, 0.25);
}
.social-glass-btn--facebook:hover {
  border-color: #1877F2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 35px rgba(24, 119, 242, 0.25);
}
.social-glass-btn--whatsapp:hover {
  border-color: #25D366;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 35px rgba(37, 211, 102, 0.25);
}
.social-glass-btn--tiktok:hover {
  border-color: #25F4EE;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 35px rgba(37, 244, 238, 0.25);
}

.glow-verde {
  text-shadow: 0 0 30px rgba(169, 214, 176, 0.3), 0 0 60px rgba(169, 214, 176, 0.1);
}

/* ========== Admin nav button: hidden always, flex on md+ when .admin-nav-visible ========== */
#admin-nav-btn.admin-nav-btn-hidden { display: none; }
#admin-nav-btn.admin-nav-visible { display: none; }
@media (min-width: 768px) {
  #admin-nav-btn.admin-nav-visible { display: flex; }
}

/* ========== Botón 3D Natural Sports (navbar) ========== */
.nav-btn-natural {
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 0 10px rgba(120, 220, 119, 0.3));
  border-radius: 50%;
}
.nav-btn-natural:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 35px rgba(120, 220, 119, 0.7)) brightness(1.1);
}
.nav-btn-natural:active {
  transform: scale(0.96);
  filter: drop-shadow(0 0 15px rgba(120, 220, 119, 0.5)) brightness(0.9);
  transition: all 0.1s;
}

@keyframes navBtnWaterPulse {
  0% { box-shadow: 0 0 0 0 rgba(120, 220, 119, 0.4); }
  70% { box-shadow: 0 0 0 18px rgba(120, 220, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(120, 220, 119, 0); }
}
.nav-btn-natural--pulse {
  animation: navBtnWaterPulse 3s infinite;
}

/* ============================================
   Los flotantes (logo de tienda + asistente) y los
   drawers que se comen la pantalla en movil.

   Los cuatro drawers de la app son paneles que en
   movil ocupan la esquina inferior derecha, donde
   viven los flotantes: el logo esta en z-index
   999999 y el toggle en 999998, mil veces por
   encima de cualquiera de los drawers, asi que gana
   el logo siempre. Con el carrito se intentaba
   resolver mudandolos 20px al lado opuesto, pero
   #cart-sidebar es w-full hasta sm: (640px): no
   queda esquina libre, solo se cambiaba que extremo
   del boton de pagar tapaban. Esconderse no tiene
   ese problema y deja el drawer como unica capa.
   ============================================ */
/* Transición suave de right/left siempre activa (gana en especificidad a chatbot.js) */
body #vn-chatbot-toggle,
body #vn-chatbot-panel {
  transition: right 0.3s ease, left 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Escritorio (>= 640px): el sidebar del carrito mide 400px, alcanza con correrlos
   justo afuera del borde y no estorban. Este comportamiento se conserva. */
@media (min-width: 640px) {
  body.cart-open #vn-logo {
    right: 420px !important;
    left: auto;
  }
  body.cart-open #vn-chatbot-toggle {
    right: 438px;
    left: auto;
  }
  body.cart-open #vn-chatbot-panel {
    right: 434px;
    left: auto;
  }
}

/* Móvil (< 640px): los drawers de ancho completo tapan la esquina. El corte es
   639 y no 767 porque #cart-sidebar sigue siendo w-full hasta sm: (640px). */
@media (max-width: 639px) {
  body.cart-open #vn-logo,
  body.nav-abierto #vn-logo,
  body.panel-cliente-abierto #vn-logo {
    display: none !important;
  }
  body.cart-open #chatbot-root,
  body.nav-abierto #chatbot-root,
  body.panel-cliente-abierto #chatbot-root {
    display: none !important;
  }
}

/* El drawer de filtros no comparte breakpoint con el carrito: solo existe por
   debajo de md: (768px), donde filter-sidebar.html pasa de
   `fixed inset-y-0 left-0 w-[85vw]` a columna `md:sticky md:w-72`. Ahi ya no
   pisa la esquina y no hay nada que esconder. El logo le cubria los ~40px
   derechos del boton "Aplicar Filtros". */
@media (max-width: 767px) {
  body.filtros-open #vn-logo,
  body.filtros-open #chatbot-root {
    display: none !important;
  }
}

/* ============================================
   Ocultar logo + chatbot mientras el modal de
   checkout está abierto (body.checkout-open) para
   que no tapen notas del pedido ni formas de pago.
   ============================================ */
body.checkout-open #vn-logo,
body.checkout-open #chatbot-root {
  display: none !important;
}

/* ============================================
   Ocultar logo + chatbot mientras el tour de
   bienvenida esta abierto (body.tour-abierto).
   Los dos flotantes viven en z-index 999999 y
   999998 y el tour en 1000, asi que sin esto
   quedaban por encima del nublado: en movil la
   tarjeta va a ancho completo pegada al fondo,
   exactamente sobre la columna de la esquina
   inferior derecha, y el logo de 110px tapaba
   el boton "Siguiente" (que esta alineado a la
   derecha). Ademas quedaban clicables durante
   el tour, y al abrir la tienda se perdia el
   tour entero sin marcar vn_tour_visto.
   La clase la alterna abrir()/cerrar() en
   tour-bienvenida.js.
   ============================================ */
body.tour-abierto #vn-logo,
body.tour-abierto #chatbot-root {
  display: none !important;
}

/* ============================================
   Comunidad: reproductores de FB/IG en línea
   ============================================ */
.publicacion-container {
  min-height: 220px;
}
.publicacion-container iframe {
  width: 100% !important;
  display: block;
}
.publicacion-container .instagram-media {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* ============================================
   Paneles de publicidad (bento, hp-bento)
   ============================================ */
.hp-bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(169, 214, 176, 0.15);
  background: #0f1814;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  text-decoration: none;
}
.hp-bento-card:hover {
  border-color: rgba(169, 214, 176, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(169, 214, 176, 0.12);
  transform: translateY(-4px);
}
.hp-bento-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.01);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hp-bento-card:hover .hp-bento-card__media {
  transform: scale(1.09);
}
.hp-bento-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 18, 16, 0.94) 0%, rgba(13, 18, 16, 0.4) 45%, transparent 80%);
  transition: opacity 0.4s ease;
}
.hp-bento-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.hp-bento-card__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a9d6b0;
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}
.hp-bento-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.hp-bento-card__desc {
  font-size: 0.72rem;
  color: #cbd5cf;
  max-width: 32ch;
}
.hp-bento-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a9d6b0;
  transition: gap 0.3s ease, color 0.3s ease;
}
.hp-bento-card:hover .hp-bento-card__cta {
  gap: 0.7rem;
  color: #16a34a;
}
@media (max-width: 639px) {
  .hp-bento-card__content { padding: 0.9rem; gap: 0.3rem; }
  .hp-bento-card__title { font-size: 1rem; }
  .hp-bento-card__desc {
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hp-bento-card__cta { margin-top: 0.15rem; }
}

/* ============================================
   Marcas Profesionales (#dt-professional-brands-module)
   ============================================ */
#dt-professional-brands-module .brands-card-item {
  transition: transform 0.35s ease, border-color 0.35s ease;
}
#dt-professional-brands-module .brands-card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 214, 176, 0.35);
}

/* ============================================
   Tour de bienvenida (home)
   ============================================ */
.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(6, 10, 8, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: tour-fade 0.25s ease;
}
.tour-ring {
  position: fixed;
  z-index: 999;
  display: none;
  border: 3px solid rgba(169, 214, 176, 0.9);
  border-radius: 18px;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.25), 0 0 40px rgba(22, 163, 74, 0.45);
  pointer-events: none;
  /* Solo posición y corta: el anillo sigue al elemento en cada scroll, y una
     transición larga lo haría quedar rezagado. */
  transition: left 0.12s linear, top 0.12s linear,
    width 0.12s linear, height 0.12s linear;
  animation: tour-pulse 2.2s ease-in-out infinite;
}
.tour-tooltip {
  position: fixed;
  z-index: 1000;
  display: none;
  width: 440px;
  max-width: calc(100vw - 24px);
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(169, 214, 176, 0.35);
  background: rgba(13, 18, 16, 0.96);
  box-shadow: 0 0 40px rgba(22, 163, 74, 0.35);
  animation: tour-pop 0.3s ease;
}
.tour-tooltip-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tour-tooltip-icon {
  font-size: 26px;
  color: var(--color-primary, #a9d6b0);
}
.tour-cerrar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9fb0a5;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tour-cerrar:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.tour-contador {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9fb0a5;
  margin-bottom: 6px;
}
.tour-titulo {
  font-family: "Sora", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.tour-texto {
  font-size: 13px;
  line-height: 1.6;
  color: #9fb0a5;
}
.tour-acciones {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.tour-omitir {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb0a5;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}
.tour-omitir:hover { color: #fff; }
.tour-siguiente {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d1210;
  background: linear-gradient(90deg, #16a34a, #15803d);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.tour-siguiente:hover { filter: brightness(1.1); transform: translateY(-1px); }

@keyframes tour-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tour-pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes tour-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.25), 0 0 40px rgba(22, 163, 74, 0.45); } 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.35), 0 0 60px rgba(22, 163, 74, 0.6); } }

@media (max-width: 640px) {
  .tour-tooltip { width: auto; }
  .tour-ring { border-width: 2px; }
}
