/* =========================================================
   EXHUMAR LA LUZ / ENSAMBLE CONTINUO
   Primera versión funcional
   ========================================================= */

:root {
  --cream: #CEB9AB;
  --black: #000;
  --copyright-opacity: 0.5;
  --register-url: "https://docs.google.com/forms/d/e/1FAIpQLSemRi-pNopE6zsrueHLFKCrMDd1iTzU41V4LQoSOgVsYiZz8A/viewform";
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

.site {
  min-height: 100vh;
}

/* =========================================================
   DESKTOP
   ========================================================= */

.desktop-page {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: #000;
}

.desktop-panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.desktop-panel--left {
  background-image: url("assets/desktop/bg_izq.jpg");
}

.desktop-panel--right {
  background-image: url("assets/desktop/bg_der.jpg");
}

/*
  Desktop diseñado sobre una mesa de trabajo de 1920 × 1080 px.
  Las proporciones se conservan al reducir el viewport.
*/

.desktop-logo {
  position: absolute;
  z-index: 2;
  top: min(58px, 5.3704vh);
  right: min(58px, 3.0208vw);
  width: min(171px, 8.9063vw);
  height: auto;
  max-width: none;
}

.desktop-names {
  position: absolute;
  z-index: 2;
  top: min(250px, 20.1482vh);
  left: min(54px, 2.8125vw);
  width: 19.625vw;
  height: auto;
  max-width: none;
}

.desktop-schedule {
  position: absolute;
  z-index: 2;
  left: min(54px, 2.8125vw);
  right: min(54px, 2.8125vw);
  /* Se mantiene por encima del CTA. La referencia visual es un espacio
     de 50px respecto al botón en el viewport de 1920x1080, escalado
     proporcionalmente al ancho de la ventana. */
  bottom: calc(min(50px, 4.60417vw) + min(67px, 1.48958vw) + 2.60417vw);
  width: auto;
  height: auto;
  max-width: none;
}

.register-link {
  display: block;
  text-decoration: none;
  outline: none;
  transition:
    transform 220ms ease,
    filter 220ms ease,
    opacity 220ms ease;
}

.register-link:hover {
  transform: translateY(-2px) scale(1.018);
  filter: brightness(1.08);
}

.register-link:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 6px;
}

.register-link--desktop {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: min(50px, 4.6296vh);
  width: min(357px, 18.5938vw);
  height: auto;
  transform: translateX(-50%);
}

.register-link--desktop:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.018);
}

.register-link img {
  width: 100%;
  height: auto;
}

.copyright {
  margin: 0;
  color: var(--cream);
  opacity: var(--copyright-opacity);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1;
}

.copyright--desktop {
  position: fixed;
  z-index: 10;
  left: 20px;
  bottom: 14px;
  font-size: 9px;
}

/* =========================================================
   MOBILE
   ========================================================= */

.mobile-page {
  display: none;
}

/* =========================================================
   TABLET / INTERMEDIATE DESKTOP
   ========================================================= */


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .desktop-page {
    display: none;
  }

  .mobile-page {
    display: block;
    position: relative;
    min-height: 100vh;
    background: #000;
    padding-bottom: 125px;
  }

  .mobile-visual {
    position: relative;
    width: 100%;
    height: 131.5vw;
    min-height: 500px;
    max-height: 1040px;
    background-image: url("assets/mobile/bg_mob.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
  }

  .mobile-logo {
    position: absolute;
    top: clamp(24px, 5vw, 52px);
    right: clamp(20px, 5vw, 50px);
    width: clamp(80px, 27.8vw, 211px);
    height: auto;
  }

  .mobile-content {
    width: 100%;
    background: #000;
    padding: clamp(25px, 5vw, 55px) clamp(20px, 7vw, 55px) 25px;
    text-align: center;
  }

  .mobile-schedule {
    width: min(89.4vw, 680px);
    margin: 0 auto clamp(25px, 5vw, 50px);
    height: auto;
  }

  .mobile-names {
    width: min(83.2vw, 632px);
    margin: 0 auto;
    height: auto;
  }

  .copyright--mobile {
    margin: clamp(24px, 5vw, 45px) auto 0;
    text-align: center;
    color: var(--cream);
    font-size: clamp(10px, 2.7vw, 16px);
  }

  .mobile-footer {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px 20px max(25px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--cream);
    text-align: center;
  }

  .mobile-footer p {
    margin: 0;
    color: #000;
    font-size: clamp(11px, 2.9vw, 17px);
    line-height: 1.2;
    letter-spacing: 0.035em;
    font-weight: 400;
  }

  .register-link--mobile {
    width: min(80vw, 500px);
  }

  .register-link--mobile:hover {
    transform: translateY(-2px) scale(1.015);
    filter: brightness(1.04);
  }
}

/* Pantallas móviles muy estrechas */
@media (max-width: 360px) {
  .mobile-visual {
    height: 126vw;
    min-height: 455px;
  }

  .mobile-content {
    padding-left: 16px;
    padding-right: 16px;
  }

}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .register-link {
    transition: none;
  }
}
