/* =========================================================
   0 responsables — Landing / disclaimer previo al webdoc
   Hoja de estilos del overlay de entrada
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Source+Sans+3:wght@400;600&display=swap');

:root {
  --amarillo: #f3c200;
  --amarillo-claro: #ffd633;
  --negro: #0c0c0d;
  --panel: #15161a;
  --panel-2: #1c1d22;
  --texto: #d2d5da;
  --texto-tenue: #93969c;
  --linea: rgba(255, 255, 255, 0.10);
}

/* Overlay a pantalla completa, con scroll propio */
#dl-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(243, 194, 0, 0.06), transparent 60%),
    var(--negro);
  -webkit-overflow-scrolling: touch;
  padding: 6vh 20px 8vh;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  animation: dl-fade 0.6s ease both;
}

@keyframes dl-fade { from { opacity: 0; } to { opacity: 1; } }

/* Caja central */
#dl-box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  border-top: 4px solid var(--amarillo);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: clamp(28px, 5vw, 56px);
}

/* Cabecera */
#dl-head { text-align: center; margin-bottom: 34px; }

.dl-kicker {
  display: inline-block;
  background: var(--amarillo);
  color: #111;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 2px;
}

.dl-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 18px 0 10px;
  text-transform: lowercase;
}
.dl-title .dl-zero { color: var(--amarillo); }

.dl-sub {
  color: var(--texto-tenue);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  margin: 0;
}

/* Bloques de texto */
.dl-text { margin: 0 auto; max-width: 60ch; }
.dl-text p {
  color: var(--texto);
  line-height: 1.75;
  font-size: 1.04rem;
  margin: 0 0 16px;
}
.dl-text strong { color: #fff; font-weight: 600; }

.dl-text h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  font-size: 1.16rem;
  margin: 0 0 16px;
  padding-top: 28px;
}
.dl-text h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--amarillo);
  margin-bottom: 16px;
}

/* Separadores entre secciones */
.dl-epilogue, .dl-docs { border-top: 1px solid var(--linea); margin-top: 34px; }

/* Vídeo 16:9 */
.dl-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin: 34px 0 12px;
  background: #000;
  border-radius: 3px;
  overflow: hidden;
}
.dl-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.dl-caption {
  text-align: center;
  color: var(--texto-tenue);
  font-style: italic;
  font-size: 0.92rem;
  margin: 0 0 6px;
}

/* Enlace a documento (PDF) */
.dl-doclink {
  display: inline-block;
  margin-top: 8px;
  color: var(--amarillo);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  padding: 11px 18px;
  border: 1px solid rgba(243, 194, 0, 0.5);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dl-doclink:hover,
.dl-doclink:focus-visible {
  background: var(--amarillo);
  color: #111;
  border-color: var(--amarillo);
}

/* Botón de entrada */
#dl-enter {
  display: block;
  width: 100%;
  margin-top: 44px;
  padding: 18px 24px;
  background: var(--amarillo);
  color: #111;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.05rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
#dl-enter:hover { background: var(--amarillo-claro); transform: translateY(-2px); }
#dl-enter:active { transform: translateY(0); }
#dl-enter:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Móvil */
@media (max-width: 540px) {
  #dl-overlay { padding: 3vh 12px 6vh; }
  .dl-text p { font-size: 1rem; }
}

/* --- integración con revival.js (cierre con fundido) --- */
#dl-overlay { transition: opacity 0.5s ease; }
#dl-overlay.dl-hide { opacity: 0; pointer-events: none; }

/* enlace dentro del texto (p. ej. Barret → barret.coop) */
.dl-text a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 194, 0, 0.55);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.dl-text a:hover { color: var(--amarillo); border-bottom-color: var(--amarillo); }

/* --- tres columnas (textos legibles sin scroll); botón y vídeo debajo --- */
#dl-box { max-width: 1160px; }
.dl-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 6px;
}
.dl-columns .dl-text { max-width: none; margin: 0; }
.dl-columns .dl-col h2 { padding-top: 0; margin-top: 0; }
/* anular separadores pensados para apilado vertical */
.dl-columns .dl-epilogue,
.dl-columns .dl-docs { border-top: 0; margin-top: 0; }
.dl-columns .dl-col p { font-size: 0.98rem; line-height: 1.66; }

.dl-footer { max-width: 760px; margin: 30px auto 0; }
.dl-footer #dl-enter { margin-top: 8px; }
.dl-footer .dl-video { margin: 30px 0 12px; }

/* En pantallas estrechas, vuelven a apilarse */
@media (max-width: 900px) {
  #dl-box { max-width: 760px; }
  .dl-columns { grid-template-columns: 1fr; gap: 6px; }
  .dl-columns .dl-epilogue,
  .dl-columns .dl-docs { border-top: 1px solid var(--linea); margin-top: 28px; padding-top: 4px; }
}
