/* Estilos generales */
.titulo-principal {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-top: 30px;
}

.mensaje-aviso {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #666;
}

.bloque-horario {
  margin-top: 10px;
}

.table th,
.table td {
  vertical-align: middle;
}

.bg-red {
  background-color: #9d0303 !important;
  color: #fff;
}

.container {
  max-width: 93% !important;
  width: 93%;
  margin: 0 auto;
  margin-top: 35px;
}

.card {
  background-color: #fff;
  border-radius: 20px;
  padding: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

@media print {
  .table-responsive {
    overflow: visible !important;
  }
}

/* Buscador */
.buscador-card {
  padding: 20px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.buscador-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buscador-label {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  display: flex;
  align-items: center;
}

.buscador-input {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out;
  flex: 1;
  font-weight: bold;
  z-index: 100;
  background: white;
  position: relative;
}

.buscador-input:focus {
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  outline: none;
}

.buscador-row{
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: stretch;
}

.listaDias{
  display: flex;
  align-items: center;
  gap: 12px;
}

.filtro-dia-info{
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  flex: 1 1 auto;
}

.listaDias .form-control{
  margin-left: auto;
}

.buscador-label i {
  margin-right: 10px;
}

/* Login y Tooltip con la imagen de ejemplo y descripcion */
.loginBuscar {
  white-space: nowrap;
  padding: 10px 20px;
  color: #fff;
}

.tooltip.bs-tooltip-right .tooltip-inner,
.tooltip.bs-tooltip-left .tooltip-inner,
.tooltip.bs-tooltip-top .tooltip-inner,
.tooltip.bs-tooltip-bottom .tooltip-inner {
  max-width: none;
  padding: 0;
  background: transparent;
  border: none;
}

.tooltip.bs-tooltip-right .arrow::before {
  border-right-color: white !important;
}
.tooltip.bs-tooltip-left .arrow::before {
  border-left-color: white !important;
}
.tooltip.bs-tooltip-top .arrow::before {
  border-top-color: white !important;
}
.tooltip.bs-tooltip-bottom .arrow::before {
  border-bottom-color: white !important;
}

.toolTipMod {
  width: 630px;
  max-width: 100%;
  text-align: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 5px;
}

.toltTipContent {
  font-size: 1rem;
  color: #333;
  margin-bottom: 8px;
}

.imgEjemplo {
  width: 100%;
  border-radius: 8px;
}

/* Estilos para la lista desplegable */
.historial-dropdown {
  position: absolute;
  top: 95%;
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 30px 30px;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.historial-dropdown li {
  cursor: pointer;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.historial-dropdown li i {
  margin-right: 8px;
}

.historial-dropdown li:hover {
  background-color: #f5f5f5;
}


/* Radios de ID y clave del cuerpo */
.buscador-radios {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

.custom-radio-option{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 15px 10px;
  border: 2px solid #cccccc00;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
  font-weight: 600;
  color: #333;
  text-align: left;
}

.custom-radio-option input[type="radio"]{
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #666;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
  background: transparent;
  flex-shrink: 0;
  display: inline-block;
}

.custom-radio-option input[type="radio"]:checked{
  background: var(--color-red);
  border-color: var(--color-red);
}

.custom-radio-option:has(input[type="radio"]:checked){
  border-color: var(--color-red);
  color: var(--color-red);
}

.custom-radio-option input[type="radio"]:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--color-red) 40%, transparent);
  outline-offset: 2px;
}

.custom-radio-option input[type="radio"]:checked+span {
  color: var(--color-red);
}


/* Alerta llamativa */
.alert-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  border-radius: 0;
  font-weight: bold;
  background: linear-gradient(90deg, #fff3cd, #ffd966);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 10px 50px;
  border: none;
  justify-content: center;
  align-items: center;
  animation: shakeEvery5s 3s infinite;
}

@keyframes shakeEvery5s {
  0%, 100% { transform: translateY(0); }
  2% { transform: translateY(-2px); }
  4% { transform: translateY(2px); }
  6% { transform: translateY(-2px); }
  8% { transform: translateY(0); }
}
.alert-fixed i {
  margin-right: 8px;
  animation: pulseIcon 1.5s infinite;
}

.alert-fixed span {
  margin-right: 8px;
  animation: pulseIcon 1.5s infinite;
}

@keyframes pulseIcon {
  0% { transform: scale(1); color: #000000; }
  50% { transform: scale(1.2); color: #ff0000; }
  100% { transform: scale(1); color: #000000; }
}

body {
  padding-top: 50px;
}

/* Boton flotante para subir al inicio de la pagina */
#btnSubir {
  position: fixed;
  bottom: 20px;
  right: 5px;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  background-color: #f5f5f5;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  font-size: 35px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#btnSubir i {
  font-weight:900;
}

#btnSubir:hover {
  transform: scale(1.15);
}

#btnSubir.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.textResumen{
  text-align: justify;
}

#contenedor-ponencias {
  transition: opacity 0.4s ease;
}

#contenedor-ponencias.fade {
  opacity: 0;
}

/* Tablets (ancho máximo 768px) */
@media (max-width: 768px) {
  .alert-fixed {
    padding: 5px 5px;
  }
  .alert-fixed i {
    font-size:12px;
    margin-right: 1px;
  }

  .alert-fixed span {
    font-size:11px;
    margin-right: 1px;
  }
  
  body {
    padding-top: 70px;
  }

  .buscador-radios {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px;
    margin-top: 1px;
  }
  .custom-radio-option {
    gap: 5px;
    padding: 1px 1px;
    font-weight: 400;
    font-size:10px;
  }
  .custom-radio-option input[type="radio"] {
    width: 10px;
    height: 10px;
  }

  .textIndicacion{
    font-size: 11px;
  }

  .buscador-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .titulo-principal {
    font-size: 1.2rem;
    margin-top: 10px;
  }
  
  .mensaje-aviso {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .bloque-horario h4 {
    font-size: 13px;
  }

  .bloque-horario th {
    font-size: 11px;
  }

  .bloque-horario td {
    font-size: 11px;
  }

  .buscador-label {
    font-weight: 600;
    font-size: 0.9rem;
  }

  .buscador-label i {
    margin-right:10px;
  }

  .buscador-wrapper input {
    font-size:12px;
  }

  .buscador-wrapper select{
    font-size:12px;
  }

  .descargarPDF{
    font-size:11px;
  }

  .buttonDescargarPDF{
    font-size: 11px;
    width: 100%;
  }

  #btnSubir {
    bottom: 10px;
    right: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
}

/* Teléfonos (ancho máximo 480px) */
@media (max-width: 480px) {
  .alert-fixed {
    padding: 5px 5px;
    font-size: 12px;
  }
  .alert-fixed i {
    font-size: 12px;
    margin-right: 1px;
  }

  .alert-fixed span {
    font-size: 11px;
    margin-right: 1px;
  }
  
  body {
    padding-top: 80px;
  }

  .buscador-radios {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px;
    margin-top: 1px;
  }
  .custom-radio-option {
    gap: 5px;
    padding: 1px 1px;
    font-weight: 400;
    font-size:10px;
  }
  .custom-radio-option input[type="radio"] {
    width: 10px;
    height: 10px;
  }

  .textIndicacion{
    font-size: 11px;
  }

  .buscador-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .titulo-principal {
    font-size: 1.2rem;
    margin-top: 10px;
  }
  
  .mensaje-aviso {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .bloque-horario h4 {
    font-size: 13px;
  }

  .bloque-horario th {
    font-size: 11px;
  }

  .bloque-horario td {
    font-size: 11px;
  }

  .buscador-label {
    font-weight: 600;
    font-size: 0.9rem;
  }

  .buscador-label i {
    margin-right:10px;
  }

  .buscador-wrapper input {
    font-size:12px;
  }

  .buscador-wrapper select{
    font-size:12px;
  }

  .descargarPDF{
    font-size:11px;
  }

  .buttonDescargarPDF{
    font-size: 11px;
    width: 100%;
  }

  .filtro-dia-info {
    font-size: 12px;
  }

  #btnSubir {
    bottom: 10px;
    right: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .textResumen{
    font-size:11px;
    text-align: justify;
  }

}

/* RELOJ */
.navbar_clock {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 10px;
  padding: 6px 10px;
  margin-right: 15px;
  gap: 5px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease-in-out;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
  width: 100%;
}

.navbar_clock.loaded {
  transform: translateY(0);
  opacity: 1;
}

.clock-icon {
  font-size: 20px;
  background: black;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.clock-info {
  color: black;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-align: right;
}

.clock-info small {
  color: black;
  font-size: 12px;
}

.clock-info span {
  color: black;
  font-weight: 700;
  font-size: 15px;
}

@media (max-width: 768px) {
  .navbar_clock {
    justify-content: center;
    padding: 4px 6px;
    margin-right: 5px;
  }

  .clock-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .clock-info small {
    display: block;
  }

  .clock-info span {
    font-size: 12px;
  }

  .clock-icon {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .navbar_clock {
    gap: 4px;
  }

  .clock-info span {
    font-size: 11.5px;
  }

  .clock-info small {
    font-size: 10px;
  }

  .clock-icon {
    font-size: 20px;
  }
}