/*
Theme Name: Bleed
Theme URI:
Author: Santiago Gomez 
Description: Tema a la medida para la marca de streetwear BLEED. HTML/CSS/JS propio + WooCommerce.
Version: 1.0
Text Domain: bleed
*/

/* ============================================================
   FUENTES
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Bodoni+Moda:ital,opsz@1,6..96&family=Space+Mono:wght@400;700&family=Archivo:wght@400;500;600&display=swap');

/* ============================================================
   TOKENS DE DISEÑO
   ============================================================ */
:root {
  --black: #0D0D0D;
  --bone: #F5F3EF;
  --blood: #B10F1C;
  --wine: #4A0E13;

  --font-display: 'Bebas Neue', sans-serif;
  --font-editorial: 'Bodoni Moda', serif;
  --font-mono: 'Space Mono', monospace;
  --font-sans: 'Archivo', sans-serif;

  --section-pad: clamp(3rem, 8vw, 7rem);
}

/* ============================================================
   RESET BÁSICO
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--black);
  width: 100%;
}
body {
  font-family: var(--font-mono);
  color: var(--bone);
  background: var(--black);
  line-height: 1.6;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  padding: 1.2rem 0;
  transition: background 0.4s ease, padding 0.3s ease;
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* --- Logo --- */
.site-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}
.site-logo-mark {
  width: 14px;
  height: auto;
  fill: var(--blood);
  animation: rec-blink 1.6s ease-in-out infinite;
}
@keyframes rec-blink {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(177,15,28,0.9));
  }
  50% {
    opacity: 0.4;
    filter: drop-shadow(0 0 1px rgba(177,15,28,0.3));
  }
}

/* --- Nav lateral (escritorio) --- */
.nav-side {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-left { justify-self: start; }
.nav-right { justify-self: end; }

.nav-side a {
  position: relative;
  padding-bottom: 4px;
}
.nav-side a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--blood);
  transition: width 0.3s ease;
}
.nav-side a:hover { color: var(--blood); }
.nav-side a:hover::after { width: 100%; }

.nav-right span,
.nav-right a:last-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border: 1px solid rgba(245,243,239,0.25);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.nav-right a:last-child:hover { border-color: var(--blood); }
.nav-right a:last-child::after { display: none; }

/* --- Disparador de menú (hamburguesa "pulso") --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  justify-self: end;
  align-self: center;
  width: 22px;
  height: 22px;
}
.menu-toggle-pulse {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.pulse-line {
  width: 100%;
  height: 2px;
  background: var(--bone);
  border-radius: 1px;
  transition: background 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] .pulse-line-1 {
  transform: translateY(7px) rotate(45deg);
  background: var(--blood);
}
.menu-toggle[aria-expanded="true"] .pulse-line-2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .pulse-line-3 {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--blood);
}
.menu-toggle:hover .pulse-line { background: var(--blood); }

/* --- Estado del header al hacer scroll --- */
.site-header.is-scrolled {
  background: rgba(13, 13, 13, 0.85);
  padding: 0.7rem 0;
}

/* --- Responsive del header --- */
@media (max-width: 860px) {
  .nav-side { display: none; }
  .header-row { grid-template-columns: auto 1fr auto; }
  .site-logo { justify-self: start; }
  .menu-toggle { display: block; }
  .site-header { padding: 0.85rem 0; }
}

/* ============================================================
   MENÚ MÓVIL — overlay a pantalla completa
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 75% 25%, rgba(74,14,19,0.55), transparent 55%);
  z-index: 0;
  pointer-events: none;
}

.mobile-menu-scanline {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 2px;
  background: var(--blood);
  box-shadow: 0 0 16px rgba(177,15,28,0.8);
  opacity: 0;
  z-index: 3;
}
.mobile-menu.is-open .mobile-menu-scanline {
  animation: menu-scan 0.7s ease-out;
}
@keyframes menu-scan {
  0%   { top: 0;    opacity: 1; }
  90%  { top: 100%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.mobile-menu-close {
  position: absolute;
  top: 1.8rem; right: 8%;
  z-index: 4;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close-line {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--bone);
  transition: background 0.25s ease;
}
.mobile-menu-close-line:first-child { transform: rotate(45deg); }
.mobile-menu-close-line:last-child { transform: rotate(-45deg); }
.mobile-menu-close:hover .mobile-menu-close-line { background: var(--blood); }

.mobile-menu-links {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 8%;
}
.mobile-menu-links li {
  border-top: 1px solid rgba(245,243,239,0.12);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: calc(0.15s + var(--i) * 0.08s);
}
.mobile-menu-links li:last-child { border-bottom: 1px solid rgba(245,243,239,0.12); }
.mobile-menu.is-open .mobile-menu-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-links a,
.mobile-menu-static {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.8rem);
  letter-spacing: 0.02em;
  color: var(--bone);
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.mobile-menu-links a:hover {
  color: var(--blood);
  padding-left: 0.6rem;
}
.mobile-menu-index {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--blood);
}

.mobile-menu-footer {
  position: absolute;
  bottom: 1.8rem; left: 8%;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(245,243,239,0.4);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 50% 50%;
  min-height: 100vh;
  overflow: hidden;
}

/* --- Panel izquierdo: texto + video de fondo --- */
.hero-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 4.5rem);
  overflow: hidden;
}
.hero-text-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-text-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.72);
  z-index: 2;
}
.hero-text-content {
  position: relative;
  z-index: 3;
}
.hero-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--blood);
  margin-bottom: 1rem;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 0.9;
}
.hero-editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin: 1rem 0 2rem;
  color: rgba(245,243,239,0.85);
}

/* --- Panel derecho: fondo animado + contenido del drop --- */
.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--wine);
}
.hero-media-top-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--black) 0%, var(--wine) 100%);
  background-size: 180% 180%;
  animation: bleed-breathe 8s ease-in-out infinite;
  z-index: 1;
}
.hero-media-top-overlay::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 70%, rgba(122,14,24,0.55), transparent 60%);
  animation: bleed-pulse-a 9s ease-in-out infinite;
  z-index: 1;
}
.hero-media-top-overlay::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: bleed-grain 1.2s steps(4) infinite;
}
.hero-media-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 70% 30%, rgba(74,14,19,0.6), transparent 55%);
  animation: bleed-pulse-b 11s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
.hero-media-glow-c {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 85%, rgba(122,14,24,0.5), transparent 50%);
  animation: bleed-pulse-c 7s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
.hero-media-cursor-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  background: radial-gradient(circle 260px at var(--gx, 50%) var(--gy, 50%), rgba(122,14,24,0.65), transparent 70%);
}

@keyframes bleed-breathe {
  0%, 100% { background-position: 20% 20%; }
  50% { background-position: 80% 80%; }
}
@keyframes bleed-pulse-a {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(8%, -6%) scale(1.3); opacity: 1; }
}
@keyframes bleed-pulse-b {
  0%, 100% { transform: translate(0, 0) scale(1.1); opacity: 0.5; }
  50% { transform: translate(-10%, 8%) scale(1.4); opacity: 0.9; }
}
@keyframes bleed-pulse-c {
  0%, 100% { transform: translate(-6%, 0) scale(1) rotate(0deg); opacity: 0.4; }
  50% { transform: translate(6%, -10%) scale(1.5) rotate(8deg); opacity: 1; }
}
@keyframes bleed-grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* --- Contenido del drop (countdown + info), centrado en el panel derecho --- */
.hero-drop-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
  padding: 2rem;
}
.drop-countdown-timer,
.hero-drop-content .drop-info {
  justify-content: center;
}
.hero-drop-content .drop-info { text-align: center; }
.hero-drop-content .drop-info-list {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.drop-countdown-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(245,243,239,0.5);
  margin-bottom: 0.6rem;
}
.drop-countdown-timer {
  display: flex;
  gap: 1.4rem;
}
.drop-countdown-unit {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.drop-countdown-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--bone);
  line-height: 1;
}
.drop-countdown-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blood);
}

.drop-info { text-align: right; }
.drop-info-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(245,243,239,0.5);
  margin-bottom: 0.7rem;
}
.drop-info-list {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--bone);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.drop-info-limited {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--blood);
}

/* --- Responsive del Hero --- */
.drop-countdown-mobile { display: none; }
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { display: none; }
  .hero-text { min-height: 100vh; }
  .drop-countdown-mobile { display: block; margin-top: 2.5rem; }
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 1rem 2.2rem;
  border: 1px solid var(--bone);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-primary:hover {
  background: var(--blood);
  border-color: var(--blood);
}

/* ============================================================
   SHOP GRID
   ============================================================ */
.shop-grid {
  padding: calc(var(--section-pad) + 4rem) 0 var(--section-pad);
}
.shop-grid-header {
  text-align: center;
  margin-bottom: 3rem;
}
.shop-grid-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--blood);
  margin-bottom: 0.8rem;
}
.shop-grid-title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.00em;
  color: var(--bone);
}

.shop-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "carousel carousel featured"
    "cardA    cardB    featured"
    "cardC    cardD    cardE";
  gap: 2rem;
}

.bento-carousel  { grid-area: carousel; position: relative; overflow: hidden; background: var(--wine); min-height: 260px; }
.bento-featured  { grid-area: featured; }
.bento-a { grid-area: cardA; }
.bento-b { grid-area: cardB; }
.bento-c { grid-area: cardC; }
.bento-d { grid-area: cardD; }
.bento-e { grid-area: cardE; }

/* El carrusel y la destacada llenan TODO su espacio asignado (sin aspect-ratio fijo) */
.bento-carousel .product-carousel-slide img {
  height: 100%;
}

.bento-featured {
  display: flex;
  flex-direction: column;
}
.bento-featured .product-card-image-wrap {
  flex: 1;
  aspect-ratio: auto;
}

.product-card-image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--wine);
}
.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-image {
  transform: scale(1.05);
}

.product-card-cta {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(13,13,13,0.85);
  color: var(--bone);
  text-align: center;
  padding: 0.9rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-cta {
  transform: translateY(0);
}

.product-card-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
}
.product-card-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
}
.product-card-price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--blood);
}

/* --- Responsive del Shop Grid --- */
@media (max-width: 860px) {
  .shop-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "carousel carousel"
      "featured featured"
      "cardA    cardB"
      "cardC    cardD"
      "cardE    cardE";
  }
}
@media (max-width: 520px) {
  .shop-bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "carousel"
      "featured"
      "cardA"
      "cardB"
      "cardC"
      "cardD"
      "cardE";
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(245,243,239,0.1);
  padding: var(--section-pad) 0 2rem;
}
.footer-inner {
  width: 100%;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

.footer-signup {
  text-align: center;
  padding-bottom: var(--section-pad);
  border-bottom: 1px solid rgba(245,243,239,0.1);
  margin-bottom: 3rem;
}
.footer-signup-label {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.4rem;
}
.footer-signup-form {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  max-width: 420px;
  margin-inline: auto;
}
.footer-signup-form input {
  flex: 1;
  background: none;
  border: 1px solid var(--bone);
  padding: 0.8rem 1rem;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.footer-signup-form input:focus { outline: none; border-color: var(--blood); }
.footer-signup-form button {
  background: var(--blood);
  color: var(--bone);
  border: none;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.footer-signup-form button:hover {
  background: var(--bone);
  color: var(--blood);
  transform: translateY(-2px);
}

.footer-brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding-bottom: 2.5rem;
}
.footer-logo-big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
}
.footer-social-row {
  display: flex;
  gap: 1.2rem;
}
.footer-social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245,243,239,0.25);
  color: var(--bone);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.footer-social-row a:hover {
  border-color: var(--blood);
  color: var(--blood);
  transform: translateY(-2px);
}

.footer-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding-bottom: 2.5rem;
  text-align: center;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--blood);
  margin-bottom: 0.9rem;
}
.footer-grid a {
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-grid a:hover { opacity: 1; color: var(--blood); }

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(245,243,239,0.08);
  padding-top: 1.5rem;
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(245,243,239,0.5);
}
.footer-legal a:hover { color: var(--blood); }
.footer-bottom {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(245,243,239,0.5);
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-signup-form { flex-direction: column; }
}

/* ============================================================
   PÁGINAS DE CONTENIDO (about, faq, terms, etc.)
   ============================================================ */
.page-content {
  padding: var(--section-pad) 0;
  min-height: 60vh;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(245,243,239,0.15);
  padding-bottom: 1.5rem;
}
.page-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 70ch;
  color: rgba(245,243,239,0.85);
}
.page-body p { margin-bottom: 1.2rem; }
.page-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  color: var(--blood);
}
.page-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-body a:hover { color: var(--blood); }

@media (max-width: 640px) {
  .page-content {
    padding: calc(var(--section-pad) + 2rem) 0 var(--section-pad);
  }
  .page-title {
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
  }
  .page-body {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

/* ============================================================
   404
   ============================================================ */
.error-404 {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}
.error-404::before {
  content: '404';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(12rem, 40vw, 28rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,243,239,0.06);
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
}
.error-404-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.error-404-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--blood);
  margin-bottom: 1.2rem;
}
.error-404-title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin-bottom: 1.2rem;
}
.error-404-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(245,243,239,0.7);
  max-width: 42ch;
  margin: 0 auto 2.2rem;
}

@media (max-width: 640px) {
  .error-404 { min-height: 70vh; padding: 0 1.5rem; }
  .error-404::before { -webkit-text-stroke: 0.6px rgba(245,243,239,0.08); }
  .error-404-text { font-size: 0.9rem; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-content { text-align: center; }
.preloader-logo {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  color: var(--bone);
  margin-bottom: 1.4rem;
  animation: preloader-pulse 1.6s ease-in-out infinite;
}
.preloader-bar {
  width: 160px;
  height: 2px;
  background: rgba(245,243,239,0.15);
  margin-inline: auto;
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--blood);
  box-shadow: 0 0 12px rgba(177,15,28,0.6);
  transition: width 0.3s ease;
}
@keyframes preloader-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   REVEAL AL SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESERVADO — carrusel de tarjeta destacada (no usado por ahora)
   Se quitó del HTML del Shop Grid, pero se deja el CSS listo
   por si se retoma más adelante.
   ============================================================ */
.product-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}
.product-carousel-slide.is-active {
  opacity: 1;
  z-index: 2;
}
.product-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.product-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(245,243,239,0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.product-carousel-dot.is-active {
  background: var(--blood);
  transform: scale(1.3);
}
