/* ============================================================
   DJ NEO — One-page tipo diapositivas
   Negro / blanco. Cero border-radius. Scroll-snap por pantalla.
   ============================================================ */

:root {
  --black: #050505;
  --white: #f5f5f5;
  --gray-line: #262626;
  --gray-line-invert: #d4d4d4;
  --gray-muted: #8a8a8a;
  --pad: clamp(20px, 4vw, 64px);
  --header-h: 68px;
  --font-display: 'Anton', Impact, sans-serif;
  --font-body: 'Space Grotesk', Arial, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-x: clip;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* En pantallas bajas o móviles el contenido puede exceder 100svh:
   el snap pasa a proximity para no atrapar el scroll */
@media (max-width: 900px), (max-height: 640px) {
  html {
    scroll-snap-type: y proximity;
  }
}

::selection {
  background: var(--white);
  color: var(--black);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

section:focus,
section:focus-visible {
  outline: none;
}

/* ---------- Overlays ---------- */

.noise {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cursor cuadrado (solo desktop con mouse).
   JS solo actualiza --cx/--cy; el centrado vive aquí. */
.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 300;
    transform: translate(var(--cx, -100px), var(--cy, -100px)) translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
  }

  .cursor.is-hover {
    width: 40px;
    height: 40px;
  }
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: var(--pad);
  mix-blend-mode: difference;
  color: #fff;
}

/* Logo JPG con fondo negro: con blend difference el negro desaparece
   y el blanco se invierte sobre la diapositiva clara */
.header__logo img {
  height: 52px;
  width: auto;
}

.header__nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.header__nav a {
  position: relative;
  padding: 6px 2px;
}

.header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.header__nav a:hover::after,
.header__nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__cta {
  border: 1px solid #fff;
  padding: 10px 20px;
  transition: background 0.25s, color 0.25s;
}

.header__cta:hover {
  background: #fff;
  color: #000;
}

/* ---------- Indicador lateral ---------- */

.dots {
  position: fixed;
  right: calc(var(--pad) / 2);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
  mix-blend-mode: difference;
}

.dots__dot {
  width: 10px;
  height: 10px;
  border: 1px solid #fff;
  transition: background 0.25s, transform 0.25s;
}

.dots__dot.is-active {
  background: #fff;
  transform: rotate(45deg);
}

@media (max-width: 560px) {
  .dots {
    display: none;
  }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid currentColor;
  transition: background 0.25s, color 0.25s;
  text-align: center;
}

/* Anillo de foco interior: siempre contrasta con el relleno del botón */
.btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -6px;
}

.btn--solid {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn--solid:hover {
  background: transparent;
  color: var(--white);
}

.btn--full {
  width: 100%;
}

/* ---------- Diapositivas base ---------- */

.slide {
  position: relative;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 16px) var(--pad) 0;
  overflow: clip;
}

.slide--invert {
  background: var(--white);
  color: var(--black);
}

.slide__tag {
  color: var(--gray-muted);
  display: block;
}

.slide--invert .slide__tag {
  color: #666;
}

/* Revelado por diapositiva: los hijos entran escalonados al activarse */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: calc(var(--i, 0) * 90ms);
  }

  html.js .slide.in-view [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Slide 1 — Portada ---------- */

.cover {
  align-items: center;
  justify-content: center;
}

.cover__meta {
  position: absolute;
  top: calc(var(--header-h) + 10px);
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--gray-muted);
  border-top: 1px solid var(--gray-line);
  padding-top: 12px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .cover__meta span:nth-child(2) {
    display: none;
  }
}

.cover__frame {
  position: relative;
  border: 1px solid var(--gray-line);
  padding: clamp(28px, 5vh, 56px) clamp(28px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vh, 30px);
  margin-block: auto;
}

.cover__mark {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--white);
  line-height: 1;
}

.cover__mark--tl { top: -9px; left: -6px; }
.cover__mark--tr { top: -9px; right: -6px; }
.cover__mark--bl { bottom: -9px; left: -6px; }
.cover__mark--br { bottom: -9px; right: -6px; }

.cover__logo {
  width: clamp(240px, 34vw, 520px);
  height: auto;
}

.cover__slogan {
  color: var(--white);
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: 0.22em;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  width: 100%;
  max-width: 340px;
}

.equalizer span {
  flex: 1;
  height: 100%;
  background: var(--white);
  transform: scaleY(0.1);
  transform-origin: bottom;
  transition: transform 0.15s steps(3);
  will-change: transform;
}

.cover__hint {
  position: absolute;
  right: var(--pad);
  bottom: 84px;
  color: var(--gray-muted);
}

/* Marquee pegado al borde inferior de la portada */
.cover .marquee {
  align-self: stretch;
  margin-inline: calc(var(--pad) * -1);
  margin-top: auto;
}

.marquee {
  background: var(--white);
  color: var(--black);
  overflow: hidden;
  border-top: 1px solid var(--black);
  padding-block: 10px;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 62px);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Slide 2 — El DJ ---------- */

.dj {
  flex-direction: row;
  align-items: stretch;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: 0;
}

.dj__content {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 24px);
  padding-block: 24px;
  min-width: 0;
}

.dj__title {
  font-family: var(--font-display);
  font-size: clamp(46px, 7.8vw, 128px);
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 400;
}

.dj__title-line {
  display: block;
}

/* GENERACIONES se escala para quedar justificada al mismo ancho
   que BEATS QUE UNEN (bloque parejo, sin punto final) */
.dj__title-line.outline {
  font-size: 1.117em;
  line-height: 0.9;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 3px var(--white);
}

.slide--invert .outline {
  -webkit-text-stroke: 3px var(--black);
}

.dj__accent {
  color: var(--gray-muted);
  letter-spacing: 0.2em;
}

.dj__text {
  max-width: 46ch;
  color: #b5b5b5;
}

.dj__stats {
  list-style: none;
  display: flex;
  border: 1px solid var(--gray-line);
  max-width: 560px;
}

.dj__stats li {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--gray-line);
  min-width: 0;
}

.dj__stats li:last-child {
  border-right: 0;
}

.dj__stats strong {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.dj__stats .mono {
  font-size: 10px;
  color: var(--gray-muted);
}

.dj__photo {
  flex: 0 1 38%;
  align-self: flex-end;
  height: min(86svh, 780px);
  min-width: 0;
  border-left: 1px solid var(--gray-line);
}

.dj__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.05);
}

@media (max-width: 900px) {
  .dj {
    flex-direction: column;
    gap: 0;
  }

  .dj__content {
    justify-content: flex-start;
    padding-top: 8px;
  }

  .dj__photo {
    align-self: stretch;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 52svh;
    border-left: 0;
    border-top: 1px solid var(--gray-line);
    margin-inline: calc(var(--pad) * -1);
  }
}

/* ---------- Slide 3 — Servicios ---------- */

.services {
  justify-content: center;
  gap: clamp(20px, 3.5vh, 40px);
  padding-bottom: clamp(24px, 4vh, 48px);
}

.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--black);
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.services__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 110px);
  line-height: 0.9;
  text-transform: uppercase;
  font-weight: 400;
}

.services__lead {
  font-weight: 500;
  text-transform: uppercase;
  text-align: right;
  font-size: clamp(13px, 1.3vw, 17px);
  line-height: 1.4;
}

.services__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--black);
  border: 1px solid var(--black);
}

.service {
  background: var(--white);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.25s, color 0.25s;
}

.service:hover {
  background: var(--black);
  color: var(--white);
}

.service .mono {
  font-size: 10px;
  color: #666;
  transition: color 0.25s;
}

.service:hover .mono {
  color: var(--gray-muted);
}

.service h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 28px);
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: 400;
}

.service p {
  font-size: 13.5px;
  color: #555;
  transition: color 0.25s;
}

.service:hover p {
  color: #b5b5b5;
}

.service--cta {
  padding: 0;
  background: var(--black);
  color: var(--white);
  /* Ocupa lo que quede de la última fila: banner de cierre */
  grid-column: auto / -1;
}

.service--cta a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px 16px;
  height: 100%;
}

.service--cta .mono {
  color: var(--gray-muted);
}

.service--cta p {
  color: #b5b5b5;
}

.service--cta a:hover {
  background: var(--white);
  color: var(--black);
}

.service--cta a:hover .mono,
.service--cta a:hover p {
  color: #555;
}

@media (max-width: 560px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service h3 {
    font-size: 15px;
  }

  .service p {
    font-size: 11.5px;
  }
}

/* ---------- Slide 4 — Booking ---------- */

.booking {
  justify-content: center;
}

.booking__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: center;
  flex: 1;
}

.booking__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 2vh, 22px);
}

.booking__title {
  font-family: var(--font-display);
  font-size: clamp(60px, 9.6vw, 160px);
  line-height: 0.85;
  text-transform: uppercase;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 3px var(--white);
}

.booking__lead {
  font-weight: 500;
  text-transform: uppercase;
  max-width: 30ch;
  font-size: clamp(14px, 1.4vw, 18px);
}

.booking__social {
  list-style: none;
  display: flex;
  gap: 18px;
}

.booking__social a {
  display: inline-block;
  border: 1px solid var(--gray-line);
  padding: 10px 16px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.booking__social a:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Formulario */

.booking__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.4vh, 24px) 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field--full {
  grid-column: span 2;
}

.field label {
  color: var(--gray-muted);
  font-size: 10px;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #4a4a4a;
  padding: 8px 2px;
  color: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
  color-scheme: dark;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23f5f5f5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

.field select option {
  background: var(--black);
  color: var(--white);
}

/* Foco sin salto de layout: el grosor no cambia, se suma una sombra de 1px */
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--white);
  box-shadow: 0 1px 0 0 var(--white);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-bottom-color: var(--white);
  box-shadow: 0 1px 0 0 var(--white);
}

/* El autofill de Chrome/Safari pinta azul/amarillo: forzamos el negro */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--black) inset;
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  transition: background-color 9999s ease-out;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #666;
}

.field textarea {
  resize: none;
}

.booking__error {
  grid-column: span 2;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 10px 14px;
}

.booking__form .btn {
  grid-column: span 2;
}

.booking__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--gray-line);
  padding-block: 18px;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  margin-top: clamp(16px, 3vh, 36px);
  color: var(--gray-muted);
}

.booking__footer a:hover {
  color: var(--white);
}

@media (max-width: 900px) {
  .booking__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: start;
  }

  .booking__title {
    font-size: clamp(48px, 14vw, 90px);
  }
}

@media (max-width: 560px) {
  .field--half {
    grid-column: span 2;
  }

  .booking__form {
    grid-template-columns: 1fr;
  }

  .field--full,
  .booking__error,
  .booking__form .btn {
    grid-column: span 1;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee__track {
    animation: none;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
