.page{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 18px 40px 18px;
  font-family: Arial, Helvetica, sans-serif;
}

/* CABECERA */
.header{
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 22px;
}

.logo{
  width: 90px;
  height: auto;
}

.header-text .dept{
  color: #0b4ea2;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: .5px;
}

.header-text .call{
  color: #0b4ea2;
  font-weight: 800;
  font-size: 18px;
  margin-top: 6px;
  line-height: 1.15;
}

.header-text .course{
  color: #0b4ea2;
  font-weight: 800;
  font-size: 16px;
  margin-top: 6px;
}

/* BLOQUES */
.blocks{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.block{
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.icon-wrap{
  width: 78px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.icon{
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.block-title{
  color: #0b4ea2;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 2px;
}

.block-body{
  font-size: 14px;
  color: #111827;
}

.block-body ul{
  margin: 6px 0 0 18px;
}

.note{
  font-size: 12px;
  color: #374151;
}

.block-wide .two-col{
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 16px;
  align-items: start;
}

.qr img{
  width: 160px;
  height: auto;
}

/* DIVISOR */
.divider{
  margin: 18px 0 18px 0;
  border: none;
  height: 3px;
  background: #0b4ea2;
  opacity: .75;
}

/* LÍNEAS */
.lines-title{
  background: #8fb3d9;
  color: #0b2f63;
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 12px;
  border: 1px solid #6f97c5;
}

.lines-list{
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.lines-list li{
  margin: 6px 0;
}

.lines-list a{
  color: #b91c1c;
  font-weight: 700;
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 700px){
  .block-wide .two-col{ grid-template-columns: 1fr; }
  .qr img{ width: 140px; }
}
.img-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 10px 0 18px 0;
}

.img-row img{
  width: 100%;
  height: 170px;      /* ajusta altura si quieres */
  object-fit: cover;  /* recorta para que queden uniformes */
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.img-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 10px 0 18px 0;
}

/* CLAVE: Quarto mete cada imagen dentro de un <p>. Esto evita que apilen */
.img-row > p{
  margin: 0;
  display: contents; /* “desenvuelve” el <p> y deja a los <img> como hijos directos del grid */
}

.img-row img{
  width: 100%;
  height: 170px;      /* ajusta si quieres más alto/bajo */
  object-fit: cover;  /* recorta para que queden uniformes */
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.subgroup-header{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px 0;
}

.subgroup-logo{
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  padding: 4px;
}

.subgroup-title{
  margin: 0;
  color: #0b4ea2;
  font-weight: 800;
}

@media (max-width: 700px){
  .img-row{ grid-template-columns: 1fr; }
  .img-row img{ height: auto; }
}

/* En móvil: se apilan */
@media (max-width: 700px){
  .img-row{
    grid-template-columns: 1fr;
  }
  .img-row img{
    height: auto;
  }
}

.subgroup-header{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px 0;
}

.subgroup-logo{
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  padding: 4px;
}

/* Aquí la “magia”: el título dentro del header no debe tener margen */
.subgroup-title{
  margin: 0;
  color: #0b4ea2;
  font-weight: 800;
}
.subgroup-header{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px 0;
}

.subgroup-logo{
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  padding: 4px;
}

.subgroup-title{
  margin: 0;
  color: #0b4ea2;
  font-weight: 800;
}
