/* Estilos compartidos por el ingreso (index.html), el registro (registro/index.html) y "Próximamente" (indexPROX.html) */

/* FUENTES */

@font-face {
  font-family: "Sura Sans Bold";
  src: url("../fonts/SuraSansBold.woff2") format("woff2"),
    url("../fonts/SuraSansBold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sura Sans Regular";
  src: url("../fonts/SuraSansRegular.woff2") format("woff2"),
    url("../fonts/SuraSansRegular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sura Sans SemiBold";
  src: url("../fonts/SuraSansSemiBold.woff2") format("woff2"),
    url("../fonts/SuraSansSemiBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* BASE */

body {
  font-family: "Sura Sans Regular";
  background: url("../images/IMGFONDODESK.webp") center / cover no-repeat fixed;
}

a,
a:hover {
  color: #e3e829;
  font-family: "Sura Sans Bold", sans-serif;
}

.btn {
  border-radius: 20px;
}

.form-control::placeholder {
  color: #53565a;
}

.separador {
  width: 100%;
  height: 2px;
  background-color: #e3e829;
}

/* "¿Aún no te has registrado?" / "¿Ya te registraste?" */
.link-ingreso {
  color: #fff;
  margin-top: 16px;
}

.link-ingreso a {
  font-weight: bold;
  text-decoration: underline;
}

/* PANTALLA COMPLETA (sin scroll de página) */

html:has(> body.login-view),
html:has(> body.streaming-view) {
  height: 100%;
  overflow: hidden;
}

body.login-view,
body.streaming-view {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overflow: clip;
  display: flex;
  flex-direction: column;
}

/* HEADER (logos) */

.header {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(60px, 10vh, 100px);
}

.logo-left,
.logo-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.logo-left {
  left: clamp(16px, 4vw, 50px);
  height: clamp(30px, 7vh, 65px);
}

.logo-right {
  right: clamp(16px, 2.5vw, 35px);
  height: clamp(28px, 8vh, 80px);
}

/* LAYOUT DE INGRESO / REGISTRO: imagen a la izquierda, panel a la derecha */

.layout-login {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}

.layout-login-grid {
  height: 100%;
  padding: 0 clamp(20px, 5vw, 110px) clamp(12px, 2vh, 24px);
  gap: clamp(16px, 3vw, 64px);
}

.left-content {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  gap: clamp(8px, 1.5vh, 16px);
}

/* La imagen ocupa el alto que deja libre la cápsula de fecha */
.left-content > img {
  flex: 0 1 auto;
  min-height: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 76%;
  object-fit: contain;
}

.right-content {
  flex: 0 0 clamp(420px, 40vw, 820px);
  min-width: 0;
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0 4px;
}

/* Centra verticalmente el bloque visible sin recortarlo si desborda */
.right-content > * {
  margin-top: auto;
  margin-bottom: auto;
}

.layout-login,
.right-content {
  scrollbar-width: thin;
  scrollbar-color: #5a646e transparent;
}

.text-right-title {
  margin-top: 0;
  font-size: clamp(1.8rem, 4.5vh, 2.6rem);
}

@media (max-width: 991px) {
  .layout-login-grid {
    height: auto;
    min-height: 100%;
    gap: 12px;
  }

  .left-content {
    flex: 0 0 auto;
    height: calc(clamp(160px, 34vh, 420px) + 56px);
  }

  .right-content {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 991px) and (max-height: 700px) {
  .left-content {
    height: calc(24vh + 56px);
  }

  .text-right-title {
    font-size: 1.6rem;
  }
}

/* FECHA DEL EVENTO */

.evento-fecha {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
  color: #fff;
}

.evento-dato {
  display: flex;
  align-items: center;
  gap: 14px;
}

.evento-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
}

.evento-icono-fecha {
  background: rgba(255, 138, 92, 0.3);
  color: #ff8a5c;
}

.evento-icono-hora {
  background: rgba(78, 195, 224, 0.3);
  color: #4ec3e0;
}

.evento-label {
  display: block;
  font-family: "Sura Sans Bold";
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.evento-valor {
  display: block;
  font-family: "Sura Sans Bold";
  color: #fff;
  white-space: nowrap;
}

.evento-sep {
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

/* Versión compacta bajo la imagen principal */
.evento-fecha-hero {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  padding: clamp(8px, 1.4vh, 14px) clamp(16px, 2vw, 28px);
  gap: clamp(14px, 2vw, 28px);
}

.evento-fecha-hero .evento-icono {
  width: clamp(32px, 4.4vh, 42px);
  height: clamp(32px, 4.4vh, 42px);
}

.evento-fecha-hero .evento-icono svg {
  width: 55%;
  height: 55%;
}

.evento-fecha-hero .evento-valor {
  font-size: clamp(0.9rem, 1.9vh, 1.05rem);
}

.evento-fecha-hero .evento-sep {
  height: 32px;
}

@media (max-width: 480px) {
  .evento-fecha-hero {
    gap: 10px;
    padding: 6px 12px;
  }

  .evento-fecha-hero .evento-dato {
    gap: 6px;
  }

  .evento-fecha-hero .evento-icono {
    width: 24px;
    height: 24px;
  }

  .evento-fecha-hero .evento-label {
    display: none;
  }

  .evento-fecha-hero .evento-valor {
    font-size: clamp(10px, 3vw, 12.5px);
  }

  .evento-fecha-hero .evento-sep {
    height: 20px;
  }
}

/* Oculta el widget sin quitarlo del DOM (js/evento.js lo sigue rellenando).
   Para volver a mostrarlo, quitar la clase "evento-fecha-oculto" del HTML. */
.evento-fecha.evento-fecha-oculto {
  display: none !important;
}

/* PANTALLA DE CARGA */

#loading-screen {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #333;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
