:root {
  --bg: #ffffff;
  --ink: #000000;
  --accent: #263c71;              /* azul del logo, color de acento */
  --font-display: "Anton", "Helvetica Neue", Arial, sans-serif;     /* titulares */
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif; /* cuerpo */
  --logo-w: min(38vw, 320px);     /* tamaño del logo */
  --logo-h: min(14.5vw, 122px);   /* alto del logo (≈0.382·ancho) */
  --logo-top: clamp(18px, 4.5vh, 55px);
  --tiger-h: min(46vh, 470px);    /* alto de cada tigre */
  --tiger-gap: 1vw;               /* separación del borde lateral */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}

/* ---------- Cursor personalizado (tigre + flecha) ----------
   El hotspot (17, 72) está en la punta de la flecha, que
   marca el punto exacto de click. Sustituye al cursor del sistema. */
html { cursor: url("assets/cursor-cur.png") 17 72, auto; }
*, *::before, *::after { cursor: inherit; }

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

/* ---------- Loader inicial (pantalla de marca) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;                     /* por encima de todo (menú, carrito, checkout…) */
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: min(56vw, 280px);
}
.loader-logo {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  animation: loader-pulse 1.4s ease-in-out infinite;
}

/* Barra de progreso indeterminada en el azul de acento */
.loader-bar {
  position: relative;
  width: 100%;
  height: 2px;
  background: #e6e6e6;
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: var(--accent);
  animation: loader-slide 1.1s ease-in-out infinite;
}

@keyframes loader-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes loader-slide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}

@media (prefers-reduced-motion: reduce) {
  .loader-logo { animation: none; }
  .loader-bar::after { animation: none; width: 100%; }
}

/* ---------- Escenario / logo ---------- */
/* ---------- Sistema de secciones (una visible, sin scroll) ---------- */
.section {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  display: none;
  overflow: hidden;
}

.section.active { display: block; }

/* Inicio: hero + tigres (el logo es el header fijo global) */
#inicio.section.active { display: block; }

/* Secciones placeholder centradas */
.section--placeholder.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder { text-align: center; }
.placeholder h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.3em;
}
.placeholder p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: #888;
}

.brand {
  position: fixed;
  top: var(--logo-top);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  line-height: 0;
  text-decoration: none;
}

.logo {
  position: relative;
  display: inline-block;
  width: var(--logo-w);
  line-height: 0;
}

.logo-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Versión azul superpuesta: aparece con un fundido al pasar el cursor */
.logo-img--blue {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.logo:hover .logo-img--blue { opacity: 1; }

/* ---------- Hero (video central) ---------- */
.hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(42vh, 44vw, 480px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  z-index: 6;                       /* la bola de papel va por encima de los tigres (z-index 5) */
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* fondo casi blanco del video -> se funde con la página */
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero video.active { opacity: 1; }

/* ---------- Tigres en las esquinas inferiores ---------- */
.tigers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.tiger {
  position: absolute;
  bottom: 0;
  height: var(--tiger-h);
  width: auto;
  /* El video sale con fondo blanco: 'multiply' deja sólo la tinta negra */
  mix-blend-mode: multiply;
  display: block;
}

/* En el video el tigre mira a la IZQUIERDA */
.tiger--right { right: var(--tiger-gap); }          /* tal cual: mira al centro */
.tiger--left  { left:  var(--tiger-gap); transform: scaleX(-1); } /* espejo: mira al centro */

@media (max-width: 640px) {
  :root { --tiger-h: 34vh; --logo-w: 72vw; --logo-h: 27.5vw; }
}

/* ---------- Botón de menú (esquina superior derecha) ---------- */
.nav-toggle {
  position: fixed;
  top: clamp(20px, 3vh, 34px);
  right: clamp(20px, 3vw, 40px);
  z-index: 50;
  width: 38px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover span { background: var(--accent); }

/* Botón en estado abierto: se convierte en una X */
body.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(11.5px) rotate(45deg);
}
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-11.5px) rotate(-45deg);
}

/* ---------- Overlay del menú ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.menu-open .menu { opacity: 1; visibility: visible; }

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.menu li { margin: clamp(8px, 1.6vh, 18px) 0; }

.menu a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
  /* arranca desplazado y sube al abrir el menú */
  opacity: 0;
  transform: translateY(14px);
}

.menu a:hover { color: var(--accent); }

body.menu-open .menu a {
  opacity: 1;
  transform: none;
  transition: color 0.2s ease, opacity 0.4s ease, transform 0.4s ease;
}
/* entrada escalonada de los enlaces */
body.menu-open .menu li:nth-child(1) a { transition-delay: 0.06s; }
body.menu-open .menu li:nth-child(2) a { transition-delay: 0.12s; }
body.menu-open .menu li:nth-child(3) a { transition-delay: 0.18s; }
body.menu-open .menu li:nth-child(4) a { transition-delay: 0.24s; }
body.menu-open .menu li:nth-child(5) a { transition-delay: 0.30s; }

/* ---------- Sección Contacto ---------- */
#contacto.section.active {
  display: flex;
}

.contact-media {
  flex: 0 0 42%;
  height: 100%;
  overflow: hidden;
}
.contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.contact-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 72px);
}

.contact-inner {
  width: 100%;
  max-width: 460px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.25em;
}
.contact-sub {
  margin: 0 0 2rem;
  color: #777;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-form .field { margin-bottom: 1.25rem; }

.contact-form label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #444;
  margin-bottom: 0.45rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid #d6d6d6;
  padding: 0.5rem 0;
  font: inherit;
  color: var(--ink);
  cursor: inherit;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.contact-form .field.invalid input,
.contact-form .field.invalid textarea {
  border-bottom-color: #c0392b;
}

.contact-form .error {
  display: block;
  min-height: 1em;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #c0392b;
}

.contact-submit {
  margin-top: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--ink);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: inherit;
  transition: background 0.2s ease;
}
.contact-submit:hover { background: var(--accent); }
.contact-submit:disabled { opacity: 0.5; }

.form-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.ok { color: var(--accent); font-weight: 700; }
.form-status.err { color: #c0392b; }

/* Contacto en móvil: la foto pasa a fondo tenue y el formulario encima */
@media (max-width: 820px) {
  .contact-media {
    position: absolute;
    inset: 0;
    flex: none;
    opacity: 0.16;
  }
  .contact-panel {
    position: relative;
    z-index: 1;
    width: 100%;
  }
}

/* ---------- Sección Galería (mosaico + lightbox) ---------- */
#galeria.section { overflow-y: auto; -webkit-overflow-scrolling: touch; }

.gallery-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  /* alto = tope del logo + alto del logo + margen, para que el logo fijo
     quede SIEMPRE dentro de la franja blanca (no depende de la ventana) */
  min-height: calc(var(--logo-top) + var(--logo-h) + 1.6rem);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  padding: 0 clamp(16px, 4vw, 48px) 0.7rem;
}
.gallery-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery {
  columns: 4;
  column-gap: 14px;
  padding: 0.6rem clamp(16px, 4vw, 48px) clamp(24px, 6vh, 64px);
}
@media (max-width: 1100px) { .gallery { columns: 3; } }
@media (max-width: 720px)  { .gallery { columns: 2; } }
@media (max-width: 420px)  { .gallery { columns: 1; } }

.g-item {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  cursor: inherit;
  break-inside: avoid;
  overflow: hidden;
}
.g-item img {
  width: 100%;
  display: block;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.35s ease, transform 0.45s ease;
}
.g-item:hover img,
.g-item:focus-visible img {
  filter: grayscale(0);
  transform: scale(1.04);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lb-img {
  max-width: 86vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
}

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: inherit;
  line-height: 1;
  transition: color 0.2s ease;
}
.lightbox button:hover { color: var(--accent); }
.lb-close { top: 24px; right: 30px; font-size: 2.6rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 4rem; padding: 0 1rem; }
.lb-prev { left: 1vw; }
.lb-next { right: 1vw; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { font-size: 2.6rem; }
}

/* ---------- Sección Música (muro de lanzamientos) ---------- */
/* Filas equilibradas que rellenan TODO el alto del viewport sin huecos,
   sea cual sea el nº de canciones (script.js reparte las tarjetas por filas). */
#musica.section.active {
  display: flex;
  flex-direction: column;
}

.releases {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 16px);
  padding: 0 clamp(16px, 4vw, 48px) clamp(16px, 4vw, 48px);
}
.releases-row {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: clamp(8px, 1vw, 16px);
}
.releases-row .release { flex: 1; min-width: 0; }

@media (max-width: 560px) {
  #musica.section { overflow-y: auto; }
  .releases { display: block; }
  .releases-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
  .releases-row .release { aspect-ratio: 4 / 5; }
}

.release {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: #fff;
  cursor: inherit;
  background: #111;
}

.release-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.4s ease, transform 0.6s ease;
}
.release:hover .release-img,
.release:focus-visible .release-img {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* Degradado inferior para que el título se lea siempre */
.release::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 48%);
  transition: background 0.3s ease;
}
.release:hover::after,
.release:focus-visible::after {
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 100%);
}

.release-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.release:hover .release-play,
.release:focus-visible .release-play { opacity: 1; transform: scale(1); }

.release-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(12px, 1.5vw, 24px);
}
.release-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.6rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
}
.release-sub {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 560px) {
  .releases { grid-template-columns: repeat(var(--cols-mobile, 1), 1fr); }
}

/* ---------- Sección Merch (productos centrados, foto completa) ---------- */
#merch.section.active {
  display: flex;
  flex-direction: column;
}

.merch {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 80px);
  padding: 0 clamp(16px, 4vw, 48px) clamp(14px, 3vh, 28px);
}

/* Puntos del carrusel: ocultos en escritorio (solo se muestran en móvil). */
.merch-dots { display: none; }

.product {
  flex: 0 1 auto;
  max-width: 46vw;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Foto completa (sin recortes), centrada sobre el blanco */
.product-img {
  display: block;
  max-width: 100%;
  max-height: min(56vh, 540px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.4s ease, transform 0.5s ease;
}
.product:hover .product-img,
.product:focus-within .product-img {
  filter: grayscale(0);
  transform: scale(1.03);
}

.product-info {
  margin-top: clamp(8px, 1.6vh, 18px);
  color: var(--ink);
}
.product-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 2.2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}
.product-price {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #777;
}

/* Detalle (tallas + comprar) que aparece al pasar el cursor */
.product-detail {
  margin-top: clamp(8px, 1.4vh, 16px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}
.product:hover .product-detail,
.product:focus-within .product-detail {
  max-height: 120px;
  opacity: 1;
}

.sizes { display: flex; gap: 6px; }
.size {
  min-width: 34px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.size:hover { border-color: var(--ink); }
.size.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.product-buy {
  padding: 9px 20px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: inherit;
  transition: background 0.2s ease;
}
.product-buy:hover { background: var(--accent); }

/* Móvil: productos apilados con scroll interno y detalle siempre visible */
@media (max-width: 720px) {
  #merch.section { overflow-y: auto; }
  .merch { flex-direction: column; }
  .product { max-width: 86vw; }
  .product-img { max-height: 52vh; }
  .product-detail { max-height: 120px; opacity: 1; }
}

/* ---------- Detalle de producto (PDP) ---------- */
.product { cursor: inherit; }   /* la tarjeta del grid es clicable */

.pdp {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--bg);
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pdp.open { opacity: 1; visibility: visible; }

.pdp-close {
  position: absolute;
  top: clamp(18px, 3vh, 30px);
  left: clamp(16px, 3vw, 40px);
  z-index: 3;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: inherit;
  transition: color 0.2s ease;
}
.pdp-close:hover { color: var(--accent); }

/* Galería (izquierda) */
.pdp-gallery {
  flex: 1 1 56%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(60px, 8vh, 90px) clamp(16px, 3vw, 40px) clamp(20px, 4vh, 40px);
  background: #fff;
}
.pdp-main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.pdp-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.pdp-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.pdp-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid #ddd;
  background: none;
  overflow: hidden;
  cursor: inherit;
  transition: border-color 0.2s ease;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb.active { border-color: var(--ink); }

/* Info (derecha) */
.pdp-info {
  flex: 1 1 44%;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
  border-left: 1px solid #eee;
}
.pdp-inner { width: 100%; max-width: 440px; }

.pdp-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}
.pdp-price {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.pdp-desc {
  margin: 1.4rem 0 1.8rem;
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}
.pdp-sizes-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 0.6rem;
}
.pdp-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-size {
  min-width: 44px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pdp-size:hover { border-color: var(--ink); }
.pdp-size.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.pdp-order {
  margin-top: 1.8rem;
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: inherit;
  transition: background 0.2s ease;
}
.pdp-order:hover { background: var(--accent); }
.pdp-status { margin: 0.9rem 0 0; min-height: 1.2em; font-size: 0.9rem; }
.pdp-status.ok { color: var(--accent); font-weight: 700; }
.pdp-status.warn { color: #c0392b; }

@media (max-width: 820px) {
  .pdp { flex-direction: column; overflow-y: auto; }
  .pdp-gallery { flex: none; }
  .pdp-info { flex: none; border-left: 0; border-top: 1px solid #eee; justify-content: center; }
  .pdp-main { height: 56vh; }
}

/* ---------- CTA "Nuevo merch" (Inicio) ---------- */
.merch-cta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(64px, 15vh, 140px);
  z-index: 6;                       /* clicable por encima de los tigres */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.72rem, 1.4vw, 0.86rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.merch-cta:hover { background: var(--accent); transform: translateX(-50%) scale(1.04); }

.merch-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: cta-blink 1.4s ease-in-out infinite;
}
@keyframes cta-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (prefers-reduced-motion: reduce) {
  .merch-cta-dot { animation: none; }
}

/* ---------- Aviso de pago (vuelta de Stripe) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  z-index: 70;
  max-width: 90vw;
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast--ok { background: var(--accent); }
.toast--warn { background: #c0392b; }

/* ============================================================
   CARRITO — botón flotante + panel lateral
   ============================================================ */

/* Botón flotante (esquina inferior derecha) */
.cart-fab {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vh, 34px);
  z-index: 45;                      /* bajo el overlay del menú (40 bg / 50 botón) */
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: inherit;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}
.cart-fab:hover { background: var(--accent); transform: scale(1.05); }
.cart-fab-icon { display: block; }

/* Ocúltalo mientras el menú a pantalla completa está abierto */
body.menu-open .cart-fab { opacity: 0; visibility: hidden; }

/* El carrito (botón, panel, fondo y checkout) SOLO existe en la sección Merch,
   tanto en móvil como en escritorio. `data-section` lo fija script.js al enrutar;
   antes de que corra el JS no hay atributo -> el carrito queda oculto por defecto. */
body:not([data-section="merch"]) .cart-fab,
body:not([data-section="merch"]) .cart,
body:not([data-section="merch"]) .cart-backdrop,
body:not([data-section="merch"]) .checkout {
  display: none !important;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* Fondo oscuro tras el panel */
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 64;
  background: rgba(0, 0, 0, 0.42);
  animation: cart-fade 0.25s ease;
}
@keyframes cart-fade { from { opacity: 0; } to { opacity: 1; } }

/* Panel lateral */
.cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 66;
  width: min(400px, 90vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid #eee;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 3vh, 26px) clamp(18px, 4vw, 28px);
  border-bottom: 1px solid #eee;
}
.cart-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cart-close {
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  padding: 0 4px;
  cursor: inherit;
  transition: color 0.2s ease;
}
.cart-close:hover { color: var(--accent); }

.cart-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(12px, 2vw, 20px);
}
.cart-empty {
  margin: 2rem 0;
  text-align: center;
  color: #999;
  font-size: 0.92rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 4px;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #f6f6f6;
  filter: grayscale(1) contrast(1.02);
}
.cart-item-info { min-width: 0; }
.cart-item-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}
.cart-item-size {
  margin-top: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}
.cart-item-price {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #555;
}

/* Selector de cantidad − N + */
.qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  border: 1px solid #ddd;
}
.qty-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.qty-btn:hover { background: var(--ink); color: #fff; }
.qty-num {
  min-width: 26px;
  text-align: center;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.cart-item-remove {
  align-self: start;
  background: none;
  border: 0;
  color: #bbb;
  font-size: 1.3rem;
  line-height: 1;
  padding: 2px 4px;
  cursor: inherit;
  transition: color 0.2s ease;
}
.cart-item-remove:hover { color: #c0392b; }

.cart-foot {
  border-top: 1px solid #eee;
  padding: clamp(16px, 3vw, 24px);
}
.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
}
.cart-total {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.cart-pay {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: inherit;
  transition: background 0.2s ease;
}
.cart-pay:hover { background: var(--accent); }
.cart-pay:disabled { opacity: 0.4; }

/* ============================================================
   PASO DE ENVÍO — modal previo a Stripe
   ============================================================ */
.checkout {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.checkout.open { opacity: 1; visibility: visible; }

.checkout-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(14px);
  transition: transform 0.28s ease;
}
.checkout.open .checkout-box { transform: none; }

.checkout-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
  cursor: inherit;
  transition: color 0.2s ease;
}
.checkout-close:hover { color: var(--accent); }

.checkout-title {
  margin: 0 0 0.2em;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.checkout-sub {
  margin: 0 0 1.6rem;
  color: #777;
  font-size: 0.92rem;
}

/* Opción de envío (radio grande, tipo tarjeta) */
.ship-opt {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  cursor: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ship-opt:hover { border-color: #bbb; }
.ship-opt input { margin: 0; accent-color: var(--accent); cursor: inherit; }
.ship-opt:has(input:checked) { border-color: var(--ink); background: #fafafa; }

.ship-opt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.ship-opt-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ship-opt-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  white-space: nowrap;
}
.ship-opt-desc {
  grid-column: 2;
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #777;
}

/* Campos que aparecen según la opción elegida */
.ship-fields {
  padding: 6px 2px 10px;
  margin-bottom: 6px;
}
.ship-fields .field { margin-bottom: 1rem; }
.ship-fields .field:last-child { margin-bottom: 0; }
.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 420px) {
  .checkout-row { grid-template-columns: 1fr; }
}

/* Campos del checkout: mismo estilo que el formulario de contacto */
.checkout-form label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #444;
  margin-bottom: 0.4rem;
}
.checkout-form .field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid #d6d6d6;
  padding: 0.5rem 0;
  font: inherit;
  color: var(--ink);
  cursor: inherit;
  transition: border-color 0.2s ease;
}
.checkout-form .field input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.checkout-form .field.invalid input { border-bottom-color: #c0392b; }
.checkout-form .error {
  display: block;
  min-height: 1em;
  margin-top: 0.3rem;
  font-size: 0.74rem;
  color: #c0392b;
}

.checkout-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 1.4rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
}
.checkout-total {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.checkout-pay {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: inherit;
  transition: background 0.2s ease;
}
.checkout-pay:hover { background: var(--accent); }
.checkout-pay:disabled { opacity: 0.5; }
.checkout-status { margin: 0.9rem 0 0; min-height: 1.2em; font-size: 0.9rem; }
.checkout-status.ok { color: var(--accent); font-weight: 700; }
.checkout-status.warn { color: #c0392b; }

/* ============================================================
   MÓVIL (≤768px) — ajustes de layout
   Va al final para ganar en la cascada a los @media anteriores.
   Corrige: 1) Inicio (hero + CTA)  2) Merch (carrusel deslizable)
            3) Música (lista legible)  4) Separación logo/título.
   ============================================================ */
@media (max-width: 768px) {

  /* ---- Logo más contenido y su hueco reservado (punto 4) ---- */
  :root {
    --logo-w: 62vw;                 /* antes 72vw: deja aire bajo el logo */
    --logo-h: 24vw;                 /* alto real aprox. (0.382 · ancho) */
    --logo-top: clamp(14px, 3vh, 28px);
  }

  /* La franja del título reserva SIEMPRE el alto del logo + un margen
     amplio, para que el logo fijo nunca tape "Merch/Música/Galería". */
  .gallery-head {
    min-height: calc(var(--logo-top) + var(--logo-h) + 2.6rem);
    padding-top: 0.6rem;
  }
  .gallery-head h1 { font-size: clamp(2rem, 8vw, 3rem); }

  /* ---- 1) INICIO: bola de papel un poco por encima del centro ---- */
  .hero {
    top: 42%;                       /* algo más arriba del centro en móvil */
    width: min(58vw, 42vh);
  }

  /* ---- 1) INICIO: se retira el CTA "Nuevo merch" en móvil ---- */
  .merch-cta { display: none; }

  /* ---- 2) MERCH: carrusel horizontal con la 2ª camiseta asomando ---- */
  #merch.section { overflow: hidden; }        /* solo desliza el carrusel */
  .merch {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 4vw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;                     /* Firefox: sin barra */
  }
  .merch::-webkit-scrollbar { display: none; } /* WebKit: sin barra */

  .product {
    flex: 0 0 84%;                  /* <100% -> la siguiente camiseta asoma */
    max-width: 84%;
    height: 100%;
    justify-content: center;
    padding: 0 3vw;
    scroll-snap-align: center;      /* encaja centrada al deslizar */
  }
  /* Imagen contenida: nunca se corta la primera (ni ninguna) camiseta */
  .product-img {
    max-height: 44vh;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(0) contrast(1.02);   /* a color, sin depender de hover */
  }
  .product-info { margin-top: clamp(10px, 2vh, 18px); }

  /* Puntos de paginación bajo el carrusel: indican cuántas camisetas hay
     y en cuál estás, dejando claro que se puede deslizar. */
  .merch-dots {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    gap: 9px;
    padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .merch-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cfcfcf;
    cursor: inherit;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .merch-dot.active { background: var(--ink); transform: scale(1.3); }

  /* ---- 3) MÚSICA: lista vertical clara y espaciada ---- */
  #musica.section { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  #musica.section.active { display: flex; flex-direction: column; }
  .releases {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;                 /* crece con el contenido (scroll natural) */
    gap: 12px;
    padding: 0.4rem clamp(16px, 4vw, 28px) clamp(28px, 7vh, 48px);
  }
  .releases-row { display: contents; } /* aplana las filas -> una sola columna */
  .release {
    width: 100%;
    aspect-ratio: 16 / 7;           /* banner horizontal, tipo lista */
    border-radius: 4px;
  }
  .release-img { filter: grayscale(0) contrast(1.02); } /* portadas a color */
  .release::after {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.05) 72%);
  }
  .release-play { display: none; }  /* sin hover en móvil */
  .release-info { padding: 14px 16px; }
  .release-title { font-size: 1.55rem; line-height: 1.05; }
  .release-sub {
    margin-top: 0.3rem;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.82);
  }

  /* ---- 4) CONTACTO: el título arranca por debajo del logo ---- */
  #contacto.section { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .contact-panel {
    align-items: flex-start;        /* no centrar en vertical */
    padding-top: calc(var(--logo-top) + var(--logo-h) + 2.2rem);
    padding-bottom: 2.4rem;
  }
}
