body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container { width: 100%; height: 100% }
#unity-canvas { background: #231F20 }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-footer { position: fixed; width: 100%; bottom: 0; margin-top: 5px; line-height: 38px; }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-webxr-link { float: left; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }

/* Sala de calma: botón grande y legible para entrar en VR */
#entervr { float: right; height: 38px; padding: 0 16px; margin-left: 8px; border: 0; border-radius: 6px; font: 600 16px system-ui, sans-serif; }
#entervr:enabled { background-color: #22333a; color: #faf5eb; cursor: pointer; }
#entervr:disabled { background-color: #e4ddd2; color: #8a8278; }
#enterar { display: none; }

/* ───────── Portada de la Sala de calma ───────── */
#portada {
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  padding: 24px 20px;
  background: radial-gradient(circle at 50% 30%, #fbf3e6 0%, #efe2ce 70%, #e6d7c0 100%);
  color: #22333a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-y: auto;
  opacity: 1; transition: opacity .6s ease;
}
#portada.portada-oculta { opacity: 0; pointer-events: none; }

#portada-tarjeta {
  max-width: 660px; width: 100%;
  background: rgba(255, 253, 249, .82);
  border: 1px solid rgba(34, 51, 58, .10);
  border-radius: 18px;
  padding: 32px 34px 26px;
  box-shadow: 0 12px 40px rgba(34, 51, 58, .10);
  text-align: center;
}
/* El logotipo de UPRAISE es en negativo: va sobre una banda oscura */
#portada-logo-marco {
  display: inline-flex; align-items: center; justify-content: center;
  background: #22333a; border-radius: 12px; padding: 12px 22px; margin-bottom: 20px;
}
#portada-logo { height: 40px; width: auto; display: block; }
#portada-logo-texto { font-weight: 700; letter-spacing: .22em; font-size: 22px; color: #faf5eb; }

#portada h1 { margin: 0; font-size: 42px; font-weight: 600; letter-spacing: .01em; }
.portada-lema { margin: 6px 0 18px; font-size: 18px; color: #5b6b70; }
.portada-texto { margin: 0 0 14px; font-size: 17px; line-height: 1.55; text-align: left; }
.portada-texto strong { font-weight: 600; }
.portada-como { margin: 0 0 24px; font-size: 15px; line-height: 1.5; color: #5b6b70; text-align: left; }

#portada-botones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
#portada-botones button {
  font: 600 18px/1 system-ui, sans-serif;
  padding: 16px 30px; min-height: 52px;
  border: 0; border-radius: 10px; cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}
#portada-entrar { background: #22333a; color: #faf5eb; }
#portada-entrar:hover:enabled { background: #2d454f; }
#portada-entrar:disabled { background: #cfc5b6; color: #7c7468; cursor: progress; }
#portada-vr { background: #edb87a; color: #22333a; }
#portada-vr:hover { background: #f2c78f; }
#portada-botones button:active:enabled { transform: translateY(1px); }
#portada-botones button:focus-visible { outline: 3px solid #35586b; outline-offset: 3px; }

#portada-progreso { height: 4px; margin-top: 18px; border-radius: 2px; background: rgba(34, 51, 58, .12); overflow: hidden; }
#portada-progreso-relleno { width: 0; height: 100%; background: #35586b; transition: width .2s ease; }

#portada-pie {
  max-width: 660px; width: 100%;
  background: #22333a; color: #d7dfe1;
  border-radius: 14px; padding: 16px 22px;
  font-size: 13px; line-height: 1.5; text-align: center;
}
#portada-pie p { margin: 0 0 4px; }
#portada-pie strong { color: #f3ece0; font-weight: 600; }
#portada-pie a { color: #edb87a; }
#portada-pie-marcas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; margin-bottom: 12px; }
.portada-marca { height: 42px; width: auto; }
.portada-marca-clara { height: 34px; background: #fff; border-radius: 4px; padding: 5px 8px; }
.portada-marca-ue { height: 34px; }   /* versión en negativo: ya es blanca sobre fondo oscuro */
.portada-financiacion { color: #9fb0b4; font-size: 11.5px; }

@media (max-width: 520px) {
  #portada-tarjeta { padding: 24px 20px 20px; }
  #portada h1 { font-size: 32px; }
  .portada-texto { font-size: 16px; }
  #portada-botones button { width: 100%; }
}


/* ───────── Estilo FlixOlé (Cátedra FlixOlé-URJC de Cine Español) ───────── */
@font-face { font-family: "Lato"; src: url("Lato-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Lato"; src: url("Lato-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("Lato-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("Lato-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
:root { --flix-rojo: #EC0032; --flix-rojo-hover: #ff1a4b; --flix-noche: #021820; --flix-petroleo: #05394D; --flix-claro: #C6DBE2; }
body { background: var(--flix-noche); }
#portada {
  font-family: "Lato", Arial, sans-serif; color: #fff;
  background: linear-gradient(180deg, rgba(2,24,32,.55) 0%, rgba(2,24,32,.88) 55%, var(--flix-noche) 100%),
              url("portada.jpg") center top / cover no-repeat, var(--flix-noche);
  justify-content: flex-start; padding-top: 0;
}
#portada-cabecera { width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; background: rgba(2,24,32,.92); }
.cabecera-logo { height: 34px; width: auto; }
.cabecera-texto { font-size: 12px; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
#portada-tarjeta { background: transparent; box-shadow: none; color: #fff; max-width: 760px; margin-top: 7vh; padding: 0 24px; }
.portada-antetitulo { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--flix-rojo); }
#portada h1 { font-family: "Lato", Arial, sans-serif; font-size: 52px; font-weight: 900; line-height: 1.08; color: #fff; }
#portada h1 em { font-style: italic; }
.portada-lema { color: var(--flix-claro); font-size: 19px; font-weight: 300; margin: 10px 0 22px; }
.portada-texto { color: #fff; font-size: 18px; font-weight: 300; line-height: 1.6; text-align: center; }
.portada-como { color: var(--flix-claro); font-size: 15px; font-weight: 300; text-align: center; }
#portada-botones button { font-family: "Lato", Arial, sans-serif; font-size: 18px; font-weight: 700; text-transform: uppercase;
  border-radius: 10px; padding: 15px 30px; border: 0; letter-spacing: .02em; }
#portada-entrar { background: var(--flix-rojo); color: #fff; }
#portada-entrar:hover:enabled { background: var(--flix-rojo-hover); }
#portada-entrar:disabled { background: rgba(255,255,255,.18); color: rgba(255,255,255,.7); }
#portada-vr { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
#portada-vr:hover { background: rgba(255,255,255,.12); }
#portada-botones button:focus-visible { outline: 3px solid var(--flix-claro); }
#portada-progreso { background: rgba(255,255,255,.15); max-width: 360px; margin-left: auto; margin-right: auto; }
#portada-progreso-relleno { background: var(--flix-rojo); }
#portada-pie { background: transparent; color: var(--flix-claro); font-family: "Lato", Arial, sans-serif; font-weight: 300; margin-top: auto; }
#portada-pie-marcas { background: #fff; border-radius: 10px; padding: 12px 22px; gap: 26px; display: inline-flex; }
.portada-marca { height: 38px; }
.portada-marca-catedra { height: 40px; }
.portada-marca-mercury { height: 40px; }
.portada-marca-upraise { height: 30px; background: var(--flix-noche); border-radius: 6px; padding: 6px 10px; }
#portada-pie strong { color: #fff; font-weight: 700; }
.portada-nota { font-size: 12px; color: #8fb3bf; }
#unity-canvas { background: var(--flix-noche) !important; }
#entervr:enabled { background-color: var(--flix-rojo); color: #fff; font-family: "Lato", Arial, sans-serif; font-weight: 700; text-transform: uppercase; border-radius: 10px; }
@media (max-width: 520px) {
  #portada h1 { font-size: 36px; }
  #portada-cabecera { padding: 14px 16px; }
  .cabecera-texto { display: none; }
  #portada-pie-marcas { gap: 14px; padding: 10px 12px; }
  .portada-marca { height: 28px; }
}
#portada { padding: 0 0 24px; }
#portada-tarjeta { border: 0; border-radius: 0; text-align: center; }
#portada-pie { padding: 0 20px; text-align: center; }

/* Distintivo de la gala, arriba del todo */
.portada-gala { display: inline-block; margin: 0 0 18px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; background: rgba(2,24,32,.55); }
@media (max-width: 520px) { .portada-gala { font-size: 11px; letter-spacing: 1px; } }

/* Créditos de la portada: contenido y diseño y desarrollo */
.portada-creditos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; margin: 14px 0 10px; }
.portada-creditos div { display: flex; flex-direction: column; align-items: center; }
.portada-creditos dt { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--flix-rojo); }
.portada-creditos dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: #fff; }
