html, body {
  overflow-x: hidden;
  max-width: 100%;
}
img {
  max-width: 100%;
  height: auto;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  background-color: #f4f4f4;
  color: #222;
}

/* BANNER */
.banner {
  background-color: #0071F7 ; /* azul Ford */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  color: white;
}
.banner-secundario {
  display: block;
  max-width: 100%;
  max-height: 400px;
  width: auto;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
}


.banner-title {
  font-size: 1.8rem;
  text-align: center;
  flex: 1;
}

.logo {
  height: 100px;
  object-fit: contain;
}

.contenedor-boton {
  text-align: center;
  margin: 25px 0;
}

.btn-preregistro {
  display: inline-block;
  background-color: #0071F7; /* azul Ford */
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-preregistro:hover {
  background-color: #00224d;
  transform: scale(1.05);
}


/* DESCRIPCIÓN */
.descripcion {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
  text-align: center;
}

.descripcion h2 {
  color: #003478;
  margin-bottom: 10px;
}

.descripcion p {
  line-height: 1.6;
  font-size: 1.05rem;
}
.texto-intro {
  max-width: 900px;
  margin: 20px auto;
  text-align: justify;
}

.texto-intro p {
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 1.05rem;
  color: #333;
}

.texto-intro p strong {
  color: #003478; /* azul Ford */
  font-size: 1.1rem;
}
.ponente-bloque {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.ponente-foto {
  width: 120px;
  height: 120px;
  min-width: 120px;
  max-width: 120px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.ponente-texto {
  flex: 1 1 250px;
  min-width: 0;
}

.ponente-texto h5 {
  margin: 0 0 6px 0;
  color: #003478;
  font-size: 1.1rem;
}

.ponente-texto p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: justify;
}

@media (max-width: 480px) {
  .ponente-bloque {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}



/* NOTA */
.nota {
  max-width: 700px;
  margin: 20px auto;
  padding: 12px 20px;
  font-size: 0.95rem;
  color: #333;
  text-align: center;
}

/* ===== LEYENDA DE FACULTADES ===== */
.leyenda {
  max-width: 1300px;
  margin: 0 auto 20px auto;
  padding: 15px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.leyenda h3 {
  color: #003478;
  margin-bottom: 10px;
}

.leyenda-item {
  display: inline-flex;
  align-items: center;
  margin: 6px 12px;
  font-size: 0.95rem;
}

.color-box {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.color-box.comunidad  { background-color: #FF5900; }
.color-box.ingenieria { background-color: #1B3E6F; }
.color-box.diseno     { background-color: #7B3F9F; }
.color-box.psicologia { background-color: #2E9E4F; }
.color-box.negocios   { background-color: #F2C94C; }

/* CALENDARIO EN COLUMNAS */
.calendario {
  max-width: 1300px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dia {
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dia h3 {
  color: #003478;
  text-align: center;
  font-size: 1.3rem;
  padding-bottom: 10px;
}

.dia hr {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin-bottom: 12px;
}

/* TARJETAS DE ACTIVIDAD */
.actividad {
  background-color: #f4f6f8;
  border-left: 6px solid #999;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.actividad:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.actividad-titulo {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.actividad-hora {
  font-size: 0.85rem;
  color: #5a6a7a;
}

/* ===== COLORES POR FACULTAD ===== */
.actividad.comunidad  { border-left-color: #FF5900; } /* Toda la comunidad universitaria */
.actividad.ingenieria { border-left-color: #1B3E6F; } /* Ingeniería */
.actividad.diseno     { border-left-color: #7B3F9F; } /* Diseño */
.actividad.psicologia { border-left-color: #2E9E4F; } /* Psicología */
.actividad.negocios   { border-left-color: #F2C94C; } /* Negocios */

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background: white;
  padding: 30px;
  max-width: 550px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 10px;
  position: relative;
  text-align: center;
}

.modal-contenido h3 {
  color: #003478;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.modal-datos {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 15px;
}

.modal-datos p {
  font-size: 0.95rem;
}

.modal-datos span:first-child {
  color: #003478;
  font-weight: 600;
}

.dato-valor {
  color: #c9971e;
  font-weight: 600;
}

.modal-descripcion {
  color: #444;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 20px;
}

.modal-ponentes-titulo {
  color: #003478;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.modal-contenido hr {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin-bottom: 15px;
}

.modal-ponentes {
  font-weight: 500;
  margin-bottom: 15px;
  color: #333;
}

.modal-contenido img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.modal-semblanza {
  font-style: italic;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 15px;
  text-align: left;
}

.modal-imagenes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.modal-imagenes img {
  width: 100%;
  max-width: 250px;
  border-radius: 6px;
  object-fit: cover;
}



.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.6rem;
  cursor: pointer;
  color: #555;
}

.cerrar:hover {
  color: #000;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #003478;
  color: white;
  margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .calendario {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .calendario {
    grid-template-columns: 1fr;
  }
  .banner {
    flex-direction: column;
    gap: 10px;
  }
}
