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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #000;
  color: #fff;
}

/* ── Logo ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  padding: 28px 0 0 32px;
}

.logo {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* ── Slider ── */
.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateX(100%);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.slide--active {
  transform: translateX(0);
  z-index: 2;
}

.slide--exit-left {
  transform: translateX(-100%);
  z-index: 1;
}

.slide--enter-right {
  transform: translateX(0);
  z-index: 3;
}

.slide__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.slide__text:hover {
  opacity: 0.75;
}

/* ── Navegación del slider ── */
.slider-nav {
  position: fixed;
  bottom: 28px;
  right: 32px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.slider-nav__arrows {
  display: flex;
  gap: 10px;
}

.slider-nav__links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.slider-nav__separator {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 300;
  user-select: none;
}

.slider-nav__link {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.slider-nav__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.slider-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.slider-nav__btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ── Redes sociales ── */
.social {
  position: fixed;
  bottom: 28px;
  left: 32px;
  z-index: 20;
  display: flex;
  gap: 18px;
  align-items: center;
}

.social__link {
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
}

.social__link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ── Modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal--open {
  pointer-events: auto;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal__content {
  position: relative;
  width: min(90vw, 960px);
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.modal__close:hover {
  background: #eee;
  transform: scale(1.08);
}

.modal__video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.modal__video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .header {
    padding: 20px 0 0 20px;
  }

  .logo {
    height: 42px;
  }

  .slider-nav {
    bottom: 20px;
    right: 20px;
  }

  .slider-nav__btn {
    width: 38px;
    height: 38px;
  }

  .social {
    bottom: 20px;
    left: 20px;
    gap: 14px;
  }

  .social__link svg {
    width: 20px;
    height: 20px;
  }

  .modal__close {
    top: -14px;
    right: -8px;
    width: 36px;
    height: 36px;
  }

  .slide__text {
    white-space: normal;
    max-width: 85vw;
  }
}
