 html, body {
  height: 100%;
}

.hidden {
  display: none !important;
}

:root {
  --ctrl-bg: rgba(0, 0, 0, 0.7);
  --ctrl-border: rgba(255, 255, 255, 0.7);
  --ctrl-icon: #ffffff;
  --accent: #b7175d;
}


body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
  Roboto, sans-serif;
  color: #ffffff;
  background: url("img/background.jpg") center center / cover no-repeat fixed;
}

.page-overlay {
  height: 100dvh;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* -------------------------------------------------- */
/* HEADER                                             */
/* -------------------------------------------------- */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2em;
  position: absolute;
}

.top-logo img {
  max-height: 120px;
  width: auto;
  height: 15dvh;
  display: block;
}

/* -------------------------------------------------- */
/* HERO CENTRAL                                       */
/* -------------------------------------------------- */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2em;
  max-width: 480px;
  width: 100%;
}

.hero-logo img {
max-height: 500px;
  width: auto;
  height: 30dvh;
    filter: brightness(1.7);
}

/* Texto */

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: #b7175d;
}

.hero-title {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 16px 0 4px;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-dates {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4ee3cc;
}

/* Botones */

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn--outline {
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: #fff;
  border: 1px solid #fff;
  color: #000000;
}

/* -------------------------------------------------- */
/* FOOTER LOGOS                                       */
/* -------------------------------------------------- */

.footer-logos {
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.footer-logos img {
  max-height: 80px;
  height: 7dvh;
  width: auto;
}

/* -------------------------------------------------- */
/* RESPONSIVE                                         */
/* -------------------------------------------------- */

@media (max-width: 768px) {
  .top-bar {
    padding: 16px 20px;
  }

  .top-logo img {
    max-height: 60px;
  }

  .hero-content {
    max-width: 90%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
  }

  .footer-logos {
    padding: 16px;
  }

  .footer-logos img {
    max-width: 100%;
    height: auto;
  }
  .hero-logo img{
      height: 22dvh;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-eyebrow,
  .hero-subtitle,
  .hero-dates {
    font-size: 0.8rem;
  }
}


.video-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: #000;
  overflow: hidden;
  z-index: 999; 
}

.video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-layer.active {
  opacity: 1;
}

.video-loader {
  position: absolute;
  inset: 0;
  background: #000;              
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3;                  
}

.video-loader.visible {
  opacity: 1;
  pointer-events: auto;
}

.loader-text {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
}

.loader-text::after {
  content: "";
  display: inline-block;
  width: 1.5em;
  text-align: left;
  animation: loaderDots 1.1s infinite steps(4, end);
}

@keyframes loaderDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}

.back-to-landing {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

.controls-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 24px 4px; 
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.02)
  );
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.timeline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  
}
.buttons-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.buttons-row.buttons-hidden {
  opacity: 0;
  pointer-events: none;
}

.ctrl-btn {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  border: 1px solid var(--ctrl-border);
  background: var(--ctrl-bg);
  color: var(--ctrl-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  transition: background 0.15s ease, transform 0.1s ease, border 0.15s ease;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.ctrl-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ctrl-btn.btn-active {
  border-color: var(--accent);
  color: var(--accent);
}

.ctrl-btn-cc {
  width: auto !important;
  padding: 0 12px;          
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;     
}


#seekBar {
  flex: 1;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  cursor: pointer;
}

#seekBar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid #000;
  margin-top: -4px;
}

#seekBar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid #000;
}

#seekBar::-moz-range-track {
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  border-radius: 2px;
}


.ctrl-icon {
  pointer-events: none;
}


@media (max-width: 900px) {
  .video-layer {
    object-position: center;
    object-fit: contain;
    background: #000;    
  }
}



@media (max-width: 600px) {
  .controls-wrapper {
    padding: 8px 10px 14px;
    gap: 6px;
  }

  .buttons-row {
    gap: 8px;
  }

  .ctrl-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .timeline-row {
    font-size: 10px;
  }
}
