.containerFuera {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  background-color: rgb(255, 255, 255);
  width: 98%;
  min-height: 400px;
  height: auto;
}

.contentFiles {
  width: 25%;

  height: fit-content;
  min-height: 400px;
  border: 1px solid #0277BD;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.title {
  text-align: center;
  font-size: 30px;
  width: 100%;
  background-color: #0277BD;
  color: white;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.files{
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.btnFile{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* background-color: #c1f3ff; */
  padding: 20px;
  border-radius: 20px;
  width: 110px;
}

.btnFile:hover{
  cursor: pointer;
  background-color: #c1f3ff;
}

.btnFile img{
  width: 75px;
  height: 75px;
}


.contentClass {
  width: 70%;
  height: auto;
  border: 1px solid;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}


.banner {

  height: 200px;
  width: auto;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.anuncios {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  width: 100%;
}

.anuncio {
  display: flex;
  flex-direction: column;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  background-color: white;
}

/* Agrupar título y fecha */
.anuncio .titulo {
  font-size: 20px;
  display: block;
}

.anuncio .fecha {
  font-size: 16px;
  color: #666;
  display: block;
  margin-bottom: 8px;
}

/* Contenedor de descripción + botón */
.anuncio-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-top: 5px;
}

.bodyC {
  flex: 1;
}
.verAnuncio{
  display: none;
}

@media (max-width: 600px) {
  .anuncio-body {
    flex-direction: row;
    align-items: center;

  }

  .anuncio .fecha {
    display: none;
  }
.verAnuncio{
  display:flex;
}
.bodyC {
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* número de líneas visibles */
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 50%;
}
::ng-deep .bodyC img {
display: none;  }
  .anuncio button {
    margin-left: 10px;

  }

 img{
  width: 60px;

 }
   ::ng-deep .mat-dialog-container {
    width: 95vw !important;
    max-width: 95vw !important;
    height: 95vh !important;
    max-height: 95vh !important;
    padding: 16px !important;
    overflow-y: auto;
    border-radius: 8px;
  }

  .mat-form-field {
    width: 100% !important;
    margin-bottom: 16px;

  }

  .tituloAnuncio{
  width: 100%
  }

  .flex-row {
    flex-direction: column !important;
  }

  .ml-10 {
    margin-left: 0 !important;

  }

  .w-responsive {
    width: 100% !important;
  }

  .NgxEditor__Wrapper {
    min-height: 150px;
  }

  .align.flex-row {
    flex-direction: column;
    gap: 12px;
  }

  .items-center.justify-center {
    width: 100%;
  }

  .yellow, .orange, .red {
    width: 80%;
  }

  .center {
    display: block;
    text-align: center;
    font-size: 20px;
    margin: 12px 0;
  }

button.btn-footer,
button.red,
button.orange,
button.yellow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 60%;
  margin: 0 auto;
  padding: 10px 0;
}

button span {
  display: flex;
  align-items: center;
  line-height: 1;
}

button mat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.btn-footer {
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
    line-height: 1; /* Evita que el texto baje */

}

  .cerrar-btn {
    margin-left: -25px;
  }
}


.btnBlue {
  background-color: #0277BD;
  border-radius: 15px;
  font-size: 18px;
  color: white;
  border: none;
  padding: 5px 7px;
  cursor: pointer;
}

.btnBlue:hover {
  background-color: #01579b;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.actionButton {
  padding: 5px;
  border-radius: 50px;
}

.actionButton:hover {
  background-color: rgb(192, 192, 192);
}

/* .bodyC {

} */


/* ____________________________________________________________________________________________________________________ */



.close {
  padding-top: 20px;
  padding-right: 20px;
  display: flex;
  justify-content: end;

}

.cerrar-b {
  background-color: #fff;
  border: none;
}

.center {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
}

.align {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}


.yellow {
  background-color: #ebac3f;

  border: none;
  color: white;
  padding: 5px 20px;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  border-radius: 6px;
  margin-right: 30px;
  height: 35px;
}

.yellow:hover {
  background-color: #c79030;
}

.orange {
  background-color: #D3672F;

  border: none;
  color: white;
  padding: 5px 20px;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  border-radius: 6px;
  height: 35px;
  margin-right: 30px;
}

.orange:hover {
  background-color: #b45728;
}


.green {
  background-color: #2a6c42;

  border: none;
  color: white;
  padding: 5px 20px;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  border-radius: 10px;
}

.green:hover {
  background-color: #18492a;

}

.red {
  background-color: red;

  border: none;
  color: white;
  padding: 5px 20px;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;

  border-radius: 6px;
  height: 35px;
}

.red:hover {
  background-color: rgb(224, 2, 2);

}
.span{
  font-weight: 600;
  font-size: 32px;
}

.w-responsive {
  width: 160px;
}


@media only screen and (max-width: 600px) {
  .containerFuera {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px;
    gap: 20px;
    overflow-x: hidden; /* evita scroll horizontal global */
  }

  .contentFiles,
  .contentClass {
    width: 95%;
    min-height: auto;
  }

  .files {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px;
  }

  .btnFile {
    min-width: 120px;
    flex-shrink: 0;
    padding: 10px;
    text-align: center;
  }

  .btnFile img {
    width: 60px;
    height: 60px;
  }

  .banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 10px;

  }



  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .span{
  font-weight: 600;
  font-size: 15px;
  margin: 0 auto 15px auto; /* centrado horizontal con margen abajo */

}



 .banner {
    display: flex !important;       /* Asegura que sea flex */
    flex-direction: column !important; /* Apilar verticalmente */
    align-items: center !important; /* Centrar horizontalmente */
    justify-content: center !important; /* Centrar verticalmente (si hay altura fija) */
    text-align: center !important; /* Centrar texto */
    padding: 10px !important;
  }

  /* La imagen, margen abajo para separación */
  .banner img {
    margin: 0 0 10px 0 !important;
  }

  /* La columna flex, también centrada */
  .banner .flex-col {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px; /* espacio pequeño entre textos */
  }

  /* Ajustar tamaño de textos para móvil */
  .banner .flex-col > span:first-child {
    font-size: 20px !important;
    color: white !important;
  }

  .banner .flex-col > span:last-child {
    font-size: 14px !important;
    color: white !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 5px;
  }

  /* Los nombres de los profesores */
  .banner .flex-col > span:last-child > span {
    font-size: 14px !important;
    margin-left: 5px !important;
  }

  .alerta {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    font-size: 10px;
    width: 80%;
  }

  .alerta mat-icon {
    font-size: 20px;
    margin-right: 10px;
  }

  .alerta .ptitle {
    font-size: 14px;
    margin: 0;
  }
   .btnBlue {
    font-size: 14px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
      margin: 0 auto 15px auto; /* centrado horizontal con margen abajo */

  }

  .btnBlue mat-icon {
    font-size: 18px;
  }
 .flex-col > span:first-child {
    font-size: 20px !important; /* nombre materia más pequeño */
  }

  .flex-col > span:last-child {
    font-size: 14px !important; /* texto profesor más pequeño */
  }

  .flex-col > span:last-child span {
    font-size: 14px !important; /* nombre(s) profesor(es) */
  }

}








