/* ================== VARIABLES PRINCIPALES ================== */
:root{
  /* guía y márgenes coherentes con MÚSICA */
  --outer-left:  clamp(48px, 6.5vw, 120px);
  --rail-right:  clamp(24px, 5vw, 80px);
  --grid-left:   clamp(120px, 11vw, 220px);
  --videos-top:  clamp(-40px, -3vh, -20px); /* posición de la lista respecto al header */

  --fg:#111;
  --bg:#fff;
  --hover:#674840;

  /* proporciones / tamaños (heredados del estilo música) */
  --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);

  /* dimensiones vídeo */
  --video-max-w: clamp(900px, 60vw, 1120px);
  --video-gap: clamp(60px, 10vh, 140px); /* separación grande: “uno por vista” */

  /* 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 vídeos */
}

/* ================== 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; }

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

.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 ===== */
.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; }

/* ================== PANE SCROLLABLE (VÍDEOS) ================== */
.videos-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(--videos-top)
  );
  overflow: auto;
  padding-right: calc(var(--rail-right) + 8px);
}

.videos-list{
  display: grid;
  gap: var(--video-gap);
  margin-left: var(--grid-left);
  margin-right: calc(var(--rail-right) + var(--tagline-w)); /* respeta el bloque derecho */
  padding-bottom: 10vh;
}

/* Cada ítem ocupa casi una “pantalla” */
.video-item{
  display: grid;
  justify-items: center;
}

/* Mantener 16:9, ocupar todo el ancho disponible */
.video-embed{
  position: relative;
  width: 100%;
  max-width: 1200px;   /* ajusta si quieres un tope */
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contenedor responsive 16:9 */
.video-wrap{
  width: 100%;
  max-width: var(--video-max-w);
  position: relative;
  overflow: hidden;
}
.ratio-16x9{ aspect-ratio: 16 / 9; }
.video-wrap iframe,
.video-wrap video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  border: 0;
  border-radius: 0; /* sin esquinas */
}

/* ================== 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 ================== */
/* Portátiles/tablet horizontal */
@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; }
  :root{
    --video-max-w: clamp(820px, 70vw, 1000px);
    --video-gap: clamp(56px, 9vh, 120px);
  }
}

/* ===== 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);
    --videos-top: clamp(16px, 4vh, 36px);
    --tagline-w: min(80vw, 420px);
    --video-max-w: min(92vw, 640px);
    --video-gap: clamp(40px, 8vh, 80px);
    --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);
  }

  /* hamburguesa SÍ; tabs/edge-right NO */
  .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; }

  /* centrar lista en móvil */
  .videos-list{
    margin-left: auto;
    margin-right: auto;
    max-width: 92vw;
  }
}

/* ===== SOLO TABLET VERTICAL (768–1024 px, portrait) ===== */
@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;
  }
  .videos-pane { padding-right: var(--rail-right) !important; }
  :root{
    --video-max-w: clamp(680px, 84vw, 900px);
    --video-gap: clamp(56px, 9vh, 100px);
  }
}

/* ================== CURSOR: negro sólido, instantáneo ================== */
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;
}
/* ===== 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;
}

/* Hover: blanco translúcido con blur suave */
/* ===== 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);
}

/* ===== 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;
  }
}
