@charset "UTF-8";

/* ==========================================================================
   TIPOGRAFÍAS OFICIALES - LA ESCOBITA
   Títulos: Gliker (Fuente de identidad)
   Cuerpo y textos: Sora (Legibilidad moderna)
   ========================================================================== */

@font-face {
  font-family: 'Gliker';
  src: url('../assets/fonts/Gliker-Regular.woff2') format('woff2'),
       url('../assets/fonts/Gliker-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gliker';
  src: url('../assets/fonts/Gliker-SemiBold.woff2') format('woff2'),
       url('../assets/fonts/Gliker-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gliker';
  src: url('../assets/fonts/Gliker-Bold.woff2') format('woff2'),
       url('../assets/fonts/Gliker-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gliker';
  src: url('../assets/fonts/Gliker-Black.woff2') format('woff2'),
       url('../assets/fonts/Gliker-Black.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Fallback local para Sora */
@font-face {
  font-family: 'Sora';
  src: url('../assets/fonts/Sora-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sora';
  src: url('../assets/fonts/Sora-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sora';
  src: url('../assets/fonts/Sora-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   SISTEMA DE DISEÑO - VARIABLES Y TOKENS (LA ESCOBITA)
   ========================================================================== */

:root {
  --color-primary: #083D47;        /* Verde petróleo profundo / Deep Teal */
  --color-primary-dark: #041C22;   /* Teal casi negro elegante */
  --color-primary-light: #0F5462;  /* Teal luminoso */
  --color-accent: #FACC15;         /* Amarillo vivo oficial del logo */
  --color-accent-hover: #FDE047;   /* Amarillo hover */
  --color-success: #059669;        /* Verde esmeralda fresco */
  --color-warning: #E11D48;        /* Coral / Rose para bajo pedido */
  --color-bg-body: #F8FAFC;        /* Fondo claro ultra limpio */
  --color-bg-card: #FFFFFF;        /* Superficie blanca */
  --color-text-main: #0F172A;      /* Texto de alto contraste */
  --color-text-muted: #64748B;     /* Texto secundario */
  --color-border: #E2E8F0;         /* Bordes sutiles */

  --font-heading: 'Gliker', 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Sora', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  font-family: var(--font-body);
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

section[id], [id="ubicacion"], [id="catalogo"], [id="negocios"] {
  scroll-margin-top: 5.5rem;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Evitar aberración cromática en tipografías sobre fondos oscuros en Windows */
header, footer, aside, .dark-surface, [class*="bg-[#041C22]"], [class*="bg-[#083D47]"], [class*="from-[#083D47]"] {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
}

/* ==========================================================================
   BOTONES Y CONTROLES TIPO PÍLDORA (PILL-SHAPED CONTROLS)
   ========================================================================== */

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.2s ease, 
              color 0.2s ease, 
              border-color 0.2s ease;
  user-select: none;
  cursor: pointer;
}

.btn-pill:hover {
  transform: translateY(-2px);
}

.btn-pill:active {
  transform: translateY(0) scale(0.97);
}

.btn-pill-accent {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.28);
}

.btn-pill-accent:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.4);
}

.btn-pill-primary {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(4, 28, 34, 0.25);
}

.btn-pill-primary:hover {
  background-color: var(--color-primary);
  box-shadow: 0 8px 22px rgba(8, 61, 71, 0.35);
}

.btn-pill-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.btn-pill-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-pill-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28);
}

.btn-pill-whatsapp:hover {
  background-color: #20ba59;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   BENTO GRID & SUPERFICIES MODERNAS
   ========================================================================== */

.bento-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 61, 71, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 36px rgba(8, 61, 71, 0.08);
}

.bento-card-dark {
  background: linear-gradient(145deg, #083D47 0%, #041C22 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 12px 32px rgba(4, 28, 34, 0.3);
}

.bento-card-dark:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 40px rgba(4, 28, 34, 0.45);
}

/* Efecto Refractivo Glassmorphic */
.glass-surface {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   TARJETAS DE PRODUCTO (PRODUCT CARDS UPGRADE)
   ========================================================================== */

.product-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 61, 71, 0.35);
  box-shadow: 0 16px 36px rgba(8, 61, 71, 0.09);
}

.product-card-img-wrap {
  position: relative;
  background: radial-gradient(circle at center, #ffffff 40%, #f1f5f9 100%);
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.product-card-img-wrap img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-img-wrap img {
  transform: scale(1.06);
}

/* ==========================================================================
   MICRO-INTERACCIONES & SCROLL EXPERIENCE
   Composite-only GPU acceleration (transform, opacity)
   ========================================================================== */

.reveal-init {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Animación sutil de pulso para el botón flotante de WhatsApp */
@keyframes pulse-ring {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float-btn {
  animation: pulse-ring 2.6s infinite;
}

/* Ocultar scrollbar horizontal en pills manteniendo navegación táctil */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Flechas de navegación para la barra de categorías */
.cat-scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.cat-scroll-arrow:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(8, 61, 71, 0.22);
}

.cat-scroll-arrow:active {
  transform: scale(0.92);
}

#categorias-pills {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   MOBILE FIRST: BOTTOM QUICK ACTION DOCK
   Barra inferior optimizada para móviles con acceso en 1 tap
   ========================================================================== */

.mobile-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0.75rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* ==========================================================================
   ACCESIBILIDAD: PREFERS-REDUCED-MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
  }
  .whatsapp-float-btn {
    animation: none !important;
  }
}

/* ==========================================================================
   SUPRESIÓN TOTAL DEL BADGE/DRAWER DE NETLIFY EN MÓVILES
   ========================================================================== */
#netlify-drawer-iframe,
[id*="netlify"],
[class*="netlify"],
[data-netlify-deploy-id],
div[class*="netlify-feedback"],
iframe[title*="Netlify" i],
iframe[src*="netlify" i],
a[href*="netlify.com"],
div:has(> a[href*="netlify.com"]) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  z-index: -9999 !important;
}


