/* ==========================================================================
   Peruvian Organic Garden — Estilos personalizados
   Solo lo que Tailwind (CDN) no resuelve por sí mismo.
   ========================================================================== */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Micro-interacción de pulsado para botones/CTA */
.btn-hover-active:active {
  transform: scale(0.98);
}

/* Retícula industrial de fondo en la sección de productos */
.industrial-grid {
  background-image:
    linear-gradient(to right, #e5e2e1 1px, transparent 1px),
    linear-gradient(to bottom, #e5e2e1 1px, transparent 1px);
  background-size: 40px 40px;
}

/* --------------------------------------------------------------------------
   Selector de idioma (ES | EN | DE)
   -------------------------------------------------------------------------- */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #4f453f;            /* on-surface-variant */
  padding: 2px 4px;
  cursor: pointer;
  background: transparent;
  border: 0;
  transition: color 0.2s ease;
}
.lang-btn:hover {
  color: #26170c;            /* primary */
}
.lang-btn.lang-active {
  color: #26170c;            /* primary */
  font-weight: 700;
  border-bottom: 2px solid #46645d; /* secondary */
}
.lang-flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.lang-btn:hover .lang-flag,
.lang-btn.lang-active .lang-flag {
  opacity: 1;
}

/* Banderas incrustadas (SVG en data URI, sin dependencias externas) */
.flag-pe {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='3' height='2' fill='%23fff'/%3E%3Crect width='1' height='2' fill='%23D91023'/%3E%3Crect x='2' width='1' height='2' fill='%23D91023'/%3E%3C/svg%3E");
}
.flag-us {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 10'%3E%3Crect width='19' height='10' fill='%23fff'/%3E%3Cg fill='%23B22234'%3E%3Crect width='19' height='0.77' y='0'/%3E%3Crect width='19' height='0.77' y='1.54'/%3E%3Crect width='19' height='0.77' y='3.08'/%3E%3Crect width='19' height='0.77' y='4.62'/%3E%3Crect width='19' height='0.77' y='6.15'/%3E%3Crect width='19' height='0.77' y='7.69'/%3E%3Crect width='19' height='0.77' y='9.23'/%3E%3C/g%3E%3Crect width='7.6' height='5.38' fill='%233C3B6E'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='1.3' cy='1' r='0.35'/%3E%3Ccircle cx='3.3' cy='1' r='0.35'/%3E%3Ccircle cx='5.3' cy='1' r='0.35'/%3E%3Ccircle cx='1.3' cy='2.7' r='0.35'/%3E%3Ccircle cx='3.3' cy='2.7' r='0.35'/%3E%3Ccircle cx='5.3' cy='2.7' r='0.35'/%3E%3Ccircle cx='1.3' cy='4.4' r='0.35'/%3E%3Ccircle cx='3.3' cy='4.4' r='0.35'/%3E%3Ccircle cx='5.3' cy='4.4' r='0.35'/%3E%3C/g%3E%3C/svg%3E");
}
.flag-de {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Crect width='5' height='3' fill='%23000'/%3E%3Crect y='1' width='5' height='1' fill='%23D00'/%3E%3Crect y='2' width='5' height='1' fill='%23FFCE00'/%3E%3C/svg%3E");
}
.lang-sep {
  color: #d2c4bc;            /* outline-variant */
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Botón flotante de WhatsApp
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}
.wa-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@media (min-width: 768px) {
  .wa-float {
    right: 32px;
    bottom: 32px;
  }
}
