/* =========================
   RESET / BASE
========================= */
* { box-sizing: border-box; }

@font-face {
  font-family: "acs";
  src: url("../fonts/acs/OpenSans-Regular.ttf") format('ttf');
}
@font-face {
  font-family: "acs";
  src: url("../fonts/acs/OpenSans-Bold.ttf") format('ttf');
  font-weight: bold;
}
@font-face {
  font-family: "acs";
  src: url("../fonts/acs/OpenSans-Light.ttf") format('ttf');
  font-weight: lighter;
}

:root{
  /* Ajusta si tu navbar cambia de altura real */
  --nav-h: 61px;
  --nav-h-compact: 48px;
  --nav-transition: 220ms ease;
}

body {
  margin: 0;
  font-family: 'acsregular';
  font-size: 14px;

  /* Para que el contenido no quede tapado por la navbar fija */
  padding-top: var(--nav-h);
}

.row {
  --bs-gutter-x: 0 !important;
}

a { text-decoration: none; }

button:focus{
  outline: none;
  border: none;
}

/* =========================
   NAVBAR FIJA + COMPACTA EN SCROLL
   (añade/quita la clase .is-compact en .topnav desde JS)
========================= */
.topnav {
  background-color: #00386b;
  box-shadow: 0px 7px 15px -8px rgba(0,0,0,.1);

  /* Fija */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  /* Por encima de iframes / capas */
  z-index: 9999;

  /* Altura controlada para poder compactar */
  min-height: var(--nav-h);

  /* Si tu HTML ya tiene contenido interno, esto ayuda a centrarlo */
  display: flex;
  align-items: center;

  /* Animación suave */
  transition: min-height var(--nav-transition), box-shadow var(--nav-transition), background-color var(--nav-transition);
}

/* Estado compacto (al hacer scroll) */
.topnav.is-compact{
  min-height: var(--nav-h-compact);
  box-shadow: 0px 5px 12px -8px rgba(0,0,0,.25);
}

/* Si tienes un segundo navbar blanco, lo dejamos como estaba */
#title2{font-size: 30px}
.topnav2 { background-color: white; }

.topnav a, .topnav2 a{
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: font-size var(--nav-transition);
}

/* Opcional: reduce un poco el tamaño de los links en compacto */
.topnav.is-compact a, .topnav.is-compact .topnav2 a{
  font-size: 15px;
}

.topnav a#live{
  font-size: 16px;
  transition: 1s;
}

.topnav a#live:hover{ color: #FF3E30; }

/* Session alineada verticalmente dentro de la barra fija */
.session {
  float: right;
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  margin-right: 35px;
  margin-top: 0px;
  margin-bottom: 0px;
  font-weight: bolder;

  transition: transform var(--nav-transition);
}

i{ font-size: 15px; }

#blink_me { animation: blinker 2s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

section{
  position: relative;
  width: 100%;
  opacity: 0;
}

/* =========================
   LAYOUT
========================= */
.row {
  position: relative;
  width: 100%;
  margin: auto;
  z-index: 3;
}

.column {
  float: left;
  width: 50%;
  color: black;
}

/* IMPORTANTE:
   Antes: height: calc(100vh - 61px);
   Ahora la navbar es fija y ya no ocupa flujo, así que es 100vh */
.fondo{
  background-image: url('../img/fondo26.jpg') !important;
  background-position: left;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 100vh;
}

.live {
  width: 75%;
  padding: 20px;
  max-width: 1400px;
}

.live iframe{
  border-radius: 5px;
  background-color: #F0F0F0;
}

.chat{
  width: 25%;
  padding: 20px;
  margin-bottom: 30px;
}

.chat iframe{ border-radius: 5px; }

.barra{ height: calc(100% - 42px); }

.enlaceLive{ text-align: center; }

.texto{
  padding: 20px 0;
  line-height: 1.2em;
  width: 25%;
}

.texto h4{ line-height: 1.5em; }

.cartela{
  padding: 1%;
  padding-top: 60px;
  line-height: 1em;
  text-align: center;
  color: #606060;
  max-height: calc(100vh - var(--nav-h));
  height: calc(100vh - var(--nav-h));
}

.cartela img{
  width: 100%;
  max-width: 500px;
}

.contacto { line-height: 2em; }

.contacto a {
  color: #666;
  padding: 3%;
  overflow: hidden;
  white-space: nowrap;
}

.banda{
  position: absolute;
  background-color: #FFBE00;
  transform: translateX(-50%);
  margin-left: -25px;
  left: 50%;
  width: 50px;
  height: 100%;
  z-index: 4;
}

.bandamovil{
  display: none;
  position: absolute;
  background-color: #FFBE00;
  top: calc(30vh + var(--nav-h));
  margin-top: -25px;
  width: 100%;
  height: 25px;
  z-index: 4;
}

.ponente{
  padding: 0 10px;
  padding-top: 20px;
  line-height: 1em;
  width: 25%;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.spacer{ border-top: 2px solid black; }

#must_register {
  background-color: #E4E4E4;
  line-height: 1.8em;
  font-weight: 450;
  margin-bottom: 20px;
  padding: 10px;
}

/* =========================
   FORM
========================= */
div.pass {
  max-width: 90%;
  margin: 2% auto;
  margin-bottom: 0;
  border-radius: 10px;
}
label { display:none; }
fieldset { text-align: left }

button#enviar { font-size: 1em; }

div.pass {
  padding: 1em;
  padding-top: 0;
  margin-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  background: #fff;
  color: black;
}

.page.rounded .pass,
.page.rounded form,
.page.rounded #access {
  border-radius: 5px;
}

#login,
.login {
  display: block;
  margin: 1em auto;
  text-align: center;
}

.form-info { background:#f1f1f1; padding:10px; }
fieldset { padding: 0.5em; }

label  {
  display: block;
  text-align: left;
  margin-bottom: 8px !important;
  font-weight: 400;
}

input[type=checkbox]+label { display: inline; }

label:after+input:required {
  content: "*";
  color: #c66;
}

input[type=text],
input[type=password],
input[type=number],
input[type=tel],
input[type=email],
input[type=date],
textarea {
  display: block;
  padding: 0.5em;
  border: 1px solid #ccc;
  box-sizing: border-box;
  width: 100%;
}

input[type=checkbox] + label { font-size: 12px; }

fieldset.short input {
  width: 31%;
  display: inline-block;
  margin-right: 2%;
}

fieldset.short input:last-child {
  width: 31%;
  display: inline-block;
  margin-right: 0;
}

input.invalid {
  border: 1px solid #c66;
  box-shadow: 0 3px 3px #c66;
  border-radius: 2px;
}

select {
  display: block;
  padding: 0.5em;
  font-weight: 500;
  box-sizing: border-box;
  width: 175px;
  margin: right;
}

#languages{
  width: 100%;
  display: flex;
  justify-content: flex-end; /* derecha */
  align-items: center;

  margin-bottom: 8px; /* separación con el video */
  padding-right: 4px;

}

button#enviar,
button#cancel, .btn {
  background: #06a;
  color: #fff;
  text-align: center;
  border: none;
  padding: 1em 2em;
  box-sizing: border-box;
  width: 100%;
  font-size:0.85em;
}

button#enviar:hover, .btn:hover {
  background: #06f;
  color: #fff;
}

button#cancel { background: #c22; }
button#cancel:hover { background: #FF3E30; }

fieldset.btn { text-align: center }
.send { text-align: center; }

#error, #rerror {
  background: #edd;
  color: #c66;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px dotted #c66;
  border-radius:2px;
  font-size: 0.9em;
  display:none;
}

#error #send_mail { margin-top: 8px; }

#error a {
  color: #c66;
  font-weight: bold;
  text-decoration: none;
}

#error a:hover {
  color: #c22;
  font-weight: bolder;
  text-decoration: none;
}

#msg {
  background: rgb(203, 252, 181);
  color: rgb(13 100 17);
  padding: 10px;
  border: 1px dotted rgb(64, 129, 51);
  border-radius: 2px;
  font-size: 0.9em;
  display: none;
}

#access {
  text-align: center;
  border: 1px solid #ddd;
  padding: 22% 1em;
  background: #fff;
  background: rgba(255,255,255,0.8);
}

.choose {
  text-align: right;
  padding: 0.5em;
}
.choose a {
  font-size: 0.85em;
  color: #666;
  text-decoration: none
}
.choose a:hover, .choose a.active { color: #000; }
.choose a.active { font-weight: bold; }

.modal-title {
  font-weight: bold;
  font-size: 1.3em;
}

.modal-fullscreen .modal-dialog {
  max-width: 100%;
  margin: 10%;
  margin-top: 3%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  display: flex;
  position: fixed;
  z-index: 100000;
}

#languages { padding: 0px 20px 0px }

#login_footer, #register_footer {
  font-size: 16px;
  font-weight: bold;
  padding: 0;
  margin-top: 22px;
}

#login_footer a, #register_footer a { font-weight: bold; }

#login_footer label, #register_footer label{
  text-align: center;
  font-weight: bold;
}

.modal-fullscreen .modal-body { overflow-y: hidden !important; }

.ms-dd-option-content {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

#player{
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 40px 20px -30px rgba(0, 0, 0, 0.35);
  background-color: rgb(200,200,200);
}

#CybotCookiebotDialogDetailFooter{display: none;}

  #title2{padding-top: 20px;}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 420px) {
  #access { font-size: 1.4em; }
}

@media (min-width: 860px) {
  #access { font-size: 2em; }
}

@media screen and (max-width: 1024px) {
  .live, .chat{ width: 100%; }
  .chat{ height: 500px; }
}

@media screen and (max-width: 1024px) {
  .column  { width: 100%; }

  .cartela{
    padding: 1%;
    padding-top: 40px;
    max-height: unset;
    height: unset;
    overflow: hidden !important;
  }

  .fondo{ height: 30vh; }

  .topnav a#live:hover{
    -ms-transform: scale(1,1);
    transform: scale(1,1);
  }

  .banda{ display: none; }

  .bandamovil{
    display: block;
    top: calc(30vh + var(--nav-h));
	  margin-top: -64px;
  }
}

@media screen and (max-width: 1024px) {
  .contacto { font-size: 16px !important; }
}

@media (max-width: 640px) {
  .session { display: none; }
  #title2{font-size: 20px}
}

@media (max-width: 440px) {
  .session { display: none; }
}

@media screen and (max-height: 823px) { .chat{height: 500px;} }
@media screen and (max-height: 736px) { .chat{height: 375px;} }
@media screen and (max-height: 720px) { .chat{height: 330px;} }
@media screen and (max-height: 640px) { .chat{height: 350px;} }
@media screen and (max-height: 568px) { .chat{height: 300px;} }