/* anuncios.css
   Anuncios como tarjetas tipo sticky notes (28 nov 2026, Victor):
   ya no texto por líneas, sino notas adhesivas con fecha y hora,
   título y contenido, en 3 columnas dentro del modal (alumno y
   admin). Apilado sin espacios muertos: columnas CSS independientes
   (column-count) con break-inside: avoid — si una nota crece, la de
   abajo baja sola dentro de su columna, sin huecos, como las
   tarjetas del perfil (.info-par/.info-col en perfil.css). En
   angosto las columnas se reducen (2 y luego 1), como el resto del
   sistema. Fondo verde claro suave — tinte claro de la misma familia
   que el botón Guardar del modal de foto de perfil (#2e9e44) —,
   limpio, sin efectos exagerados (sin rotación, sin zoom, sin
   contornos). */

.sgdr-anuncios-barra {
  display: flex;
  justify-content: flex-end;
  padding: 16px 12px 4px;
}

/* Botoncito "Nuevo +"/"Crear +" (2cz): mismo estandar de pastilla que
   la ventana de confirmacion. */
.sgdr-anuncios-nuevo {
  border: 1px solid #1670c0;
  border-radius: 10px;
  padding: 10px 18px;
  background: #1670c0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}

.sgdr-anuncios-nuevo:hover {
  background: #0f5da8;
  border-color: #0f5da8;
}

.sgdr-anuncios-columnas {
  column-count: 3;
  column-gap: 16px;
  padding: 16px 12px;
}

.sgdr-anuncio-nota {
  position: relative;
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 6px;
  background: #e6f4e8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  color: #1c2b3a;
}

.sgdr-anuncio-fecha {
  display: block;
  margin-bottom: 6px;
  color: #5b6b7c;
  font-size: 13px;
}

.sgdr-anuncio-titulo {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.sgdr-anuncio-texto {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Anuncio dado de baja: atenuado y con su marca de inactivo, para
   distinguirlo de los activos sin sacarlo de la lista. */
.sgdr-anuncio-nota--inactivo {
  opacity: 0.55;
}

.sgdr-anuncio-inactivo {
  display: block;
  margin-top: 8px;
  color: #5b6b7c;
  font-size: 13px;
  font-weight: 700;
}

/* Submenú de tres puntitos en la esquina de la tarjeta (SOLO admin):
   mismo patrón que el de las notificaciones (.sgdr-noti-menu). Solo
   el icono, sin texto visible; las opciones son Editar, Dar de baja
   (o Activar) y Eliminar. */
.sgdr-anuncio-menu {
  position: absolute;
  top: 8px;
  right: 8px;
}

.sgdr-anuncio-menu-boton {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #5b6b7c;
  cursor: pointer;
}

.sgdr-anuncio-menu-boton:hover {
  color: #1c2b3a;
  background: rgba(0, 0, 0, 0.05);
}

.sgdr-anuncio-menu-boton svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sgdr-anuncio-menu-opciones {
  position: absolute;
  top: 34px;
  right: 0;
  z-index: 5;
  display: none;
  min-width: 150px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.sgdr-anuncio-menu.abierto .sgdr-anuncio-menu-opciones {
  display: block;
}

.sgdr-anuncio-menu-opciones button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #1c2b3a;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.sgdr-anuncio-menu-opciones button:hover {
  background: #f3f7fc;
}

.sgdr-anuncio-menu-opciones button[data-eliminar] {
  color: #c0392b;
}

.sgdr-anuncio-menu-opciones button[data-eliminar]:hover {
  background: #fff2f2;
}

/* Formulario de crear/editar dentro del segundo modal (doble modal):
   campos apilados, sin adornos. */
.sgdr-anuncio-form {
  padding: 16px;
}

.sgdr-anuncio-form .form-label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 700;
}

.sgdr-anuncio-form .form-label:first-child {
  margin-top: 0;
}

.sgdr-anuncio-form .form-control {
  width: 100%;
  box-sizing: border-box;
}

.sgdr-anuncio-form .text-danger {
  margin: 8px 0 0;
}

.sgdr-anuncio-form-botones {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .sgdr-anuncios-columnas {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .sgdr-anuncios-columnas {
    column-count: 1;
  }
}
