* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a{
  text-decoration: none;
}

body{
    font-size: arial;
  background-color: rgb(255, 255, 255);
  min-height: 100vh;
  margin: 0 auto;
  font-family: Helvetica;
  font-size: 1.2rem;
  display: grid;
  grid-template: 
    "header" 
    "hero" 500px
    "all-event"
    "footer"
}

 header{
    grid-area: header;
  }

  .hero{
     grid-area: hero;
    background-size: cover;      /* Ajusta la imagen para cubrir todo el fondo */
  background-repeat: no-repeat; /* Evita que la imagen se repita */
  background-position: center;  
  }

  /* variantes */
.hero.mesas_redondas {
  background-image: url('../images/mesas.webp');
}

.hero.conversatorios {
  background-image: url('../images/conferencias.webp');
}

.hero.conferencias {
  background-image: url('../images/conversatorios.webp');
}

.hero.nombramientos_de_titulares {
  background-image: url('../images/nombramiento.webp');
}

.hero.semana_granados_chapa {
  background-image: url('../images/semana.webp');
}


  .all-event{
    grid-area: all-event;
    display: flex;
    flex-direction: column;
    background-color: #EFEFED;
    width: 100%;
    margin: 0 auto;
    gap: 15px;
  }

  footer{
    grid-area: footer;
  }

.name-event{
    font-size: 40px;
    padding: 10px;
    font-weight: bold;
    max-width: 1500px;
}

.evento-individual {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 1200px; 
  width: 100%; 
  margin: 0 auto;
  border-bottom: 1px solid black;
  padding: 15px 20px 3rem 20px;
  box-sizing: border-box;
}

/* contenedor de texto */
.informacion {
  flex: 1 1 400px; 
  font-size: 1.2rem;
  min-width: 300px; 
}

/* contenedor de imagen/video */
.img-event {
  flex: 1 1 400px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* iframe responsive */
.img-event iframe {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  border: none;
}

.title{
    font-weight: bold;
}

.date{
    color: rgb(0, 149, 208);
    font-weight: bold;
}

.Regresar{
  margin-top: 1rem;
  align-self: center;
  justify-self: center;
  font-size: 1.5rem;
  background-color: rgb(219, 113, 0);
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 1rem;
  display: flex;
  width: 280px;
  height: 50px;
  justify-content: center;
  align-items: center;
}

/* Responsive */
@media (max-width: 1200px) {
  .evento-individual {
    width: 100%;
    padding: 10px;
  }

  .name-event {
    font-size: 32px;
  }

  .informacion {
    font-size: 22px;
  }
}

@media (max-width: 992px) {
  .evento-individual {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .img-event iframe {
    width: 100%;
    max-width: 600px;
  }

  .informacion {
    text-align: left;
    width: 100%;
    flex-basis: 0px;
    text-align: center;
    padding-bottom: 3rem;
  }

  .img-event{
    flex-basis: 0px;
  }
}

@media (max-width: 768px) {
  body {
    grid-template: 
      "header"
      "hero" 360px
      "all-event"
      "footer";
  }

  .name-event {
    font-size: 28px;
    text-align: center;
  }

  .evento-individual {
    width: 100%;
    gap: 10px;
  }

  .informacion {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  body{
  display: grid;
  grid-template: 
    "header" 
    "hero" 120px
    "all-event"
    "footer"
}
  .name-event {
    font-size: 24px;
  }

  .informacion {
    font-size: 18px;
  }

  .img-event iframe {
    max-width: 100%;
  }

  .evento-individual{
    display: flex;
    flex-direction: column;
  }
   .informacion {
    text-align: left;
    width: 100%;
    flex-basis: 0px;
    text-align: center;
    padding-bottom: 3rem;
  }

  .img-event{
    flex-basis: 0px;
  }
  .Regresar{
  }
  
}
