/* ═══════════════════════════════════════════════════════════════
   VARIABLES GLOBALES — paleta dark-first, Apple-inspired
   ═══════════════════════════════════════════════════════════════ */
:root {
  --accent: #007AFF;
  --accent-light: #00C6FF;
  --bg: #000000;
  --bg-card: #1C1C1E;
  --bg-input: #2C2C2E;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.6);
  --text-tertiary: rgba(255,255,255,0.4);
  --divider: rgba(255,255,255,0.1);
  --red: #FF3B30;
  --green: #34C759;
  --amber: #FFA000;
  --radius: 14px;
  --radius-lg: 20px;
}

body.light-mode {
  --bg: #F2F2F7;
  --bg-card: #FFFFFF;
  --bg-input: #F2F2F7;
  --text-primary: #000000;
  --text-secondary: rgba(0,0,0,0.6);
  --text-tertiary: rgba(0,0,0,0.4);
  --divider: rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

#app { min-height: 100vh; }

.hidden { display: none !important; }

.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--divider);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.texto-vacio {
  text-align: center;
  color: var(--text-tertiary);
  padding: 40px 20px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN / REGISTRO — glassmorphism
   ═══════════════════════════════════════════════════════════════ */
.login-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.login-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.login-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.45), rgba(0,0,0,0.85));
}
.login-overlay.oscuro {
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.7), rgba(0,0,0,0.9));
}
.login-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
}
.login-logo { height: 130px; margin-bottom: 24px; }

.glass-card {
  width: 100%;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  border: 1.2px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
}
.glass-card h1 { margin: 0 0 4px; font-size: 26px; font-weight: 700; }
.glass-card .subtitle { color: rgba(255,255,255,0.6); font-size: 13px; margin: 0 0 20px; }
.glass-card .section-label {
  color: rgba(255,255,255,0.38);
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin: 16px 0 8px;
}
.glass-field {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1.2px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 4px 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.glass-field:focus-within {
  background: rgba(255,255,255,0.12);
  border-color: rgba(0,198,255,0.7);
}
.glass-field input, .glass-field select {
  flex: 1; background: none; border: none; outline: none;
  color: white; font-size: 15px; padding: 12px 0;
}
.glass-field select { color: white; }
.glass-field select option { color: black; }
.glass-field input::placeholder { color: rgba(255,255,255,0.3); }

.hint-text { color: rgba(255,255,255,0.38); font-size: 11.5px; margin: 4px 0 16px; }
.error-text { color: var(--red); font-size: 12px; margin: 4px 0; }
.link-derecha { display: block; text-align: right; color: var(--accent-light); font-size: 13px; margin-bottom: 12px; text-decoration: none; }
.link-centro { text-align: center; font-size: 13px; color: rgba(255,255,255,0.54); margin-top: 12px; }
.link-centro a { color: var(--accent-light); font-weight: 600; text-decoration: none; }

.btn-primary {
  width: 100%; padding: 16px;
  background: var(--accent-light);
  color: white; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 600;
  cursor: pointer;
}
.btn-primary:disabled { opacity: 0.5; cursor: default; }

/* Bottom sheet de bloqueo de cuenta */
.bloqueo-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end;
}
.bloqueo-sheet {
  width: 100%; padding: 32px;
  background: #1C1C1E; border-radius: 24px 24px 0 0;
  text-align: center; color: white;
}
.bloqueo-icono { font-size: 48px; margin-bottom: 16px; }
.bloqueo-sheet h2 { margin: 0 0 12px; }
.bloqueo-sheet p { color: rgba(255,255,255,0.6); line-height: 1.5; }
.bloqueo-sheet button {
  width: 100%; margin-top: 24px; padding: 14px;
  background: none; border: 1px solid rgba(255,255,255,0.24);
  color: white; border-radius: 14px; font-weight: 600; cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   FEED / COMUNIDAD ASPIRANTES
   ═══════════════════════════════════════════════════════════════ */
.encabezado-comunidad {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 8px 12px 20px;
}
.encabezado-titulo { flex: 1; }
.titulo-linea1 { font-size: 26px; font-weight: 700; margin: 0; line-height: 1.1; }
.titulo-linea2 { font-size: 26px; font-weight: 800; color: var(--accent); margin: 0; line-height: 1.1; }
.icono-btn { background: none; border: none; font-size: 22px; cursor: pointer; padding: 8px; position: relative; }
.campanita .badge-notif {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: white;
  font-size: 9px; font-weight: 700;
  border-radius: 10px; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bg);
}

.feed-scroll { height: calc(100vh - 70px); overflow-y: auto; padding: 12px 16px 90px; position: relative; }

.fab {
  position: fixed; right: 20px; bottom: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: white; border: none;
  font-size: 26px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tarjeta-publicacion {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--divider);
  margin-bottom: 12px;
  overflow: hidden;
}
.tarjeta-header { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.avatar-circulo {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,122,255,0.15);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; position: relative;
}
.avatar-circulo img { width: 100%; height: 100%; object-fit: cover; }
.avatar-circulo.avatar-md { width: 36px; height: 36px; }
.avatar-circulo.avatar-sm { width: 28px; height: 28px; }
.tarjeta-info-autor { flex: 1; }
.tarjeta-nombre { font-size: 14px; font-weight: 700; margin: 0; }
.tarjeta-meta { font-size: 12px; color: var(--text-tertiary); margin: 2px 0 0; }
.btn-opciones { background: none; border: none; font-size: 18px; color: var(--text-tertiary); cursor: pointer; padding: 4px; }
.tarjeta-contenido { padding: 0 14px 10px; font-size: 14px; line-height: 1.35; }

.carrusel-media { position: relative; }
.carrusel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 4/5; }
.carrusel-item { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.carrusel-item img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb { width: 100%; height: 100%; background: #000; display: flex; align-items: center; justify-content: center; }
.icono-play-grande { font-size: 48px; }
.carrusel-dots { display: flex; justify-content: center; gap: 4px; padding: 8px 0; }
.carrusel-dots .dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(0,122,255,0.25); }
.carrusel-dots .dot.activo { width: 8px; background: var(--accent); }

.tarjeta-acciones { display: flex; align-items: center; gap: 4px; padding: 6px 10px 10px; }
.btn-reaccion { background: none; border: none; font-size: 20px; cursor: pointer; padding: 6px 8px; }
.contador-reaccion { font-size: 13px; font-weight: 600; cursor: pointer; margin-right: 14px; }
.btn-comentar { background: none; border: none; font-size: 13px; color: var(--text-secondary); cursor: pointer; }

/* Hojas modales (comentarios, reacciones, motivos) */
.hoja-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; display: flex; align-items: flex-end; }
.hoja-sheet { width: 100%; max-height: 85vh; background: var(--bg-card); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; }
.hoja-handle { width: 40px; height: 4px; background: var(--divider); border-radius: 2px; margin: 10px auto; }
.hoja-titulo { text-align: center; font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.hoja-divider { height: 1px; background: var(--divider); }
.hoja-scroll { overflow-y: auto; padding: 8px 14px; flex: 1; }

.comentario-burbuja { display: flex; gap: 10px; padding: 8px 0; }
.comentario-burbuja.es-respuesta { margin-left: 36px; }
.comentario-nombre { font-weight: 700; font-size: 13px; margin: 0; cursor: pointer; }
.comentario-texto { font-size: 14px; margin: 2px 0; }
.comentario-meta { display: flex; gap: 14px; font-size: 11px; color: var(--text-tertiary); }
.responder-link { font-weight: 600; cursor: pointer; }
.respuesta-indent { margin-left: 36px; }

.barra-entrada-comentario { display: flex; gap: 8px; padding: 8px 12px; align-items: center; }
.barra-entrada-comentario input {
  flex: 1; background: var(--bg-input); border: none; border-radius: 20px;
  padding: 10px 14px; color: var(--text-primary); font-size: 14px; outline: none;
}
.barra-entrada-comentario button { background: none; border: none; font-size: 26px; color: var(--accent); cursor: pointer; }
.respondiendo-a { font-size: 12px; color: var(--text-tertiary); padding: 0 12px 6px; }

.fila-reaccion { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; }
.badge-reaccion { position: absolute; right: -2px; bottom: -2px; background: var(--bg-card); border-radius: 50%; padding: 2px; font-size: 11px; }
.nombre-reaccion { font-size: 14px; font-weight: 600; }

.action-sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: flex; align-items: flex-end; }
.action-sheet { width: 100%; padding: 8px; }
.action-item {
  display: block; width: 100%; padding: 16px; margin-bottom: 8px;
  background: var(--bg-card); border: none; border-radius: 14px;
  color: var(--accent); font-size: 15px; cursor: pointer;
}
.action-item.destructivo { color: var(--red); }
.action-item.cancelar { color: var(--text-primary); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   PANTALLAS EMPUJADAS / DRAWER / GENÉRICAS
   ═══════════════════════════════════════════════════════════════ */
.pushed-screen {
  position: fixed; inset: 0; background: var(--bg); z-index: 500;
  overflow-y: auto;
}
.appbar-simple {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--bg-card); position: sticky; top: 0; z-index: 2;
}
.appbar-simple h2 { flex: 1; font-size: 17px; margin: 0; }
.btn-volver, .btn-cerrar {
  background: none; border: none; color: var(--text-primary);
  font-size: 22px; cursor: pointer; padding: 4px 8px;
}
.btn-accion-accent { background: none; border: none; color: var(--accent); font-weight: 700; font-size: 15px; cursor: pointer; }

.appbar-hero { position: sticky; top: 0; z-index: 2; padding: 10px; }
.btn-volver-hero { background: rgba(0,0,0,0.4); border: none; color: white; font-size: 22px; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; }

/* Grid genérico de section titles, cards, etc — usado en carreras y plantel */
.section-title { display: flex; align-items: center; gap: 10px; margin: 24px 16px 12px; }
.section-title-bar { width: 4px; height: 18px; border-radius: 2px; }
.section-title h3 { font-size: 17px; font-weight: 700; margin: 0; }

.info-card {
  flex: 1; padding: 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--card-color) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 20%, transparent);
}
.info-card-icono { font-size: 22px; }
.info-card-titulo { font-size: 14px; font-weight: 700; color: var(--card-color); margin: 8px 0 6px; }
.info-card-contenido { font-size: 12px; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.cards-resumen-row { display: flex; gap: 12px; margin: 0 16px; }

.objetivo-box {
  margin: 0 16px; padding: 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--obj-color) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--obj-color) 15%, transparent);
}
.objetivo-box p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); margin: 0; }

.objetivo-item { display: flex; gap: 12px; margin: 0 16px 10px; align-items: flex-start; }
.objetivo-numero { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.objetivo-titulo { font-weight: 700; font-size: 13px; margin: 0; }
.objetivo-desc { font-size: 13px; line-height: 1.55; color: var(--text-secondary); margin: 3px 0 0; }

.perfil-section { margin: 0 16px; }
.perfil-item { display: flex; gap: 12px; margin-bottom: 8px; align-items: flex-start; }
.perfil-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.perfil-item p { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

.reticula-item {
  display: flex; align-items: center; gap: 14px; margin: 0 16px 10px;
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--divider); cursor: pointer;
}
.reticula-icono { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.reticula-nombre { font-size: 14px; font-weight: 600; margin: 0; }
.reticula-clave { font-size: 11px; color: var(--text-tertiary); margin: 3px 0 0; }
.reticula-pdf-icono { font-size: 18px; margin-left: auto; }

.expansion-tile { margin: 0 16px 8px; border-radius: 16px; overflow: hidden; border: 1px solid var(--divider); }
.expansion-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; border: 1px solid transparent; }
.expansion-header::-webkit-details-marker { display: none; }
.expansion-numero, .expansion-icono { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.expansion-icono { border-radius: 10px; font-size: 18px; }
.expansion-titulo { font-size: 14px; font-weight: 600; margin: 0; }
.expansion-sub { font-size: 11px; color: var(--text-tertiary); margin: 2px 0 0; }
.expansion-body { padding: 4px 12px 12px; }

.materia-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; cursor: pointer; border-radius: 12px; }
.materia-item.sin-url { cursor: default; }
.materia-nombre { flex: 1; font-size: 13px; color: var(--text-secondary); margin: 0; }
.materia-chevron { color: var(--text-tertiary); font-size: 16px; }

.aviso-card { margin: 0 16px; padding: 16px; border-radius: 16px; background: rgba(255,160,0,0.08); border: 1px solid rgba(255,160,0,0.25); display: flex; gap: 12px; }
.aviso-titulo { font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.aviso-texto { font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); margin: 0 0 6px; }
.aviso-nota { font-size: 12.5px; line-height: 1.5; font-weight: 600; margin: 0; }

/* PDF viewer */
.pdf-viewer-overlay { position: fixed; inset: 0; background: var(--bg); z-index: 900; display: flex; flex-direction: column; }
.pdf-body { flex: 1; position: relative; }
.pdf-iframe { width: 100%; height: 100%; border: none; }
.pdf-loading, .pdf-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); gap: 8px; }
.pdf-titulo { flex: 1; font-size: 14px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-compartir, .btn-descargar { background: none; border: none; font-size: 18px; cursor: pointer; padding: 6px; }

/* Carreras: oferta educativa */
.search-bar-wrap { padding: 12px 16px 0; }
.search-bar-wrap input { width: 100%; padding: 12px 14px; border-radius: 14px; border: none; background: var(--bg-card); color: var(--text-primary); font-size: 14px; }
.chips-filtro-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; }
.filter-chip { flex-shrink: 0; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--divider); background: none; color: var(--text-secondary); font-size: 12px; cursor: pointer; }
.filter-chip.selected { border-color: var(--accent); color: var(--accent); background: rgba(0,122,255,0.15); font-weight: 700; }
.stats-oferta { display: flex; gap: 10px; padding: 0 16px 8px; }
.stat-card { flex: 1; padding: 10px 16px; border-radius: 12px; background: rgba(0,122,255,0.15); font-size: 22px; font-weight: 700; }
.stat-card span { font-size: 13px; font-weight: 400; opacity: 0.7; margin-left: 6px; }
.stat-card.stat-secondary { background: rgba(94,53,177,0.15); }
.area-header { display: flex; align-items: center; gap: 10px; margin: 8px 16px 10px; }
.area-pill { padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: rgba(0,122,255,0.15); }
.area-divider { flex: 1; height: 1px; background: var(--divider); }
.carrera-card { display: flex; align-items: center; gap: 14px; margin: 0 16px 10px; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--divider); cursor: pointer; }
.carrera-icono { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(0,122,255,0.15); }
.carrera-nombre { font-size: 14px; font-weight: 600; margin: 0; }
.carrera-siglas { font-size: 12px; color: var(--text-tertiary); margin: 3px 0 0; }
.estado-vacio { text-align: center; padding: 60px 32px; }
.estado-vacio p { color: var(--text-tertiary); margin: 4px 0; }

/* Hero de pantalla de carrera */
.carrera-hero { position: relative; padding: 60px 20px 20px; overflow: hidden; }
.carrera-hero-icono { position: absolute; right: -30px; top: -20px; font-size: 180px; }
.chip-depto { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-bottom: 10px; }
.carrera-hero h1 { font-size: 22px; font-weight: 700; margin: 0; position: relative; }
.carrera-loading { display: flex; justify-content: center; padding: 60px; }

/* Ajustes / historial genérico */
.section-label-ajustes { padding: 20px 20px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.6px; color: var(--text-tertiary); }
.card-group { margin: 0 16px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--divider); overflow: hidden; }
.settings-tile, .settings-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 16px; background: none; border: none; color: var(--text-primary);
  font-size: 15px; text-align: left; cursor: pointer;
}
.settings-tile.destructivo { color: var(--red); }
.settings-row-title { font-size: 15px; font-weight: 500; margin: 0; }
.settings-row-sub { font-size: 12px; color: var(--text-tertiary); margin: 2px 0 0; }
.chevron { margin-left: auto; color: var(--text-tertiary); }
.divider-inset { margin: 0 0 0 56px; border: none; height: 0.5px; background: var(--divider); }
.input-ajuste { width: 100%; padding: 13px 16px; background: none; border: none; border-bottom: 0.5px solid var(--divider); color: var(--text-primary); font-size: 15px; outline: none; }
.pie-ajustes { text-align: center; padding: 32px 0; color: var(--text-tertiary); font-size: 13px; }
.pie-ajustes .pie-sub { font-size: 11px; }

.grupo-fecha-label { padding: 16px 16px 6px; font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
.historial-item { padding: 0 16px 4px; }
.historial-etiqueta { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.historial-tiempo { font-size: 11px; color: var(--text-tertiary); margin: 4px 0 8px; }
.burbuja-mi-comentario { padding: 6px 10px; border-radius: 10px; background: var(--bg-input); border-left: 2.5px solid var(--accent); font-size: 12px; line-height: 1.4; }

.dialog-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dialog-box { background: var(--bg-card); border-radius: 16px; padding: 24px; max-width: 380px; width: 100%; }
.dialog-box h3 { margin: 0 0 12px; }
.dialog-acciones { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.dialog-acciones button { background: none; border: none; font-size: 15px; cursor: pointer; padding: 8px 12px; }
#btn-confirmar-eliminar { color: var(--red); font-weight: 700; }
#btn-confirmar-eliminar:disabled { color: var(--text-tertiary); }

/* ═══════════════════════════════════════════════════════════════
   FEED SHELL — appbar, tabs segmentados, drawer
   ═══════════════════════════════════════════════════════════════ */
.feed-shell { display: flex; flex-direction: column; height: 100vh; }

.feed-appbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg);
  border-bottom: 1px solid var(--divider);
  flex-shrink: 0;
}
.logo-appbar { height: 30px; object-fit: contain; }
.avatar-appbar {
  margin-left: auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(0,122,255,0.35);
  overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,122,255,0.15);
  flex-shrink: 0;
}
.avatar-appbar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-appbar-icono { font-size: 16px; }

.tabbar-segmented {
  display: flex; gap: 3px; margin: 0 16px 10px;
  padding: 3px; border-radius: 12px;
  background: var(--bg-input);
  flex-shrink: 0;
}
.tab-segmento {
  flex: 1; padding: 8px 0; border: none; border-radius: 9px;
  background: none; color: var(--text-tertiary); font-size: 18px; cursor: pointer;
  transition: background 0.15s;
}
.tab-segmento.activo { background: var(--bg-card); box-shadow: 0 1px 4px rgba(0,0,0,0.15); }

.tab-panel { flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.tab-panel.hidden { display: none; }

.banner-notif {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 600;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 18px;
  background: var(--bg-input);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.32s ease, opacity 0.32s ease;
  cursor: pointer;
}
.banner-notif.oculto { transform: translateY(-140px); opacity: 0; pointer-events: none; }
.banner-avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: rgba(0,122,255,0.15); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.banner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.banner-notif p { margin: 0; font-size: 13.5px; }

/* Drawer */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(0,0,0,0.5);
  display: flex;
}
.drawer-overlay.hidden { display: none; }
.drawer-panel {
  width: 300px; max-width: 85vw; height: 100%;
  background: #0D0D0D; overflow-y: auto;
  padding: 20px 16px;
}
body.light-mode .drawer-panel { background: #F2F2F7; }
.drawer-titulo { font-size: 22px; font-weight: 700; margin: 0 0 20px; }
.drawer-seccion-label {
  color: var(--text-tertiary); font-size: 11px; font-weight: 600;
  letter-spacing: 1px; margin: 18px 0 10px;
}
.drawer-tile-img, .drawer-tile-simple {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; margin-bottom: 10px; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--divider);
  color: var(--text-primary); text-align: left; cursor: pointer; font-size: 14px;
}
.drawer-tile-icono {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.drawer-tile-icono.azul { background: var(--accent); }
.drawer-tile-icono.verde { background: var(--green); }
.drawer-tile-icono.gris { background: #666; }
.drawer-tile-label { font-size: 14px; font-weight: 600; margin: 0; }
.drawer-tile-sub { font-size: 11px; color: var(--text-tertiary); margin: 2px 0 0; }
.drawer-plataforma-btn {
  width: 100%; padding: 16px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--divider);
  color: var(--accent); font-size: 18px; font-weight: 800; cursor: pointer;
}
.drawer-tema-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--divider);
  font-size: 15px; margin-bottom: 10px;
}
.switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; background: #555; border-radius: 26px;
  cursor: pointer; transition: background 0.2s;
}
.slider::before {
  content: ''; position: absolute; width: 20px; height: 20px;
  left: 3px; bottom: 3px; background: white; border-radius: 50%;
  transition: transform 0.2s;
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.drawer-pie { text-align: center; padding: 32px 0 8px; }
.drawer-pie p { margin: 0; font-size: 13px; color: var(--text-tertiary); font-weight: 600; }
.drawer-pie-sub { font-size: 11px !important; font-weight: 400 !important; }

/* ═══════════════════════════════════════════════════════════════
   MI PERFIL / PERFIL PÚBLICO
   ═══════════════════════════════════════════════════════════════ */
.mi-perfil-shell { display: flex; flex-direction: column; height: 100%; }
.encabezado-mi-perfil {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 8px 12px 20px; flex-shrink: 0;
}
.encabezado-mi-perfil .encabezado-titulo { flex: 1; }

.tarjeta-perfil {
  margin: 8px 16px 16px; padding: 20px 16px 16px;
  border-radius: 18px; background: var(--bg-card);
  border: 1px solid var(--divider);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.perfil-avatar-grande {
  width: 88px; height: 88px; border-radius: 50%;
  border: 2.5px solid var(--accent); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-input); font-size: 40px; flex-shrink: 0;
}
.perfil-avatar-grande img { width: 100%; height: 100%; object-fit: cover; }
.perfil-nombre-grande { font-size: 18px; font-weight: 700; margin: 12px 0 2px; }
.perfil-usuario-grande { font-size: 13px; color: var(--text-tertiary); margin: 0; }
.perfil-chip-carrera {
  display: inline-block; margin-top: 10px; padding: 5px 12px;
  border-radius: 99px; background: rgba(0,122,255,0.12);
  color: var(--accent); font-size: 12px; font-weight: 600;
}
.perfil-presentacion { font-size: 13.5px; line-height: 1.35; margin: 12px 0 0; color: var(--text-primary); opacity: 0.85; }
.perfil-divider { width: 100%; border: none; height: 0.5px; background: var(--divider); margin: 18px 0 14px; }
.perfil-stats { display: flex; justify-content: space-evenly; width: 100%; }
.perfil-stat { cursor: default; }
.perfil-stat.clickable { cursor: pointer; }
.stat-valor { font-size: 17px; font-weight: 700; margin: 0; }
.stat-label { font-size: 11.5px; color: var(--text-tertiary); margin: 2px 0 0; }
.perfil-redes { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.btn-red-social {
  width: 34px; height: 34px; border-radius: 8px; border: none;
  background: var(--bg-input); font-size: 16px; cursor: pointer;
}
.btn-seguir {
  margin-top: 18px; width: 100%; height: 44px; border-radius: 12px;
  border: none; background: var(--accent); color: white;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-seguir.siguiendo { background: none; border: 1px solid var(--divider); color: var(--text-primary); }

.fila-seguidor {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer;
}
.seguidor-info { flex: 1; min-width: 0; }
.seguidor-nombre { font-size: 14.5px; font-weight: 600; margin: 0; }
.seguidor-sub { font-size: 12.5px; color: var(--text-tertiary); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs-seguidores { display: flex; }
.tab-seg {
  flex: 1; padding: 12px; background: none; border: none;
  color: var(--text-tertiary); font-weight: 600; font-size: 14px; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab-seg.activo { color: var(--accent); border-bottom-color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   EDITAR PERFIL
   ═══════════════════════════════════════════════════════════════ */
.editar-perfil-loading { display: flex; justify-content: center; padding: 60px; }
.editar-perfil-body { padding-bottom: 40px; }
.ep-avatar-card { display: flex; flex-direction: column; align-items: center; padding: 20px 16px !important; margin: 16px 16px 0; }
.ep-avatar-wrap { position: relative; }
.ep-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  border: 2.5px solid var(--accent); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-input); font-size: 40px;
}
.ep-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ep-avatar-cam {
  position: absolute; right: -2px; bottom: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-card);
  color: white; font-size: 12px; cursor: pointer;
}
.ep-nombre-preview { font-size: 18px; font-weight: 600; margin: 12px 0 2px; }
.ep-usuario-preview { font-size: 13px; color: var(--text-tertiary); margin: 0; }
.ep-sub { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.7; margin-left: 6px; }
.ep-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 16px; background: none; border: none; color: var(--text-primary);
  font-size: 15px; text-align: left;
}
.ep-row-tappable { cursor: pointer; }
.ep-row-valor { margin-left: auto; color: var(--text-secondary); font-size: 13px; text-align: right; }
.ep-input {
  flex: 1; text-align: right; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 15px;
}
.ep-textarea {
  width: 100%; min-height: 70px; margin: 0 16px; padding: 12px 16px;
  background: none; border: none; outline: none; resize: vertical;
  color: var(--text-primary); font-size: 14px; font-family: inherit;
  box-sizing: border-box;
}
.btn-cerrar-sesion {
  display: block; margin: 16px auto 0; background: none; border: none;
  color: var(--red); font-size: 14px; cursor: pointer;
}

/* Carreras: picker de carrera dentro de hoja modal */
.carrera-picker-item { padding: 14px 20px; font-size: 14px; border-bottom: 0.5px solid var(--divider); cursor: pointer; }
.carrera-picker-item.seleccionada { color: var(--accent); font-weight: 600; background: rgba(0,122,255,0.08); }

/* Ajuste general: imágenes dentro de cualquier contenedor de ancho completo
   no deben desbordar (fix para el logo/avatar gigantes sin estilo) */
img { max-width: 100%; }

.foto-perfil-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: black; display: flex; align-items: center; justify-content: center;
}
.foto-perfil-grande { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.foto-perfil-cerrar {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 24px; cursor: pointer;
}

.feed-appbar #btn-drawer {
  font-size: 24px;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
  flex-shrink: 0;
}
.drawer-plataforma-btn:hover { background: rgba(0,122,255,0.08); }

/* ═══════════════════════════════════════════════════════════════
   CONOCE EL PLANTEL / HISTORIA DEL PLANTEL
   ═══════════════════════════════════════════════════════════════ */
.hero-plantel, .hero-historia {
  position: relative; text-align: center; padding: 60px 20px 20px;
}
.logo-itvh { height: 100px; object-fit: contain; margin-bottom: 12px; }
.hero-subtitulo { font-size: 13px; color: var(--text-primary); margin: 0; }
.hero-historia-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.badge-fecha {
  position: absolute; bottom: 12px; left: 20px;
  padding: 6px 12px; border-radius: 20px;
  background: rgba(0,0,0,0.55); border: 0.5px solid rgba(255,255,255,0.15);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.9);
}

.seccion-plantel { padding: 20px; background: var(--bg-card); margin-bottom: 8px; }
.seccion-plantel h1 { font-size: 22px; font-weight: 700; margin: 0 0 6px; line-height: 1.2; }
.seccion-plantel .acento { color: var(--accent); font-size: 13px; font-weight: 600; margin: 0 0 16px; }
.titulo-seccion { font-size: 18px; font-weight: 700; margin: 24px 0 12px; position: relative; padding-bottom: 8px; }
.titulo-seccion::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent); border-radius: 2px; }
.parrafo { font-size: 14px; line-height: 1.65; color: var(--text-secondary); text-align: justify; margin: 0 0 12px; }
.divisor { border: none; height: 0.5px; background: var(--divider); margin: 8px 0; }

.ficha-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; cursor: default; }
.ficha-row.link { cursor: pointer; }
.ficha-icono { font-size: 15px; flex-shrink: 0; }
.ficha-label { width: 80px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.ficha-valor { font-size: 13px; color: var(--text-secondary); }
.ficha-row.link .ficha-valor { color: var(--accent); }

/* Galería */
.galeria-principal { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; }
.galeria-imagen-grande { width: 100%; height: 100%; object-fit: cover; }
.galeria-contador {
  position: absolute; top: 10px; right: 10px; padding: 4px 8px;
  background: rgba(0,0,0,0.45); border-radius: 12px; font-size: 11px; font-weight: 600; color: white;
}
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.35);
  border: none; color: white; font-size: 20px; cursor: pointer;
}
.nav-arrow.izq { left: 8px; }
.nav-arrow.der { right: 8px; }
.nav-arrow.oculta { opacity: 0; pointer-events: none; }
.galeria-descripcion { font-size: 12px; font-style: italic; color: var(--text-tertiary); margin: 8px 0 12px; }
.galeria-miniaturas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.miniatura { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; opacity: 0.55; border: 2.5px solid transparent; cursor: pointer; }
.miniatura.activa { opacity: 1; border-color: var(--accent); }
.galeria-dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.galeria-dots .dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.2); }
.galeria-dots .dot.activo { width: 16px; background: var(--accent); }

/* Misión/Visión */
.tarjeta-mv { padding: 16px; border-radius: 14px; margin-bottom: 12px; }
.tarjeta-mision { background: rgba(0,122,255,0.08); border: 1px solid rgba(0,122,255,0.2); }
.tarjeta-vision { background: rgba(52,199,89,0.08); border: 1px solid rgba(52,199,89,0.2); }
.mv-titulo { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.tarjeta-mision .mv-titulo { color: var(--accent); }
.tarjeta-vision .mv-titulo { color: var(--green); }
.mv-texto { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin: 0; text-align: justify; }
.chips-valores { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-valor { padding: 6px 12px; border-radius: 20px; background: rgba(0,122,255,0.10); border: 1px solid rgba(0,122,255,0.25); color: var(--accent); font-size: 12px; font-weight: 500; }

/* Contacto */
.contacto-tile { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; cursor: pointer; }
.contacto-icono { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contacto-icono.rojo { background: rgba(255,59,48,0.12); }
.contacto-icono.verde { background: rgba(52,199,89,0.12); }
.contacto-icono.azul { background: rgba(0,122,255,0.12); }
.contacto-icono.morado { background: rgba(88,86,214,0.12); }
.contacto-titulo { font-size: 13px; font-weight: 600; margin: 0 0 2px; }
.contacto-sub { font-size: 13px; color: var(--accent); margin: 0; }
.mapa-placeholder {
  height: 120px; border-radius: 14px; background: var(--bg-input);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 40px; cursor: pointer; position: relative; overflow: hidden;
}
.btn-ver-mapa {
  position: absolute; bottom: 14px; padding: 8px 16px; border-radius: 20px;
  background: var(--accent); color: white; font-size: 13px; font-weight: 600;
}
.pie-fuente { text-align: center; font-size: 11px; color: var(--text-tertiary); padding: 24px 20px; opacity: 0.5; }

/* Timeline (Historia del plantel) */
.subtitulo-historia { font-size: 15px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 20px; }
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 12px; position: relative; }
.timeline-nodo {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  z-index: 1;
}
.timeline-linea { position: absolute; left: 21px; top: 44px; bottom: -20px; width: 2px; background: var(--divider); }
.timeline-contenido { flex: 1; padding-bottom: 36px; }
.timeline-year { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; margin: 0 0 4px; }
.timeline-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.timeline-body { font-size: 14px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 16px; }
.timeline-img-wrap { position: relative; border-radius: 14px; overflow: hidden; }
.timeline-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.timeline-img-wrap.sin-imagen { height: 80px; background: var(--bg-input); }
.timeline-caption { text-align: center; font-size: 12px; font-style: italic; color: var(--text-tertiary); margin: 6px 0 0; }

.tema-ambar { background: #7C5A1E; color: #FFD97D; }
.tema-ambar-text { color: #FFD97D; }
.tema-ambar-overlay::after { content: ''; }
.tema-teal { background: #0D4A3A; color: #5DE0B0; }
.tema-teal-text { color: #5DE0B0; }
.tema-coral { background: #6B2510; color: #F0997B; }
.tema-coral-text { color: #F0997B; }

.banner-final { display: flex; align-items: center; gap: 16px; padding: 28px; border-radius: 20px; background: var(--bg-input); border: 0.5px solid var(--divider); margin-top: 8px; }
.banner-icono { font-size: 28px; padding: 12px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.banner-numero { font-size: 22px; font-weight: 700; margin: 0; }
.banner-texto { font-size: 13px; color: var(--text-secondary); margin: 2px 0 0; }

.drawer-plataforma-btn img { height: 34px; object-fit: contain; }
.sie-fallback { color: var(--accent); font-size: 18px; font-weight: 800; }

/* ═══════════════════════════════════════════════════════════════
   OVERLAYS: Buscar usuarios / Nueva publicación
   ═══════════════════════════════════════════════════════════════ */
.pantalla-busqueda, .pantalla-crear-pub {
  position: fixed; inset: 0; z-index: 800;
  background: var(--bg); overflow-y: auto;
}

.input-busqueda-wrap { padding: 16px; }
.input-busqueda-wrap input {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: none;
  background: var(--bg-card); color: var(--text-primary); font-size: 14px; outline: none;
  box-sizing: border-box;
}
#resultados-busqueda { padding: 0 16px; }
.resultado-usuario { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; border-bottom: 0.5px solid var(--divider); }
.resultado-info { flex: 1; min-width: 0; }
.resultado-nombre { font-size: 14px; font-weight: 600; margin: 0; }
.resultado-sub { font-size: 12px; color: var(--text-tertiary); margin: 2px 0 0; }

#texto-publicacion {
  min-height: 100px; margin: 16px; padding: 14px;
  background: var(--bg-card); border: none; border-radius: 14px; outline: none;
  color: var(--text-primary); font-size: 14px; font-family: inherit; resize: vertical;
  box-sizing: border-box; width: calc(100% - 32px);
}
.aviso-info { margin: 0 16px 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.05); font-size: 12px; color: var(--text-secondary); }
#preview-media { padding: 0 16px; }
.preview-fotos-scroll { display: flex; gap: 8px; overflow-x: auto; }
.preview-foto { position: relative; flex-shrink: 0; }
.preview-foto img { width: 100px; height: 100px; border-radius: 12px; object-fit: cover; }
.preview-video { position: relative; height: 160px; border-radius: 14px; background: var(--bg-input); display: flex; align-items: center; justify-content: center; margin: 0 16px; }
.icono-play { font-size: 48px; }
.quitar-media {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.6); border: none; color: white; font-size: 11px; cursor: pointer;
}
#progreso-video { padding: 0 16px; margin-top: 12px; }
.barra-progreso { height: 4px; border-radius: 2px; background: var(--bg-input); overflow: hidden; }
#barra-progreso-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.2s; }
.botones-media { display: flex; gap: 12px; padding: 16px; }
.btn-media { flex: 1; padding: 16px 0; border-radius: 14px; background: var(--bg-card); border: none; color: var(--text-primary); font-size: 13px; cursor: pointer; }
.btn-media:hover { background: var(--bg-input); }

.icono-red {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.icono-red-btn {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.btn-red-social {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   VARIABLES GLOBALES — paleta dark-first, Apple-inspired
   ═══════════════════════════════════════════════════════════════ */
:root {
  --accent: #007AFF;
  --accent-light: #00C6FF;
  --bg: #000000;
  --bg-card: #1C1C1E;
  --bg-input: #2C2C2E;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.6);
  --text-tertiary: rgba(255,255,255,0.4);
  --divider: rgba(255,255,255,0.1);
  --red: #FF3B30;
  --green: #34C759;
  --amber: #FFA000;
  --radius: 14px;
  --radius-lg: 20px;
}

body.light-mode {
  --bg: #F2F2F7;
  --bg-card: #FFFFFF;
  --bg-input: #F2F2F7;
  --text-primary: #000000;
  --text-secondary: rgba(0,0,0,0.6);
  --text-tertiary: rgba(0,0,0,0.4);
  --divider: rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

#app { min-height: 100vh; }

.hidden { display: none !important; }

.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--divider);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.texto-vacio {
  text-align: center;
  color: var(--text-tertiary);
  padding: 40px 20px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN / REGISTRO — glassmorphism
   ═══════════════════════════════════════════════════════════════ */
.login-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.login-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.login-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.45), rgba(0,0,0,0.85));
}
.login-overlay.oscuro {
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.7), rgba(0,0,0,0.9));
}
.login-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
}
.login-logo { height: 130px; margin-bottom: 24px; }

.glass-card {
  width: 100%;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  border: 1.2px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
}
.glass-card h1 { margin: 0 0 4px; font-size: 26px; font-weight: 700; }
.glass-card .subtitle { color: rgba(255,255,255,0.6); font-size: 13px; margin: 0 0 20px; }
.glass-card .section-label {
  color: rgba(255,255,255,0.38);
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin: 16px 0 8px;
}
.glass-field {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1.2px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 4px 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.glass-field:focus-within {
  background: rgba(255,255,255,0.12);
  border-color: rgba(0,198,255,0.7);
}
.glass-field input, .glass-field select {
  flex: 1; background: none; border: none; outline: none;
  color: white; font-size: 15px; padding: 12px 0;
}
.glass-field select { color: white; }
.glass-field select option { color: black; }
.glass-field input::placeholder { color: rgba(255,255,255,0.3); }

.hint-text { color: rgba(255,255,255,0.38); font-size: 11.5px; margin: 4px 0 16px; }
.error-text { color: var(--red); font-size: 12px; margin: 4px 0; }
.link-derecha { display: block; text-align: right; color: var(--accent-light); font-size: 13px; margin-bottom: 12px; text-decoration: none; }
.link-centro { text-align: center; font-size: 13px; color: rgba(255,255,255,0.54); margin-top: 12px; }
.link-centro a { color: var(--accent-light); font-weight: 600; text-decoration: none; }

.btn-primary {
  width: 100%; padding: 16px;
  background: var(--accent-light);
  color: white; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 600;
  cursor: pointer;
}
.btn-primary:disabled { opacity: 0.5; cursor: default; }

/* Bottom sheet de bloqueo de cuenta */
.bloqueo-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end;
}
.bloqueo-sheet {
  width: 100%; padding: 32px;
  background: #1C1C1E; border-radius: 24px 24px 0 0;
  text-align: center; color: white;
}
.bloqueo-icono { font-size: 48px; margin-bottom: 16px; }
.bloqueo-sheet h2 { margin: 0 0 12px; }
.bloqueo-sheet p { color: rgba(255,255,255,0.6); line-height: 1.5; }
.bloqueo-sheet button {
  width: 100%; margin-top: 24px; padding: 14px;
  background: none; border: 1px solid rgba(255,255,255,0.24);
  color: white; border-radius: 14px; font-weight: 600; cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   FEED / COMUNIDAD ASPIRANTES
   ═══════════════════════════════════════════════════════════════ */
.encabezado-comunidad {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 8px 12px 20px;
}
.encabezado-titulo { flex: 1; }
.titulo-linea1 { font-size: 26px; font-weight: 700; margin: 0; line-height: 1.1; }
.titulo-linea2 { font-size: 26px; font-weight: 800; color: var(--accent); margin: 0; line-height: 1.1; }
.icono-btn { background: none; border: none; font-size: 22px; cursor: pointer; padding: 8px; position: relative; }
.campanita .badge-notif {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: white;
  font-size: 9px; font-weight: 700;
  border-radius: 10px; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bg);
}

.feed-scroll { height: calc(100vh - 70px); overflow-y: auto; padding: 12px 16px 90px; position: relative; }

.fab {
  position: fixed; right: 20px; bottom: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: white; border: none;
  font-size: 26px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tarjeta-publicacion {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--divider);
  margin-bottom: 12px;
  overflow: hidden;
}
.tarjeta-header { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.avatar-circulo {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,122,255,0.15);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; position: relative;
}
.avatar-circulo img { width: 100%; height: 100%; object-fit: cover; }
.avatar-circulo.avatar-md { width: 36px; height: 36px; }
.avatar-circulo.avatar-sm { width: 28px; height: 28px; }
.tarjeta-info-autor { flex: 1; }
.tarjeta-nombre { font-size: 14px; font-weight: 700; margin: 0; }
.tarjeta-meta { font-size: 12px; color: var(--text-tertiary); margin: 2px 0 0; }
.btn-opciones { background: none; border: none; font-size: 18px; color: var(--text-tertiary); cursor: pointer; padding: 4px; }
.tarjeta-contenido { padding: 0 14px 10px; font-size: 14px; line-height: 1.35; }

.carrusel-media { position: relative; }
.carrusel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 4/5; }
.carrusel-item { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.carrusel-item img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb { width: 100%; height: 100%; background: #000; display: flex; align-items: center; justify-content: center; }
.icono-play-grande { font-size: 48px; }
.carrusel-dots { display: flex; justify-content: center; gap: 4px; padding: 8px 0; }
.carrusel-dots .dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(0,122,255,0.25); }
.carrusel-dots .dot.activo { width: 8px; background: var(--accent); }

.tarjeta-acciones { display: flex; align-items: center; gap: 4px; padding: 6px 10px 10px; }
.btn-reaccion { background: none; border: none; font-size: 20px; cursor: pointer; padding: 6px 8px; }
.contador-reaccion { font-size: 13px; font-weight: 600; cursor: pointer; margin-right: 14px; }
.btn-comentar { background: none; border: none; font-size: 13px; color: var(--text-secondary); cursor: pointer; }

/* Hojas modales (comentarios, reacciones, motivos) */
.hoja-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; display: flex; align-items: flex-end; }
.hoja-sheet { width: 100%; max-height: 85vh; background: var(--bg-card); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; }
.hoja-handle { width: 40px; height: 4px; background: var(--divider); border-radius: 2px; margin: 10px auto; }
.hoja-titulo { text-align: center; font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.hoja-divider { height: 1px; background: var(--divider); }
.hoja-scroll { overflow-y: auto; padding: 8px 14px; flex: 1; }

.comentario-burbuja { display: flex; gap: 10px; padding: 8px 0; }
.comentario-burbuja.es-respuesta { margin-left: 36px; }
.comentario-nombre { font-weight: 700; font-size: 13px; margin: 0; cursor: pointer; }
.comentario-texto { font-size: 14px; margin: 2px 0; }
.comentario-meta { display: flex; gap: 14px; font-size: 11px; color: var(--text-tertiary); }
.responder-link { font-weight: 600; cursor: pointer; }
.respuesta-indent { margin-left: 36px; }

.barra-entrada-comentario { display: flex; gap: 8px; padding: 8px 12px; align-items: center; }
.barra-entrada-comentario input {
  flex: 1; background: var(--bg-input); border: none; border-radius: 20px;
  padding: 10px 14px; color: var(--text-primary); font-size: 14px; outline: none;
}
.barra-entrada-comentario button { background: none; border: none; font-size: 26px; color: var(--accent); cursor: pointer; }
.respondiendo-a { font-size: 12px; color: var(--text-tertiary); padding: 0 12px 6px; }

.fila-reaccion { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; }
.badge-reaccion { position: absolute; right: -2px; bottom: -2px; background: var(--bg-card); border-radius: 50%; padding: 2px; font-size: 11px; }
.nombre-reaccion { font-size: 14px; font-weight: 600; }

.action-sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: flex; align-items: flex-end; }
.action-sheet { width: 100%; padding: 8px; }
.action-item {
  display: block; width: 100%; padding: 16px; margin-bottom: 8px;
  background: var(--bg-card); border: none; border-radius: 14px;
  color: var(--accent); font-size: 15px; cursor: pointer;
}
.action-item.destructivo { color: var(--red); }
.action-item.cancelar { color: var(--text-primary); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   PANTALLAS EMPUJADAS / DRAWER / GENÉRICAS
   ═══════════════════════════════════════════════════════════════ */
.pushed-screen {
  position: fixed; inset: 0; background: var(--bg); z-index: 500;
  overflow-y: auto;
}
.appbar-simple {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--bg-card); position: sticky; top: 0; z-index: 2;
}
.appbar-simple h2 { flex: 1; font-size: 17px; margin: 0; }
.btn-volver, .btn-cerrar {
  background: none; border: none; color: var(--text-primary);
  font-size: 22px; cursor: pointer; padding: 4px 8px;
}
.btn-accion-accent { background: none; border: none; color: var(--accent); font-weight: 700; font-size: 15px; cursor: pointer; }

.appbar-hero { position: sticky; top: 0; z-index: 2; padding: 10px; }
.btn-volver-hero { background: rgba(0,0,0,0.4); border: none; color: white; font-size: 22px; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; }

/* Grid genérico de section titles, cards, etc — usado en carreras y plantel */
.section-title { display: flex; align-items: center; gap: 10px; margin: 24px 16px 12px; }
.section-title-bar { width: 4px; height: 18px; border-radius: 2px; }
.section-title h3 { font-size: 17px; font-weight: 700; margin: 0; }

.info-card {
  flex: 1; padding: 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--card-color) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 20%, transparent);
}
.info-card-icono { font-size: 22px; }
.info-card-titulo { font-size: 14px; font-weight: 700; color: var(--card-color); margin: 8px 0 6px; }
.info-card-contenido { font-size: 12px; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.cards-resumen-row { display: flex; gap: 12px; margin: 0 16px; }

.objetivo-box {
  margin: 0 16px; padding: 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--obj-color) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--obj-color) 15%, transparent);
}
.objetivo-box p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); margin: 0; }

.objetivo-item { display: flex; gap: 12px; margin: 0 16px 10px; align-items: flex-start; }
.objetivo-numero { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.objetivo-titulo { font-weight: 700; font-size: 13px; margin: 0; }
.objetivo-desc { font-size: 13px; line-height: 1.55; color: var(--text-secondary); margin: 3px 0 0; }

.perfil-section { margin: 0 16px; }
.perfil-item { display: flex; gap: 12px; margin-bottom: 8px; align-items: flex-start; }
.perfil-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.perfil-item p { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

.reticula-item {
  display: flex; align-items: center; gap: 14px; margin: 0 16px 10px;
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--divider); cursor: pointer;
}
.reticula-icono { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.reticula-nombre { font-size: 14px; font-weight: 600; margin: 0; }
.reticula-clave { font-size: 11px; color: var(--text-tertiary); margin: 3px 0 0; }
.reticula-pdf-icono { font-size: 18px; margin-left: auto; }

.expansion-tile { margin: 0 16px 8px; border-radius: 16px; overflow: hidden; border: 1px solid var(--divider); }
.expansion-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; border: 1px solid transparent; }
.expansion-header::-webkit-details-marker { display: none; }
.expansion-numero, .expansion-icono { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.expansion-icono { border-radius: 10px; font-size: 18px; }
.expansion-titulo { font-size: 14px; font-weight: 600; margin: 0; }
.expansion-sub { font-size: 11px; color: var(--text-tertiary); margin: 2px 0 0; }
.expansion-body { padding: 4px 12px 12px; }

.materia-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; cursor: pointer; border-radius: 12px; }
.materia-item.sin-url { cursor: default; }
.materia-nombre { flex: 1; font-size: 13px; color: var(--text-secondary); margin: 0; }
.materia-chevron { color: var(--text-tertiary); font-size: 16px; }

.aviso-card { margin: 0 16px; padding: 16px; border-radius: 16px; background: rgba(255,160,0,0.08); border: 1px solid rgba(255,160,0,0.25); display: flex; gap: 12px; }
.aviso-titulo { font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.aviso-texto { font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); margin: 0 0 6px; }
.aviso-nota { font-size: 12.5px; line-height: 1.5; font-weight: 600; margin: 0; }

/* PDF viewer */
.pdf-viewer-overlay { position: fixed; inset: 0; background: var(--bg); z-index: 900; display: flex; flex-direction: column; }
.pdf-body { flex: 1; position: relative; }
.pdf-iframe { width: 100%; height: 100%; border: none; }
.pdf-loading, .pdf-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); gap: 8px; }
.pdf-titulo { flex: 1; font-size: 14px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-compartir, .btn-descargar { background: none; border: none; font-size: 18px; cursor: pointer; padding: 6px; }

/* Carreras: oferta educativa */
.search-bar-wrap { padding: 12px 16px 0; }
.search-bar-wrap input { width: 100%; padding: 12px 14px; border-radius: 14px; border: none; background: var(--bg-card); color: var(--text-primary); font-size: 14px; }
.chips-filtro-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; }
.filter-chip { flex-shrink: 0; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--divider); background: none; color: var(--text-secondary); font-size: 12px; cursor: pointer; }
.filter-chip.selected { border-color: var(--accent); color: var(--accent); background: rgba(0,122,255,0.15); font-weight: 700; }
.stats-oferta { display: flex; gap: 10px; padding: 0 16px 8px; }
.stat-card { flex: 1; padding: 10px 16px; border-radius: 12px; background: rgba(0,122,255,0.15); font-size: 22px; font-weight: 700; }
.stat-card span { font-size: 13px; font-weight: 400; opacity: 0.7; margin-left: 6px; }
.stat-card.stat-secondary { background: rgba(94,53,177,0.15); }
.area-header { display: flex; align-items: center; gap: 10px; margin: 8px 16px 10px; }
.area-pill { padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: rgba(0,122,255,0.15); }
.area-divider { flex: 1; height: 1px; background: var(--divider); }
.carrera-card { display: flex; align-items: center; gap: 14px; margin: 0 16px 10px; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--divider); cursor: pointer; }
.carrera-icono { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(0,122,255,0.15); }
.carrera-nombre { font-size: 14px; font-weight: 600; margin: 0; }
.carrera-siglas { font-size: 12px; color: var(--text-tertiary); margin: 3px 0 0; }
.estado-vacio { text-align: center; padding: 60px 32px; }
.estado-vacio p { color: var(--text-tertiary); margin: 4px 0; }

/* Hero de pantalla de carrera */
.carrera-hero { position: relative; padding: 60px 20px 20px; overflow: hidden; }
.carrera-hero-icono { position: absolute; right: -30px; top: -20px; font-size: 180px; }
.chip-depto { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-bottom: 10px; }
.carrera-hero h1 { font-size: 22px; font-weight: 700; margin: 0; position: relative; }
.carrera-loading { display: flex; justify-content: center; padding: 60px; }

/* Ajustes / historial genérico */
.section-label-ajustes { padding: 20px 20px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.6px; color: var(--text-tertiary); }
.card-group { margin: 0 16px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--divider); overflow: hidden; }
.settings-tile, .settings-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 16px; background: none; border: none; color: var(--text-primary);
  font-size: 15px; text-align: left; cursor: pointer;
}
.settings-tile.destructivo { color: var(--red); }
.settings-row-title { font-size: 15px; font-weight: 500; margin: 0; }
.settings-row-sub { font-size: 12px; color: var(--text-tertiary); margin: 2px 0 0; }
.chevron { margin-left: auto; color: var(--text-tertiary); }
.divider-inset { margin: 0 0 0 56px; border: none; height: 0.5px; background: var(--divider); }
.input-ajuste { width: 100%; padding: 13px 16px; background: none; border: none; border-bottom: 0.5px solid var(--divider); color: var(--text-primary); font-size: 15px; outline: none; }
.pie-ajustes { text-align: center; padding: 32px 0; color: var(--text-tertiary); font-size: 13px; }
.pie-ajustes .pie-sub { font-size: 11px; }

.grupo-fecha-label { padding: 16px 16px 6px; font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
.historial-item { padding: 0 16px 4px; }
.historial-etiqueta { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.historial-tiempo { font-size: 11px; color: var(--text-tertiary); margin: 4px 0 8px; }
.burbuja-mi-comentario { padding: 6px 10px; border-radius: 10px; background: var(--bg-input); border-left: 2.5px solid var(--accent); font-size: 12px; line-height: 1.4; }

.dialog-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dialog-box { background: var(--bg-card); border-radius: 16px; padding: 24px; max-width: 380px; width: 100%; }
.dialog-box h3 { margin: 0 0 12px; }
.dialog-acciones { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.dialog-acciones button { background: none; border: none; font-size: 15px; cursor: pointer; padding: 8px 12px; }
#btn-confirmar-eliminar { color: var(--red); font-weight: 700; }
#btn-confirmar-eliminar:disabled { color: var(--text-tertiary); }

/* ═══════════════════════════════════════════════════════════════
   FEED SHELL — appbar, tabs segmentados, drawer
   ═══════════════════════════════════════════════════════════════ */
.feed-shell { display: flex; flex-direction: column; height: 100vh; }

.feed-appbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg);
  border-bottom: 1px solid var(--divider);
  flex-shrink: 0;
}
.logo-appbar { height: 30px; object-fit: contain; }
.avatar-appbar {
  margin-left: auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(0,122,255,0.35);
  overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,122,255,0.15);
  flex-shrink: 0;
}
.avatar-appbar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-appbar-icono { font-size: 16px; }

.tabbar-segmented {
  display: flex; gap: 3px; margin: 0 16px 10px;
  padding: 3px; border-radius: 12px;
  background: var(--bg-input);
  flex-shrink: 0;
}
.tab-segmento {
  flex: 1; padding: 8px 0; border: none; border-radius: 9px;
  background: none; color: var(--text-tertiary); font-size: 18px; cursor: pointer;
  transition: background 0.15s;
}
.tab-segmento.activo { background: var(--bg-card); box-shadow: 0 1px 4px rgba(0,0,0,0.15); }

.tab-panel { flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.tab-panel.hidden { display: none; }

.banner-notif {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 600;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 18px;
  background: var(--bg-input);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.32s ease, opacity 0.32s ease;
  cursor: pointer;
}
.banner-notif.oculto { transform: translateY(-140px); opacity: 0; pointer-events: none; }
.banner-avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: rgba(0,122,255,0.15); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.banner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.banner-notif p { margin: 0; font-size: 13.5px; }

/* Drawer */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(0,0,0,0.5);
  display: flex;
}
.drawer-overlay.hidden { display: none; }
.drawer-panel {
  width: 300px; max-width: 85vw; height: 100%;
  background: #0D0D0D; overflow-y: auto;
  padding: 20px 16px;
}
body.light-mode .drawer-panel { background: #F2F2F7; }
.drawer-titulo { font-size: 22px; font-weight: 700; margin: 0 0 20px; }
.drawer-seccion-label {
  color: var(--text-tertiary); font-size: 11px; font-weight: 600;
  letter-spacing: 1px; margin: 18px 0 10px;
}
.drawer-tile-img, .drawer-tile-simple {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; margin-bottom: 10px; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--divider);
  color: var(--text-primary); text-align: left; cursor: pointer; font-size: 14px;
}
.drawer-tile-icono {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.drawer-tile-icono.azul { background: var(--accent); }
.drawer-tile-icono.verde { background: var(--green); }
.drawer-tile-icono.gris { background: #666; }
.drawer-tile-label { font-size: 14px; font-weight: 600; margin: 0; }
.drawer-tile-sub { font-size: 11px; color: var(--text-tertiary); margin: 2px 0 0; }
.drawer-plataforma-btn {
  width: 100%; padding: 16px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--divider);
  color: var(--accent); font-size: 18px; font-weight: 800; cursor: pointer;
}
.drawer-tema-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--divider);
  font-size: 15px; margin-bottom: 10px;
}
.switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; background: #555; border-radius: 26px;
  cursor: pointer; transition: background 0.2s;
}
.slider::before {
  content: ''; position: absolute; width: 20px; height: 20px;
  left: 3px; bottom: 3px; background: white; border-radius: 50%;
  transition: transform 0.2s;
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.drawer-pie { text-align: center; padding: 32px 0 8px; }
.drawer-pie p { margin: 0; font-size: 13px; color: var(--text-tertiary); font-weight: 600; }
.drawer-pie-sub { font-size: 11px !important; font-weight: 400 !important; }

/* ═══════════════════════════════════════════════════════════════
   MI PERFIL / PERFIL PÚBLICO
   ═══════════════════════════════════════════════════════════════ */
.mi-perfil-shell { display: flex; flex-direction: column; height: 100%; }
.encabezado-mi-perfil {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 8px 12px 20px; flex-shrink: 0;
}
.encabezado-mi-perfil .encabezado-titulo { flex: 1; }

.tarjeta-perfil {
  margin: 8px 16px 16px; padding: 20px 16px 16px;
  border-radius: 18px; background: var(--bg-card);
  border: 1px solid var(--divider);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.perfil-avatar-grande {
  width: 88px; height: 88px; border-radius: 50%;
  border: 2.5px solid var(--accent); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-input); font-size: 40px; flex-shrink: 0;
}
.perfil-avatar-grande img { width: 100%; height: 100%; object-fit: cover; }
.perfil-nombre-grande { font-size: 18px; font-weight: 700; margin: 12px 0 2px; }
.perfil-usuario-grande { font-size: 13px; color: var(--text-tertiary); margin: 0; }
.perfil-chip-carrera {
  display: inline-block; margin-top: 10px; padding: 5px 12px;
  border-radius: 99px; background: rgba(0,122,255,0.12);
  color: var(--accent); font-size: 12px; font-weight: 600;
}
.perfil-presentacion { font-size: 13.5px; line-height: 1.35; margin: 12px 0 0; color: var(--text-primary); opacity: 0.85; }
.perfil-divider { width: 100%; border: none; height: 0.5px; background: var(--divider); margin: 18px 0 14px; }
.perfil-stats { display: flex; justify-content: space-evenly; width: 100%; }
.perfil-stat { cursor: default; }
.perfil-stat.clickable { cursor: pointer; }
.stat-valor { font-size: 17px; font-weight: 700; margin: 0; }
.stat-label { font-size: 11.5px; color: var(--text-tertiary); margin: 2px 0 0; }
.perfil-redes { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.btn-red-social {
  width: 34px; height: 34px; border-radius: 8px; border: none;
  background: var(--bg-input); font-size: 16px; cursor: pointer;
}
.btn-seguir {
  margin-top: 18px; width: 100%; height: 44px; border-radius: 12px;
  border: none; background: var(--accent); color: white;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-seguir.siguiendo { background: none; border: 1px solid var(--divider); color: var(--text-primary); }

.fila-seguidor {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer;
}
.seguidor-info { flex: 1; min-width: 0; }
.seguidor-nombre { font-size: 14.5px; font-weight: 600; margin: 0; }
.seguidor-sub { font-size: 12.5px; color: var(--text-tertiary); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs-seguidores { display: flex; }
.tab-seg {
  flex: 1; padding: 12px; background: none; border: none;
  color: var(--text-tertiary); font-weight: 600; font-size: 14px; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab-seg.activo { color: var(--accent); border-bottom-color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   EDITAR PERFIL
   ═══════════════════════════════════════════════════════════════ */
.editar-perfil-loading { display: flex; justify-content: center; padding: 60px; }
.editar-perfil-body { padding-bottom: 40px; }
.ep-avatar-card { display: flex; flex-direction: column; align-items: center; padding: 20px 16px !important; margin: 16px 16px 0; }
.ep-avatar-wrap { position: relative; }
.ep-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  border: 2.5px solid var(--accent); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-input); font-size: 40px;
}
.ep-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ep-avatar-cam {
  position: absolute; right: -2px; bottom: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-card);
  color: white; font-size: 12px; cursor: pointer;
}
.ep-nombre-preview { font-size: 18px; font-weight: 600; margin: 12px 0 2px; }
.ep-usuario-preview { font-size: 13px; color: var(--text-tertiary); margin: 0; }
.ep-sub { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.7; margin-left: 6px; }
.ep-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 16px; background: none; border: none; color: var(--text-primary);
  font-size: 15px; text-align: left;
}
.ep-row-tappable { cursor: pointer; }
.ep-row-valor { margin-left: auto; color: var(--text-secondary); font-size: 13px; text-align: right; }
.ep-input {
  flex: 1; text-align: right; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 15px;
}
.ep-textarea {
  width: 100%; min-height: 70px; margin: 0 16px; padding: 12px 16px;
  background: none; border: none; outline: none; resize: vertical;
  color: var(--text-primary); font-size: 14px; font-family: inherit;
  box-sizing: border-box;
}
.btn-cerrar-sesion {
  display: block; margin: 16px auto 0; background: none; border: none;
  color: var(--red); font-size: 14px; cursor: pointer;
}

/* Carreras: picker de carrera dentro de hoja modal */
.carrera-picker-item { padding: 14px 20px; font-size: 14px; border-bottom: 0.5px solid var(--divider); cursor: pointer; }
.carrera-picker-item.seleccionada { color: var(--accent); font-weight: 600; background: rgba(0,122,255,0.08); }

/* Ajuste general: imágenes dentro de cualquier contenedor de ancho completo
   no deben desbordar (fix para el logo/avatar gigantes sin estilo) */
img { max-width: 100%; }

.foto-perfil-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: black; display: flex; align-items: center; justify-content: center;
}
.foto-perfil-grande { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.foto-perfil-cerrar {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 24px; cursor: pointer;
}

.feed-appbar #btn-drawer {
  font-size: 24px;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
  flex-shrink: 0;
}
.drawer-plataforma-btn:hover { background: rgba(0,122,255,0.08); }

/* ═══════════════════════════════════════════════════════════════
   CONOCE EL PLANTEL / HISTORIA DEL PLANTEL
   ═══════════════════════════════════════════════════════════════ */
.hero-plantel, .hero-historia {
  position: relative; text-align: center; padding: 60px 20px 20px;
}
.logo-itvh { height: 100px; object-fit: contain; margin-bottom: 12px; }
.hero-subtitulo { font-size: 13px; color: var(--text-primary); margin: 0; }
.hero-historia-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.badge-fecha {
  position: absolute; bottom: 12px; left: 20px;
  padding: 6px 12px; border-radius: 20px;
  background: rgba(0,0,0,0.55); border: 0.5px solid rgba(255,255,255,0.15);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.9);
}

.seccion-plantel { padding: 20px; background: var(--bg-card); margin-bottom: 8px; }
.seccion-plantel h1 { font-size: 22px; font-weight: 700; margin: 0 0 6px; line-height: 1.2; }
.seccion-plantel .acento { color: var(--accent); font-size: 13px; font-weight: 600; margin: 0 0 16px; }
.titulo-seccion { font-size: 18px; font-weight: 700; margin: 24px 0 12px; position: relative; padding-bottom: 8px; }
.titulo-seccion::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent); border-radius: 2px; }
.parrafo { font-size: 14px; line-height: 1.65; color: var(--text-secondary); text-align: justify; margin: 0 0 12px; }
.divisor { border: none; height: 0.5px; background: var(--divider); margin: 8px 0; }

.ficha-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; cursor: default; }
.ficha-row.link { cursor: pointer; }
.ficha-icono { font-size: 15px; flex-shrink: 0; }
.ficha-label { width: 80px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.ficha-valor { font-size: 13px; color: var(--text-secondary); }
.ficha-row.link .ficha-valor { color: var(--accent); }

/* Galería */
.galeria-principal { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; }
.galeria-imagen-grande { width: 100%; height: 100%; object-fit: cover; }
.galeria-contador {
  position: absolute; top: 10px; right: 10px; padding: 4px 8px;
  background: rgba(0,0,0,0.45); border-radius: 12px; font-size: 11px; font-weight: 600; color: white;
}
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.35);
  border: none; color: white; font-size: 20px; cursor: pointer;
}
.nav-arrow.izq { left: 8px; }
.nav-arrow.der { right: 8px; }
.nav-arrow.oculta { opacity: 0; pointer-events: none; }
.galeria-descripcion { font-size: 12px; font-style: italic; color: var(--text-tertiary); margin: 8px 0 12px; }
.galeria-miniaturas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.miniatura { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; opacity: 0.55; border: 2.5px solid transparent; cursor: pointer; }
.miniatura.activa { opacity: 1; border-color: var(--accent); }
.galeria-dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.galeria-dots .dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.2); }
.galeria-dots .dot.activo { width: 16px; background: var(--accent); }

/* Misión/Visión */
.tarjeta-mv { padding: 16px; border-radius: 14px; margin-bottom: 12px; }
.tarjeta-mision { background: rgba(0,122,255,0.08); border: 1px solid rgba(0,122,255,0.2); }
.tarjeta-vision { background: rgba(52,199,89,0.08); border: 1px solid rgba(52,199,89,0.2); }
.mv-titulo { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.tarjeta-mision .mv-titulo { color: var(--accent); }
.tarjeta-vision .mv-titulo { color: var(--green); }
.mv-texto { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin: 0; text-align: justify; }
.chips-valores { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-valor { padding: 6px 12px; border-radius: 20px; background: rgba(0,122,255,0.10); border: 1px solid rgba(0,122,255,0.25); color: var(--accent); font-size: 12px; font-weight: 500; }

/* Contacto */
.contacto-tile { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; cursor: pointer; }
.contacto-icono { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contacto-icono.rojo { background: rgba(255,59,48,0.12); }
.contacto-icono.verde { background: rgba(52,199,89,0.12); }
.contacto-icono.azul { background: rgba(0,122,255,0.12); }
.contacto-icono.morado { background: rgba(88,86,214,0.12); }
.contacto-titulo { font-size: 13px; font-weight: 600; margin: 0 0 2px; }
.contacto-sub { font-size: 13px; color: var(--accent); margin: 0; }
.mapa-placeholder {
  height: 120px; border-radius: 14px; background: var(--bg-input);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 40px; cursor: pointer; position: relative; overflow: hidden;
}
.btn-ver-mapa {
  position: absolute; bottom: 14px; padding: 8px 16px; border-radius: 20px;
  background: var(--accent); color: white; font-size: 13px; font-weight: 600;
}
.pie-fuente { text-align: center; font-size: 11px; color: var(--text-tertiary); padding: 24px 20px; opacity: 0.5; }

/* Timeline (Historia del plantel) */
.subtitulo-historia { font-size: 15px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 20px; }
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 12px; position: relative; }
.timeline-nodo {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  z-index: 1;
}
.timeline-linea { position: absolute; left: 21px; top: 44px; bottom: -20px; width: 2px; background: var(--divider); }
.timeline-contenido { flex: 1; padding-bottom: 36px; }
.timeline-year { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; margin: 0 0 4px; }
.timeline-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.timeline-body { font-size: 14px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 16px; }
.timeline-img-wrap { position: relative; border-radius: 14px; overflow: hidden; }
.timeline-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.timeline-img-wrap.sin-imagen { height: 80px; background: var(--bg-input); }
.timeline-caption { text-align: center; font-size: 12px; font-style: italic; color: var(--text-tertiary); margin: 6px 0 0; }

.tema-ambar { background: #7C5A1E; color: #FFD97D; }
.tema-ambar-text { color: #FFD97D; }
.tema-ambar-overlay::after { content: ''; }
.tema-teal { background: #0D4A3A; color: #5DE0B0; }
.tema-teal-text { color: #5DE0B0; }
.tema-coral { background: #6B2510; color: #F0997B; }
.tema-coral-text { color: #F0997B; }

.banner-final { display: flex; align-items: center; gap: 16px; padding: 28px; border-radius: 20px; background: var(--bg-input); border: 0.5px solid var(--divider); margin-top: 8px; }
.banner-icono { font-size: 28px; padding: 12px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.banner-numero { font-size: 22px; font-weight: 700; margin: 0; }
.banner-texto { font-size: 13px; color: var(--text-secondary); margin: 2px 0 0; }

.drawer-plataforma-btn img { height: 34px; object-fit: contain; }
.sie-fallback { color: var(--accent); font-size: 18px; font-weight: 800; }

/* ═══════════════════════════════════════════════════════════════
   OVERLAYS: Buscar usuarios / Nueva publicación
   ═══════════════════════════════════════════════════════════════ */
.pantalla-busqueda, .pantalla-crear-pub {
  position: fixed; inset: 0; z-index: 800;
  background: var(--bg); overflow-y: auto;
}

.input-busqueda-wrap { padding: 16px; }
.input-busqueda-wrap input {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: none;
  background: var(--bg-card); color: var(--text-primary); font-size: 14px; outline: none;
  box-sizing: border-box;
}
#resultados-busqueda { padding: 0 16px; }
.resultado-usuario { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; border-bottom: 0.5px solid var(--divider); }
.resultado-info { flex: 1; min-width: 0; }
.resultado-nombre { font-size: 14px; font-weight: 600; margin: 0; }
.resultado-sub { font-size: 12px; color: var(--text-tertiary); margin: 2px 0 0; }

#texto-publicacion {
  min-height: 100px; margin: 16px; padding: 14px;
  background: var(--bg-card); border: none; border-radius: 14px; outline: none;
  color: var(--text-primary); font-size: 14px; font-family: inherit; resize: vertical;
  box-sizing: border-box; width: calc(100% - 32px);
}
.aviso-info { margin: 0 16px 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.05); font-size: 12px; color: var(--text-secondary); }
#preview-media { padding: 0 16px; }
.preview-fotos-scroll { display: flex; gap: 8px; overflow-x: auto; }
.preview-foto { position: relative; flex-shrink: 0; }
.preview-foto img { width: 100px; height: 100px; border-radius: 12px; object-fit: cover; }
.preview-video { position: relative; height: 160px; border-radius: 14px; background: var(--bg-input); display: flex; align-items: center; justify-content: center; margin: 0 16px; }
.icono-play { font-size: 48px; }
.quitar-media {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.6); border: none; color: white; font-size: 11px; cursor: pointer;
}
#progreso-video { padding: 0 16px; margin-top: 12px; }
.barra-progreso { height: 4px; border-radius: 2px; background: var(--bg-input); overflow: hidden; }
#barra-progreso-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.2s; }
.botones-media { display: flex; gap: 12px; padding: 16px; }
.btn-media { flex: 1; padding: 16px 0; border-radius: 14px; background: var(--bg-card); border: none; color: var(--text-primary); font-size: 13px; cursor: pointer; }
.btn-media:hover { background: var(--bg-input); }

.icono-red {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.icono-red-btn {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.btn-red-social {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   NOTIFICACIONES
   ═══════════════════════════════════════════════════════════════ */
.fila-notificacion {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 0.5px solid var(--divider);
}
.fila-notificacion:active { background: var(--bg-input); }

.badge-tipo-notif {
  position: absolute; right: -2px; bottom: -2px;
  background: var(--bg-card); border-radius: 50%;
  padding: 2px; font-size: 11px; line-height: 1;
  border: 1.5px solid var(--bg);
}

.notif-cuerpo { flex: 1; min-width: 0; }
.notif-cuerpo p { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--text-primary); }
.notif-cuerpo p strong { font-weight: 700; }
.notif-tiempo { font-size: 11.5px; color: var(--text-tertiary) !important; margin-top: 3px !important; }

.notif-trailing { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dot-no-leida {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}

.miniatura-post {
  position: relative; width: 44px; height: 44px;
  border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: var(--bg-input);
}
.miniatura-post img { width: 100%; height: 100%; object-fit: cover; }
.play-mini {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  color: white; font-size: 14px;
  background: rgba(0,0,0,0.35);
}

/* ═══════════════════════════════════════════════════════════════
   UBICATECNM
   ═══════════════════════════════════════════════════════════════ */
.ubicatec-shell { display: flex; flex-direction: column; height: 100%; }
.ubicatec-header { padding: 12px 20px 10px; flex-shrink: 0; }
.ubicatec-titulo1, .ubicatec-titulo2 { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.1; letter-spacing: -0.5px; }
.ubicatec-titulo2 { color: var(--accent); }

.ubicatec-mapa-wrap { position: relative; flex: 1; min-height: 0; }
.ubicatec-map { width: 100%; height: 100%; z-index: 1; }
.ubicatec-loading { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: var(--bg); }

.ubicatec-buscador { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 10; }
.ubicatec-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: white; border-radius: 12px; padding: 4px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.ubicatec-input-icono { font-size: 15px; }
.ubicatec-input-wrap input { flex: 1; border: none; outline: none; padding: 12px 0; font-size: 14px; color: #1a1a1a; background: none; }
.ubicatec-limpiar { background: none; border: none; color: #999; font-size: 14px; cursor: pointer; }
.ubicatec-panel { background: white; border-radius: 0 0 12px 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); max-height: 220px; overflow-y: auto; }
.ubicatec-ayuda { font-size: 13px; color: #888; margin: 12px 16px 8px; }
.ubicatec-sub-label { font-size: 12px; font-weight: 600; color: #666; letter-spacing: 0.5px; margin: 0 16px 6px; }
.ubicatec-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.ubicatec-chip {
  padding: 6px 10px; border-radius: 20px; font-size: 12px; font-weight: 500;
  background: rgba(27,54,93,0.08); border: 1px solid rgba(27,54,93,0.2);
  color: #1B365D; cursor: pointer;
}
.ubicatec-resultado-item { padding: 14px 16px; font-size: 14px; font-weight: 500; color: #1B365D; border-bottom: 1px solid #eee; cursor: pointer; }
.ubicatec-resultado-item:hover { background: #f5f5f5; }
.ubicatec-sin-resultados { padding: 16px; color: #999; font-size: 13px; }

/* Marcador "globito" institucional, dibujado con CSS en vez de canvas */
.marcador-globito-wrap { background: none !important; border: none !important; }
.marcador-globito {
  position: relative;
  transform: translate(-50%, -100%);
  background: #1B365D; color: white;
  padding: 6px 10px; border-radius: 8px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.marcador-globito-flecha {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 6px solid #1B365D;
}
.marcador-destino { font-size: 26px; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4)); }

/* Detalle de edificio (bottom sheet) */
.ubicatec-detalle-sheet { max-height: 85vh; }
.ubicatec-detalle-titulo { font-size: 20px; font-weight: 700; color: #1B365D; margin: 0 16px 12px; }
.ubicatec-detalle-cuerpo { padding: 0 16px 20px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.ubicatec-detalle-cuerpo b { color: #1B365D; }
.ubicatec-detalle-cuerpo li { list-style: none; margin-bottom: 8px; }

/* Leaflet: popups oscuros para que combinen con el resto de la app */
.leaflet-popup-content-wrapper { border-radius: 10px; }
.leaflet-popup-content { font-size: 13px; color: #1a1a1a; }

/* ═══════════════════════════════════════════════════════════════
   REPRODUCTOR DE VIDEO
   ═══════════════════════════════════════════════════════════════ */
.reproductor-overlay {
  position: fixed; inset: 0; z-index: 950;
  background: black; display: flex; align-items: center; justify-content: center;
}
.reproductor-video { max-width: 100%; max-height: 100%; }
.reproductor-cerrar {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  background: rgba(0,0,0,0.5); border: none; color: white;
  width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   VISOR DE IMAGEN A PANTALLA COMPLETA
   ═══════════════════════════════════════════════════════════════ */
.visor-imagen-overlay {
  position: fixed; inset: 0; z-index: 950;
  background: black; display: flex; flex-direction: column;
}
.visor-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; flex-shrink: 0;
}
.visor-autor { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.visor-nombre { color: white; font-size: 14px; font-weight: 700; margin: 0; }
.visor-header-acciones { display: flex; gap: 4px; }
.visor-icono-btn {
  background: none; border: none; color: white; font-size: 18px;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.visor-icono-btn:hover { background: rgba(255,255,255,0.1); }

.visor-track-wrap {
  flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  position: relative; min-height: 0;
}
.visor-track { display: flex; width: 100%; }
.visor-item {
  flex: 0 0 100%; scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center;
  min-width: 0;
}
.visor-imagen { max-width: 100%; max-height: 100%; object-fit: contain; }
.visor-video-thumb {
  width: 100%; height: 100%; background: #111;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.visor-icono-play { font-size: 64px; }
.visor-dots {
  position: absolute; top: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 4px;
}
.visor-dots .dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.4); }
.visor-dots .dot.activo { width: 8px; background: white; }

.visor-footer { padding: 10px 14px 14px; flex-shrink: 0; }
.visor-contenido { color: white; font-size: 14px; line-height: 1.35; margin: 0 0 10px; }
.visor-acciones { display: flex; align-items: center; gap: 4px; }
.visor-btn-reaccion {
  background: none; border: none; cursor: pointer;
  padding: 6px 8px; border-radius: 10px;
}
.visor-icono-reaccion { font-size: 20px; }
.visor-contador { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 600; margin-right: 14px; cursor: pointer; }
.visor-btn-comentar {
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px;
  display: flex; align-items: center; gap: 6px;
}