body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

header {
    background-color: #c23529;
    color: white;
    padding: 10px 0;
    position: relative;
    height: 80px;
}

a {
    text-decoration: none;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.logo {
    width: 174px;
    /*height: 30px;*/
    margin-left: 20px;
    margin-right: 20px;
}

header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 80px;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

h2 {
    color: #c23529;
    font-weight: 500;
    font-weight: bold;
}

.schedule {
    list-style-type: none;
    padding: 0;
}

.schedule-item {
    padding: 15px 0;
    border-top: 1px solid #ddd;
    overflow: hidden;
}

.schedule-item:first-child {
    border-top: none;
}

.thumbnail {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    float: right;
    margin-left: 20px;
}

.logo-img {
    width: auto;
    max-height: 150px;
    float: right;
    margin-left: 20px;
}

.details {
    text-align: left;
}

.time {
    color: #666;
    font-weight: normal;
    font-size: 1.1em;
    display: inline-block;
    margin-right: 15px;
}

.speaker, .speaker a {
    /*display: inline;
    font-weight: 600;
    color: #333;
    */
    display: inline;
    font-weight: bold;
    color: #c23529; /* Mismo color rojo de la cabecera */
    margin-right: 10px; /* Espacio entre el nombre del ponente y el título */
}

.title, .title a {
    font-weight: 600;
    color: #333;
    display: inline; /* Permite que el título esté en la misma línea que el nombre del ponente */
}

.description {
    color: #666;
    margin-top: 5px;
    font-size: 1em;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: 30px;
}

/* AÑADIDO PARA PLANOS */

/* Contenedor de Pabellones */
.pabellones-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin: 20px auto;
}

/* Pabellón */
.pabellon {
    flex: 1 1 30%;
    max-width: 350px;
    min-width: 250px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Imagen de los Pabellones */
.plano-img {
    width: 100%;
    height: auto;
    max-height: 800px; /* Ajusta la altura máxima si es necesario */
    margin-bottom: 1rem;
    border-radius: 4px;
    object-fit: contain;
}

/* Lista General de Expositores en Columnas */
#lista-general, #resultados-busqueda, #buscador-expositores {
    max-width: 1200px;
    margin: 0px auto;
    padding: 20px;
    width: 100%;
    overflow: hidden;
}

#lista-general, #resultados-busqueda, #buscador-expositores h2 {
    clear: both;
    padding-top: 5px; /* Ajusta según sea necesario */
    margin-top: 0;
	margin-right: 25px;
}

#lista-general, #resultados-busqueda, #buscador-expositores p {
    clear: both;
    padding-top: 5px; /* Ajusta según sea necesario */
    margin-top: 0;
	margin-right: 25px;
}

#lista-todos-expositores, #lista-resultado-expositores {
    column-width: 250px; /* Ancho mínimo de cada columna, ajustable según el diseño */
    column-gap: 20px; /* Espacio entre columnas */
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#lista-todos-expositores, #lista-resultado-expositores li {
    padding: 5px;
}


#lista-todos-expositores a, #lista-resultado-expositores a {
    color: black;
	font-weight: normal;
}

#lista-todos-expositores a:hover, #lista-resultado-expositores a:hover {
    color: #c23529;
	font-weight: normal;
}



/* AÑADIDO PARA EL MENU */
/* Estilos para el menú en escritorio */
.main-menu {
    display: flex;
    justify-content: space-around;
    background-color: #000;
    padding: 0 0;
	height: 110px;
}

.main-menu ul {
    display: flex;
    justify-content: space-around;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu li {
    flex: 1;
    text-align: center;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px;
    display: flex;
    font-weight: normal;
	vertical-align: middle;
	justify-content: center;
    align-items: center;
    height: 90px;
}

.main-menu a:hover {
    background-color: #444;
    color: #fff;
}

/* Estilos para el menú hamburguesa en móviles */
.hamburger-menu {
    display: none;
    align-items: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
}

.hamburger-icon {
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 18px;
}

.hamburger-icon div {
    width: 25px;
    height: 3px;
    background-color: white;
}

@media (max-width: 768px) {
    /* Ajustes de la cabecera y el menú en móviles */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-menu.show {
        display: flex;
    }

    .hamburger-menu {
        display: flex;
    }

    .main-menu li {
        flex: unset;
        text-align: left;
        padding: 10px 20px;
    }
}
/* FIN DEL AÑADIDO PARA EL MENU */

/* AÑADIDO PARA EL BUSCADOR DE EXPOSITORES */ 
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

#searchInput {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 60%;
    max-width: 400px;
    margin-right: 10px;
}

.search-container button {
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    background-color: #c23529;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	margin: 5px;
}

.search-container button:hover {
    background-color: #a82822;
}
/* FIN DEL AÑADIDO PARA EL BUSCADOR DE EXPOSITORES */ 

/* AÑADIDO PARA EL SHADOWBOX */
/* Estilos para el Shadowbox */
/*
.shadowbox {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.shadowbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}
*/

.shadowbox {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
  }
  
  .shadowbox img {
    width: 90%;
    height: 90%;
    border-radius: 8px;
    object-fit: contain;
  }

  /* Contenedor de la imagen */
/* Contenedor de la imagen */
.image-container {
    position: relative; /* Necesario para posicionar los marcadores */
    width: 100%; /* Asegura que el contenedor ocupe todo el espacio disponible */
    max-width: 90%; /* Mantener un límite */
    margin: 0 auto; /* Centrar el contenedor */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Imagen del plano */
  .plano {
    /*
    width: 100%; /* Forzar a ocupar el contenedor completo */
    /*
    height: auto; /* Mantener proporciones */
    max-width: 90%;
    max-height: 90%;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
  }
  
  /* Contenedor de marcadores */
  #marcadores-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  
  /* Estilos de marcadores */
  .marcador {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 0, 0, 0.3);
    border: 2px solid red;
    transform: translate(-50%, -50%);
    animation: pulsar 1s infinite;
    pointer-events: auto; /* Permitir interacción con los marcadores */
  }
  
  @keyframes pulsar {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
  }
/*
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 24px;
  color: #c23529;
  cursor: pointer;
}
*/

.close-btn{
    position: absolute;
    top: 20px;
    right: 30px;
    padding: 10px 15px;
    font-size: 1rem;
    background-color: #c23529;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1001;
}

/* Shadowbox ajustado para múltiples imágenes */
/*
.pabellon-img {
  display: none;
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}
*/

.pabellon-img {
    display: none;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    object-fit: contain;
  }

.nav-buttons {
  position: absolute;
  bottom: 20px;
  display: flex;
  gap: 10px;
}

.nav-buttons button {
  padding: 10px 15px;
  font-size: 1rem;
  background-color: #c23529;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.nav-buttons button:hover {
  background-color: #a82822;
}

/* Estilo del botón activo */
.nav-buttons button.activo {
  background-color: #a82822;
  color: #fff;
}

/* Estilo para resaltar un área específica en el mapa */
.area-resaltada {
  outline: 3px solid red; /* Borde rojo */
  background-color: rgba(255, 0, 0, 0.3); /* Fondo semitransparente */
}

@keyframes pulsar {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.5);
    }
    100% {
      transform: scale(1);
    }
  }
  
  .area-animada {
    animation: pulsar 1s infinite;
  }

/* FIN DEL AÑADIDO PARA EL SHADOWBOX */

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .schedule-item {
        display: flex;
        flex-direction: column;
    }

    .thumbnail {
        width: 100%;
        height: auto;
        float: none;
        margin: 10px 0;
    }

    .time {
        font-size: 1.1em;
        margin-right: 10px;
    }

    .title {
        font-size: 1.2em;
    }

    .description {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 0;
        height: 60px;
    }

    .header-content {
        justify-content: center;
    }

    .logo {
        width: 120px;
        height: auto;
        margin-left: 0;
    }

    h1 {
        font-size: 1.2em;
        line-height: 60px;
    }

    .container {
        padding: 10px;
    }

    .time {
        font-size: 1em;
        margin-right: 10px;
    }

    .title {
        font-size: 1.1em;
    }

    footer {
        padding: 15px;
    }
}
