/* ================== VARIABLES PRINCIPALES ================== */
:root{
  /* ---- márgenes guía ---- */
  --outer-left:  clamp(48px, 6.5vw, 120px);
  --rail-right:  clamp(24px, 5vw, 80px);
  --grid-left:   clamp(120px, 11vw, 220px);
  --covers-top:  clamp(-40px, -3vh, -20px); /* posición del grid respecto al header */

  /* ---- color y tipografías ---- */
  --fg:#111;
  --bg:#fff;
  --hover:#674840;

  /* ---- proporciones / tamaños ---- */
  --brand-gap: clamp(160px, 20vw, 280px);
  --logo-h: clamp(60px, 10vw, 120px);
  --tagline-w: clamp(300px, 30vw, 520px);
  --tab-size: clamp(24px, 2.4vw, 40px);
  --menu-vertical-size: var(--tab-size);
  --thumb: clamp(200px, 18vw, 250px);   /* tamaño base escritorio */
  --grid-gap: clamp(40px, 4.5vw, 80px); /* separación base escritorio */
  --caption-size: clamp(12px, 1vw, 14px);

  /* ---- espaciados header ---- */
  --header-pad-top: clamp(8px, 1.2vw, 18px);
  --tabs-gap-top: clamp(28px, 4vh, 60px);
}

/* ================== RESET ================== */
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--fg);
  background:var(--bg);
  font:16px/1.45 Helvetica,Arial,sans-serif;
  overflow:hidden; /* solo hace scroll el panel de portadas */
}

/* ================== CABECERA FIJA (GRID) ================== */
.fixed-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: var(--header-pad-top) var(--rail-right) 0 var(--outer-left);
  background: var(--bg);
  display: grid;
  grid-template-columns: auto minmax(var(--tagline-w), 1fr);
  column-gap: var(--brand-gap);
  align-items: start;
}
.brand-row{ display: contents !important; }

/* ===== LOGOTIPO ===== */
.logo{
  grid-column: 1;
  height: var(--logo-h);
  width: auto;
  display: block;
}

/* ===== FRASE DERECHA (ATELIER...) ===== */
.tagline{
  grid-column: 2;
  margin: 0;
  font-family: Impact, Helvetica, Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.02;
  font-size: clamp(22px, 2.6vw, 46px);
  text-align: left;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ===== MENÚ SUPERIOR (desktop/tablet horizontal) ===== */
.tabs{
  grid-column: 1;
  margin-top: var(--tabs-gap-top);
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.tab{
  text-decoration: none;
  color: var(--fg);
  font-family: Impact, Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: var(--tab-size);
  letter-spacing: 1px;
  transition: color .2s;
  white-space: nowrap;
}
.tab:hover{ color: var(--hover); }
.tab.is-active{ color: var(--hover); }

/* ===== Hamburguesa: OCULTA por defecto ===== */
.hamburger{ display:none; }

/* ================== PANEL DE PORTADAS ================== */
.covers-pane{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: calc(
    var(--logo-h)
    + var(--header-pad-top)
    + var(--brand-gap)
    + clamp(10px, 1vh, 20px)
    + var(--covers-top)
  );
  overflow: auto;
  padding-right: calc(var(--rail-right) + 8px);
}

.covers-grid{
  display: grid;
  grid-template-columns: repeat(3, var(--thumb));
  gap: var(--grid-gap);
  justify-content: start;
  margin-left: var(--grid-left);
  margin-right: calc(var(--rail-right) + var(--tagline-w));
}

.cover{ margin:0; }
.cover img{
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
  border: none;
}
.cover img:hover{ transform: scale(1.05); }

/* ================== MENÚ INFERIOR DERECHA ================== */
.edge-right{
  position: fixed;
  z-index: 11;
  right: var(--rail-right);
  bottom: var(--rail-right);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.edge-right a{
  text-decoration: none;
  color: var(--fg);
  font-family: Impact, Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: var(--menu-vertical-size);
  letter-spacing: 1.5px;
  transition: color .2s;
  text-align: right;
}
.edge-right a:hover{ color: var(--hover); }

/* ================== RESPONSIVE ================== */
@media (min-width: 760px) and (max-width: 1100px) and (orientation: landscape){
  .fixed-header{ grid-template-columns: auto 1fr; }
  .tagline{
    font-size: clamp(18px, 2.2vw, 32px);
    line-height: 1.06;
  }
  .covers-grid{ grid-template-columns: repeat(2, var(--thumb)); }
}

/* ===== SOLO MÓVIL (≤ 759.98px) ===== */
@media (max-width: 759.98px){
  :root{
    --outer-left: clamp(20px, 6vw, 40px);
    --rail-right: clamp(20px, 6vw, 40px);
    --grid-left: clamp(20px, 6vw, 40px);
    --covers-top: clamp(16px, 4vh, 36px);
    --tagline-w: min(80vw, 420px);
    --logo-h: clamp(40px, 8vw, 70px);
  }

  .fixed-header{ grid-template-columns: 1fr; }
  .tagline{
    grid-column: 1;
    margin-top: 10px;
    max-width: min(88vw, 520px);
    font-size: clamp(18px, 4.5vw, 28px);
  }

  .tabs{ display:none; }
  .edge-right{ display:none; }
  .hamburger{
    display: inline-flex;
    position: absolute;
    right: var(--rail-right);
    top: calc(var(--header-pad-top) + 8px);
    z-index: 50;
  }
  .hamburger > summary{
    list-style:none; width: 36px; height: 26px;
    cursor:pointer; position:relative; outline: none;
  }
  .hamburger > summary::-webkit-details-marker{ display:none; }
  .hamburger > summary::before{
    content:""; position:absolute; left:0; right:0; top:50%;
    height:2px; background:#111; transform:translateY(-50%);
    box-shadow: 0 -8px 0 0 #111, 0 8px 0 0 #111;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
  }
  .hamburger[open] > summary::before{
    background:#674840;
    box-shadow: 0 -8px 0 0 #674840, 0 8px 0 0 #674840;
    transform: translateY(-50%) scale(1.06);
  }
  .hamburger-menu{
    position:absolute; top: calc(100% + 10px); right: 0;
    background:#fff; border:2px solid #111; padding: 12px;
    min-width: 220px; display:flex; flex-direction:column; gap:10px;
    box-shadow: 0 10px 24px rgba(0,0,0,.08); z-index: 60;
  }
  .hamburger-menu a{
    font-family: Impact, Helvetica, Arial, sans-serif;
    font-weight: 900; text-decoration: none; text-transform: uppercase;
    letter-spacing: 1.5px; color:#111;
    font-size: clamp(16px, 4.2vw, 20px); line-height:1;
    transition: color .2s ease;
  }
  .hamburger-menu a:hover{ color:#674840; }
  .hamburger-menu .tab-link.is-active{ color:#674840; }
  .hamburger-menu hr{ border:0; height:2px; background:#111; margin:6px 0; }

  .covers-grid{
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(48px, 8vw, 72px);
    max-width: 520px;
    margin: 0 auto;
  }
  .cover img{
    width: 85%;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ===== SOLO TABLET VERTICAL ===== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait){
  .tabs, .edge-right { display: none !important; }
  .hamburger { 
    display: inline-flex !important;
    position: absolute;
    right: var(--rail-right);
    top: calc(var(--header-pad-top) + 8px);
    z-index: 50;
  }
  .covers-pane { padding-right: var(--rail-right) !important; }

  .covers-grid{
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: clamp(56px, 7vw, 96px) !important;
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .cover img{
    width: 96% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
  }
}

/* ================== CURSOR PERSONALIZADO ================== */
html.use-custom-cursor,
html.use-custom-cursor * {
  cursor: none !important;
}
.cursor-dot{
  position: fixed;
  top: 0; left: 0;
  z-index: 99999;
  width: 18px; height: 18px;
  margin-left: -9px; margin-top: -9px;
  border-radius: 50%;
  pointer-events: none;
  background: #000;
  box-shadow: none;
  opacity: 0;
  transform: translate3d(-100vw,-100vh,0);
  transition: opacity 0.08s linear;
}

/* ================== PANEL DE DETALLE (overlay sin tarjeta) ================== */
.detail{
  position: fixed; 
  inset: 0;
  display: grid; 
  place-items: center;
  background: rgba(255,255,255,.2); /* más transparente */
  backdrop-filter: blur(4px);
  z-index: 1000;
}
.detail[hidden]{ display:none; }

.detail-close{
  position: absolute;
  top: clamp(10px, 3vh, 24px);
  right: clamp(10px, 3vw, 28px);
  background: transparent;
  border: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  cursor: pointer;
}
html.use-custom-cursor .detail-close{ cursor: none !important; }

.detail-inner{
  display: grid;
  grid-template-columns: minmax(260px, 40vw) 1fr;
  align-items: start;
  gap: clamp(18px, 4vw, 48px);
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.detail-media img{
  width: 100%; height: auto; display: block;
  aspect-ratio: 1/1; object-fit: cover;
}

/* ===== Botón Cerrar: reposicionado para móvil ===== */
.detail-close{
  position: fixed; /* antes era absolute */
  top: clamp(12px, 2vh, 20px);
  right: clamp(12px, 3vw, 22px);
  background: rgba(255,255,255,0.85); /* fondo blanco translúcido */
  border: none;
  border-radius: 50%;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  z-index: 1100;
}
.detail-close:hover{
  background: rgba(255,255,255,1);
}
html.use-custom-cursor .detail-close{ cursor: none !important; }

/* Móvil: más aire para que no toque la imagen */
@media (max-width: 759.98px){
  .detail-close{
    top: clamp(16px, 4vh, 28px);
    right: clamp(16px, 6vw, 28px);
    background: rgba(255,255,255,0.9);
    width: 44px;
    height: 44px;
    font-size: clamp(30px, 8vw, 44px);
  }
}

/* ===== Tipografía unificada para título y artista (jerarquía sutil por tracking y espaciado) ===== */
.detail-info h2,
.detail-artist{
  font-family: Impact, Helvetica, Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.02;
  font-size: clamp(16px, 2vw, 28px);
  margin: 0;
}

/* Título: compacto, contundente */
.detail-info h2{
  letter-spacing: 0em;
  margin-bottom: 4px;
}

/* Artista: un respiro + tracking mínimo para diferenciar */
.detail-artist{
  letter-spacing: 0.06em; /* antes 0 — ahora apenas más aireado */
  margin-bottom: 10px;    /* separa visualmente del bloque de créditos */
}

.detail-credits{
  margin: 4px 0 14px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: .02em;
  text-transform: none;
}

.detail-spotify{ margin-top: 8px; }

.show-detail .fixed-header,
.show-detail .edge-right,
.show-detail .covers-pane{
  filter: grayscale(1);
  opacity: .25;
  pointer-events: none;
}

/* Responsive del panel */
@media (max-width: 900px){
  .detail-inner{
    grid-template-columns: 1fr;
    width: min(92vw, 900px);
  }
}
/* ===== Cursor personalizado con hover blanco translúcido ===== */
html.use-custom-cursor,
html.use-custom-cursor * {
  cursor: none !important;
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  z-index: 99999;
  width: 18px; height: 18px;
  margin-left: -9px; margin-top: -9px;
  border-radius: 50%;
  pointer-events: none;
  background: #000;
  box-shadow: none;
  opacity: 0;
  transform: translate3d(-100vw,-100vh,0);
  transition: opacity 0.1s linear, transform 0.05s linear;
}

/* ===== Cursor personalizado ===== */
html.use-custom-cursor,
html.use-custom-cursor * { cursor: none !important; }

.cursor-dot{
  position: fixed;
  top: 0; left: 0;
  z-index: 99999;
  width: 18px; height: 18px;
  margin-left: -9px; margin-top: -9px;
  border-radius: 50%;
  pointer-events: none;          /* NO intercepta clics */
  background: #000;              /* estado normal: negro sólido */
  opacity: 1;
  transform: translate3d(-100vw,-100vh,0);
  /* movimiento instantáneo: SIN transición en transform */
  transition: opacity .06s linear;
  will-change: transform;        /* más fluido */
}

/* Estado “hover interactivo”: blanco translúcido y con blur del fondo */
.cursor-dot.is-hover{
  background: rgba(255,255,255,.25);  /* blanco translúcido */
  backdrop-filter: blur(0.5px);       /* se ve “blurry” lo de atrás */
}

/* Opcional: cuando presionas, pequeño feedback (sin delay) */
.cursor-dot.is-down{
  transform: scale(0.9) translate3d(var(--mx,0), var(--my,0), 0);
}
/* ===== Banner de Cookies (BELA TRANSA) ===== */
.cookie-banner{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.95);
  border-top: 2px solid #111;
  padding: clamp(12px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(13px, 2.5vw, 15px);
  color: #111;
  z-index: 99999;               /* por encima de overlays y paneles */
  transition: opacity .25s ease;
}
.cookie-banner a{
  color: #674840;
  font-weight: bold;
  text-decoration: none;
}
.cookie-banner a:hover{ text-decoration: underline; }

.cookie-buttons{
  display: flex;
  gap: 12px;
}
.cookie-buttons button{
  background: #111;
  color: #fff;
  border: none;
  font-family: Impact, Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background .2s ease;
}
.cookie-buttons button:hover{
  background: #674840;
}

/* ===== Footer legal (al final del scroll) ===== */
/* el panel scrollable necesita fondo y “aire” al final para que se vea el footer */
.covers-pane{
  /* ya tienes left/right/bottom/top */
  background: var(--bg);
  padding-bottom: clamp(80px, 12vh, 160px); /* espacio para que no quede pegado */
}

/* ===== Footer legal al final del scroll (dentro de .covers-pane) ===== */
.legal-footer {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  border-top: 2px solid #111;
  text-align: center;
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(12px, 2.2vw, 14px);
  color: #111;
  padding: clamp(20px, 4vw, 32px) clamp(16px, 5vw, 40px);
  z-index: 1;
  margin-top: clamp(60px, 12vh, 160px); /* separa del grid de portadas */
}

.legal-footer p {
  margin: 4px 0;
  line-height: 1.4;
}

.legal-footer a {
  color: #674840;
  text-decoration: none;
  font-weight: 600;
}
.legal-footer a:hover {
  text-decoration: underline;
}

.legal-footer .legal-links {
  font-size: clamp(11px, 2vw, 13px);
  color: #444;
  margin-top: 4px;
}
@media (hover: none) and (pointer: coarse) {
  .cursor-dot {
    display: none !important;
  }
  html {
    cursor: auto !important;
  }
}