/* Extra Tiempo BGA — Estilos globales complementarios */

/* ─── Tipografía responsive ─────────────────────────────────────────────────── */
/* Los tokens de Tailwind son de tamaño fijo (72px / 48px / 28px). En pantallas
   pequeñas los escalamos con clamp() para evitar desbordes y descuadres. */
@media (max-width: 768px) {
  .text-headline-display { font-size: clamp(34px, 9vw, 48px) !important; line-height: 1.08 !important; }
  .text-headline-lg      { font-size: clamp(28px, 7.5vw, 40px) !important; line-height: 1.12 !important; }
  .text-headline-md      { font-size: clamp(20px, 5.5vw, 26px) !important; }
  .text-body-lg          { font-size: clamp(15px, 4.2vw, 18px) !important; line-height: 1.6 !important; }
}

/* ─── Utilidades generales ─────────────────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(to bottom, rgba(21, 33, 61, 0.03) 0%, rgba(252, 249, 248, 0) 100%);
}

.editorial-shadow {
  box-shadow: 0 40px 80px -20px rgba(21, 33, 61, 0.12);
}

/* ─── Scrollbar personalizado ───────────────────────────────────────────────── */
.custom-scrollbar::-webkit-scrollbar { width: 3px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #dcd9d9; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #75777e; }

/* ─── Cards de producto ─────────────────────────────────────────────────────── */
.product-card-img-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21, 33, 61, 0.02);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.product-card:hover .product-card-img-container::after { opacity: 0; }

/* ─── Rango de precio (slider) ──────────────────────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: #c5c6ce;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #15213d;
  cursor: pointer;
  border-radius: 50%;
}

/* ─── Tallas ────────────────────────────────────────────────────────────────── */
.size-btn-disabled {
  position: relative;
  overflow: hidden;
  cursor: not-allowed;
  opacity: 0.4;
}
.size-btn-disabled::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: rotate(-15deg);
  opacity: 0.5;
}

/* ─── Animaciones del contador de caracteres ────────────────────────────────── */
.char-count-warning { color: #ba1a1a; }
.char-count-ok { color: #45464d; }

/* ─── Flash messages ────────────────────────────────────────────────────────── */
.flash-message {
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Producto detalle ──────────────────────────────────────────────────────── */
.product-gallery-main { aspect-ratio: 4/5; }
@media (max-width: 640px) {
  .product-gallery-main { aspect-ratio: 1/1; }
}
.premium-shadow { box-shadow: 0 10px 30px -10px rgba(21,33,61,0.08); }
.soft-border { border: 1px solid rgba(21,33,61,0.06); }
.product-gallery-aspect { aspect-ratio: 4 / 5; }
