/* ====================================================
   Avisos Subdirección Académica - CECyT 10
   Hoja de estilos principal
   ==================================================== */

:root {
  --guinda: #7a0026;
  --guinda-osc: #5a001c;
  --dorado: #c79b3a;
  --dorado-claro: #faf3e8;
  --negro: #14181f;
  --gris-bg: #f5f5f3;
  --gris-borde: #e2e0db;
  --gris-texto: #5f5e5a;
  --texto: #2c2c2a;
  --verde: #27500a;
  --verde-bg: #eaf3de;
  --rojo: #791f1f;
  --rojo-bg: #fcebeb;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--texto);
  background: var(--gris-bg);
  line-height: 1.5;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; cursor: pointer; }

/* === Header === */
.header-app {
  background: var(--guinda);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.header-marca { display: flex; align-items: center; gap: 14px; }

/* Logo propio simple */
.logo-app {
  width: 52px;
  height: 52px;
  background: var(--dorado);
  color: var(--guinda);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -1px;
  flex-shrink: 0;
  border: 2px solid #fff;
}
.logo-app .punto {
  width: 6px;
  height: 6px;
  background: var(--guinda);
  border-radius: 50%;
  margin-left: 1px;
}

.header-titulo .marca-superior {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.9;
  text-transform: uppercase;
  margin-bottom: 1px;
}
.header-titulo .marca-principal {
  font-size: 18px;
  font-weight: 600;
}
.header-titulo .marca-sub {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 1px;
}

.header-acceso {
  text-align: right;
  font-size: 13px;
}
.header-acceso .usuario { opacity: 0.95; font-weight: 500; }
.header-acceso .rol { font-size: 11px; opacity: 0.7; margin-top: 2px; }
.header-acceso a {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 6px;
  border: 1px solid rgba(255,255,255,0.25);
}
.header-acceso a:hover { background: rgba(255,255,255,0.25); }

.linea-dorada { background: var(--dorado); height: 4px; }

/* Barra de sesión global */
.barra-sesion-global {
  background: var(--dorado);
  color: #fff;
  padding: 8px 24px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}
.barra-sesion-global .btn-salir-global {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.barra-sesion-global .btn-salir-global:hover { background: rgba(255,255,255,0.3); }

/* === Navegación === */
.nav-principal {
  background: #fff;
  border-bottom: 1px solid var(--gris-borde);
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.nav-principal a {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--gris-texto);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
}
.nav-principal a:hover { color: var(--guinda); }
.nav-principal a.activo {
  color: var(--guinda);
  border-bottom-color: var(--dorado);
  font-weight: 600;
}

/* === Contenedor === */
.contenedor {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

/* === Sidebar mejorado con contactos === */
.sidebar {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border: 1px solid var(--gris-borde);
  border-radius: 10px;
  padding: 18px;
  height: fit-content;
  position: sticky;
  top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sidebar h3 {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--guinda);
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--dorado);
  font-weight: 700;
}
.sidebar-intro {
  font-size: 10px;
  color: var(--gris-texto);
  margin-bottom: 14px;
  font-style: italic;
}

.jefatura-card {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.jefatura-card:hover {
  border-color: var(--dorado);
  box-shadow: 0 2px 6px rgba(199, 155, 58, 0.15);
}
.jefatura-card.activa {
  background: var(--dorado-claro);
  border-left-color: var(--guinda);
  border-color: var(--dorado);
}
.jefatura-link {
  display: block;
  padding: 10px 12px 6px;
  text-decoration: none;
  color: inherit;
}
.jefatura-link:hover { text-decoration: none; }
.jefatura-nombre {
  font-size: 13px;
  font-weight: 700;
  color: var(--guinda);
  margin-bottom: 2px;
  line-height: 1.3;
}
.jefatura-responsable {
  font-size: 11px;
  color: var(--texto);
  line-height: 1.3;
  font-weight: 500;
  margin-bottom: 1px;
}
.jefatura-puesto {
  font-size: 10px;
  color: var(--gris-texto);
  font-style: italic;
}
.jefatura-contactos {
  padding: 6px 12px 10px;
  border-top: 1px dashed var(--gris-borde);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contacto-item {
  font-size: 10px;
  color: var(--gris-texto);
  display: inline-block;
}
.correo-link {
  color: var(--guinda);
  text-decoration: none;
  word-break: break-all;
}
.correo-link:hover { text-decoration: underline; }

.quitar-filtro {
  display: block;
  margin-top: 10px;
  padding: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--guinda);
  text-decoration: none;
  border: 1px dashed var(--guinda);
  border-radius: 4px;
}
.quitar-filtro:hover { background: var(--dorado-claro); }

.sidebar-pie {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--dorado);
  text-align: center;
}

/* Compatibilidad con la clase vieja */
.jefatura-item {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  display: block;
}
.jefatura-item:hover { background: var(--gris-bg); }
.jefatura-item.activa {
  background: var(--dorado-claro);
  border-left-color: var(--dorado);
}
.jefatura-meta { font-size: 11px; color: var(--guinda); margin-top: 4px; font-weight: 600; }

/* === Contenido === */
.contenido h1 { font-size: 22px; color: var(--texto); margin-bottom: 4px; }
.periodo { font-size: 13px; color: var(--gris-texto); margin-bottom: 20px; }

.descripcion-vista {
  background: #fff;
  border-left: 4px solid var(--dorado);
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--gris-texto);
}

.barra-acciones {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-publicar {
  background: var(--guinda);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-publicar:hover { background: var(--guinda-osc); }
.btn-publicar::before { content: "+"; font-size: 18px; line-height: 1; }

/* Info de privados ocultos */
.info-privados {
  background: var(--dorado-claro);
  border: 1px dashed var(--dorado);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13px;
  color: #5a4416;
  display: flex;
  gap: 10px;
  align-items: center;
}
.info-privados .candado-mini {
  width: 32px;
  height: 32px;
  background: var(--guinda);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.info-privados a {
  color: var(--guinda);
  font-weight: 600;
  text-decoration: underline;
}

/* === Avisos === */
.aviso {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-left: 4px solid var(--guinda);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: box-shadow 0.15s;
}
.aviso:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.aviso.dorado { border-left-color: var(--dorado); }
.aviso.gris { border-left-color: var(--gris-texto); }
.aviso.vencido { opacity: 0.7; border-left-color: #aaa; background: #fafafa; }
.aviso.privado { border-left-color: var(--guinda); border-left-width: 6px; }

.aviso-etiquetas { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.etiqueta {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.et-academico { background: #fcebeb; color: #791f1f; }
.et-general { background: #faeeda; color: #633806; }
.et-urgente { background: var(--guinda); color: #fff; }
.et-docentes { background: #eaf3de; color: #27500a; }
.et-estudiantes { background: #e6f1fb; color: #0c447c; }
.et-matutino { background: #faece7; color: #712b13; }
.et-vespertino { background: #efe7f7; color: #3c2454; }
.et-jefatura { background: #f1efe8; color: #444441; }
.et-vencida { background: #ddd; color: #555; }
.candado-privado {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--guinda);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-notificado {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--verde-bg);
  color: var(--verde);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.aviso h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--texto);
}
.aviso .contenido-aviso {
  font-size: 13px;
  color: var(--gris-texto);
  line-height: 1.6;
  margin-bottom: 10px;
}
.aviso-meta {
  font-size: 11px;
  color: #888;
  border-top: 1px dashed var(--gris-borde);
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.aviso-meta strong { color: var(--guinda); font-weight: 600; }

.aviso-archivo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gris-bg);
  border: 1px solid var(--gris-borde);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--guinda);
  text-decoration: none;
  margin-top: 8px;
}
.aviso-archivo:hover { background: var(--dorado-claro); }

/* === Departamentos cards === */
.grid-deptos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.depto-card {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-top: 4px solid var(--dorado);
  border-radius: 8px;
  padding: 18px;
  transition: all 0.15s;
}
.depto-card:hover {
  box-shadow: 0 4px 12px rgba(122,0,38,0.12);
  border-top-color: var(--guinda);
  transform: translateY(-2px);
}
.depto-card h3 {
  font-size: 14px;
  color: var(--guinda);
  margin-bottom: 8px;
  border: none;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}
.depto-card .responsable { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.depto-card .puesto { font-size: 12px; color: var(--gris-texto); margin-bottom: 10px; }
.depto-card .contacto { font-size: 12px; color: var(--gris-texto); }
.depto-card .contacto a { color: var(--guinda); text-decoration: underline; }
.depto-card .badge-avisos {
  display: inline-block;
  margin-top: 10px;
  background: var(--dorado-claro);
  color: var(--guinda);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

/* === Estado vacío === */
.estado-vacio {
  background: #fff;
  border: 2px dashed var(--gris-borde);
  border-radius: 8px;
  padding: 50px 20px;
  text-align: center;
  color: var(--gris-texto);
}
.estado-vacio h3 {
  color: var(--guinda);
  margin-bottom: 8px;
  font-size: 16px;
  border: none;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

/* === Login === */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #7a0026 0%, #5a001c 100%);
}
.login-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-header {
  background: var(--guinda);
  color: #fff;
  padding: 30px;
  text-align: center;
  border-bottom: 4px solid var(--dorado);
}
.login-header .logo-app {
  margin: 0 auto 14px;
  width: 64px;
  height: 64px;
  font-size: 22px;
}
.login-header h1 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.login-header .sub {
  font-size: 12px;
  opacity: 0.85;
}
.login-body {
  padding: 30px;
}
.login-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--texto);
}
.login-body input[type="text"],
.login-body input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gris-borde);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 16px;
}
.login-body input:focus {
  outline: none;
  border-color: var(--guinda);
  box-shadow: 0 0 0 3px rgba(122,0,38,0.1);
}
.login-body .btn-acceder {
  width: 100%;
  background: var(--guinda);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.login-body .btn-acceder:hover { background: var(--guinda-osc); }
.login-error {
  background: var(--rojo-bg);
  border: 1px solid #f5c4b3;
  color: var(--rojo);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 14px;
}
.login-volver {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
}
.login-volver a { color: var(--guinda); }

/* === Modal === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal-overlay.activo { display: flex; }
.modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 640px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal-header {
  background: var(--guinda);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 { font-size: 16px; font-weight: 600; }
.modal-cerrar {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.modal-cuerpo { padding: 24px; max-height: 70vh; overflow-y: auto; }
.campo { margin-bottom: 16px; }
.campo label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--texto);
}
.campo label .req { color: var(--guinda); }
.campo input[type="text"],
.campo select,
.campo textarea,
.campo input[type="date"],
.campo input[type="email"],
.campo input[type="file"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gris-borde);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: var(--texto);
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--guinda);
  box-shadow: 0 0 0 3px rgba(122,0,38,0.1);
}
.campo textarea { resize: vertical; min-height: 90px; }
.grupo-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks-grupo { display: flex; gap: 16px; flex-wrap: wrap; }
.checks-grupo label {
  font-weight: 400;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.aviso-privacidad-form {
  font-size: 11px;
  color: var(--guinda);
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--dorado-claro);
  border-radius: 4px;
  border-left: 3px solid var(--dorado);
}
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--gris-borde);
  background: var(--gris-bg);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.btn {
  padding: 9px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.btn-secundario {
  background: #fff;
  color: var(--gris-texto);
  border: 1px solid var(--gris-borde);
}
.btn-secundario:hover { background: var(--gris-bg); }
.btn-primario { background: var(--guinda); color: #fff; }
.btn-primario:hover { background: var(--guinda-osc); }
.btn-peligro { background: #b71c1c; color: #fff; }

/* Sección de notificación */
.seccion-notif {
  background: var(--gris-bg);
  border: 1px solid var(--gris-borde);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 16px;
}
.seccion-notif-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.seccion-notif-header .icono-correo {
  width: 30px;
  height: 30px;
  background: var(--guinda);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.seccion-notif-header label {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.seccion-notif .descripcion {
  font-size: 11px;
  color: var(--gris-texto);
  margin-top: 4px;
  margin-left: 40px;
}
.notif-detalles {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--gris-borde);
}
.notif-detalles.activo { display: block; }
.tipo-destinatario-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: 6px;
  padding: 3px;
  margin-bottom: 12px;
}
.tab-tipo {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  color: var(--gris-texto);
}
.tab-tipo.activo { background: var(--guinda); color: #fff; }
.tab-tipo:not(.activo):hover { background: var(--dorado-claro); color: var(--guinda); }
.panel-tipo { display: none; }
.panel-tipo.activo { display: block; }

/* Mensajes */
.mensaje-flash {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}
.mensaje-flash.exito {
  background: var(--verde-bg);
  color: var(--verde);
  border: 1px solid #c0dd97;
}
.mensaje-flash.error {
  background: var(--rojo-bg);
  color: var(--rojo);
  border: 1px solid #f5c4b3;
}

/* Calendario */
.calendario-mes {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}
.calendario-mes h3 {
  color: var(--guinda);
  font-size: 16px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--dorado);
  padding-bottom: 8px;
}
.evento {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--gris-borde);
}
.evento:last-child { border: none; }
.evento-fecha {
  background: var(--guinda);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.evento-fecha .dia { font-size: 18px; font-weight: 700; line-height: 1; }
.evento-fecha .mes { font-size: 9px; text-transform: uppercase; opacity: 0.85; margin-top: 2px; }
.evento-info h4 { font-size: 14px; margin-bottom: 3px; }
.evento-info p { font-size: 12px; color: var(--gris-texto); }

/* === Footer === */
.footer {
  background: var(--negro);
  color: #fff;
  padding: 28px 24px;
  margin-top: 40px;
  font-size: 13px;
}
.footer-contenido {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
.footer h4 {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--dorado);
}
.footer p { opacity: 0.8; line-height: 1.6; font-size: 12px; }
.footer a { color: var(--dorado); text-decoration: underline; }
.footer-derechos {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  opacity: 0.6;
  font-size: 11px;
}

/* Responsive */
@media (max-width: 900px) {
  .contenedor { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-contenido { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-app { padding: 14px; }
  .header-titulo .marca-principal { font-size: 15px; }
  .header-acceso { display: none; }
  .grupo-2col { grid-template-columns: 1fr; }
}

/* ========== Botón Instalar app (PWA) ========== */
.btn-pwa-instalar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--dorado);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(199, 155, 58, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-pwa-instalar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(199, 155, 58, 0.5);
}

@media (max-width: 700px) {
  .btn-pwa-instalar {
    bottom: 80px; /* arriba del botón publicar */
    left: 16px;
    padding: 10px 16px;
    font-size: 12px;
  }
  .btn-pwa-instalar span { display: none; }
  .btn-pwa-instalar { padding: 12px; border-radius: 50%; }
}

/* Pestaña destacada de Atención a Padres */
.link-padres {
  background: linear-gradient(135deg, var(--dorado) 0%, #b8862a 100%);
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 18px !important;
  font-weight: 600;
  border-bottom: 3px solid transparent !important;
  transition: transform 0.15s, box-shadow 0.15s;
  margin: 0 4px;
}
.link-padres:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(199, 155, 58, 0.4);
  color: #fff !important;
}
/* ===== Menú desplegable SOLO en móvil ===== */
.nav-toggle { display: none; }

@media (max-width: 768px) {

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 32px);
    margin: 10px 16px;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--guinda);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
  }

  /* Ocultar menú en móvil por defecto */
  .nav-principal {
    display: none !important;
    width: calc(100% - 32px);
    margin: 0 16px 12px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
  }

  /* Mostrar al abrir */
  body.nav-open .nav-principal {
    display: block !important;
  }

  /* Links en vertical */
  .nav-principal a {
    display: block;
    padding: 14px 12px;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,.08);
    white-space: normal;
  }

  .nav-principal a:last-child { border-bottom: 0; }
}
.sugerencias { position: relative; }
.lista-sugerencias{
  margin:0; padding:0; list-style:none;
  border:1px solid #ccc; max-height:220px; overflow:auto;
  background:#fff;
  border-radius: 6px;
}
.lista-sugerencias li{
  padding:8px 10px; cursor:pointer;
}
.lista-sugerencias li:hover{ background:#f2f2f2; }
