/* Campus Guide · UPP — © 2026 imsale91-cmyk. Todos los derechos reservados.
   Uso, copia o redistribución sin autorización prohibidos. Ver LICENSE. */
/* ==========================================================================
   PÁGINAS
   Estilos propios de cada sección: portada, buscador, mapa,
   calendario interactivo, mini guías (YouTube) y comentarios.
   ========================================================================== */

/* ─── LOGO EN HEADER ─── */
.header-brand {
  display: flex; align-items: center; gap: 0.55rem;
  min-width: 0; flex: 1; padding: 0; background: none;
  cursor: pointer; text-align: left;
}
.brand-logo { height: 30px; width: auto; flex-shrink: 0; }
.brand-sub {
  font-size: 0.6rem; color: var(--upp-gray-mid); line-height: 1.2;
  padding-left: 0.55rem; border-left: 1px solid var(--upp-gray-border);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 359px) { .brand-sub { display: none; } }
@media (min-width: 1024px) { .brand-logo { height: 34px; } }

/* ─── LOGO EN SPLASH ─── */
.splash-logo svg { width: min(260px, 62vw); height: auto; }
.splash-wordmark .subtitle { margin-top: 0.75rem; }

/* ─── BUSCADOR GENERAL ─── */
.global-search { position: relative; margin-bottom: 1.5rem; z-index: 30; }
.gs-clear {
  width: 22px; height: 22px; border-radius: var(--r-full);
  background: var(--upp-gray-light); color: var(--upp-gray-mid);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gs-clear svg { width: 13px; height: 13px; stroke-width: 2.2; }
.gs-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--upp-white); border: 1px solid var(--upp-gray-border);
  border-radius: var(--r-md); box-shadow: var(--shadow-raised);
  max-height: 340px; overflow-y: auto; padding: 0.3rem;
}
.gs-item {
  width: 100%; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.6rem; border-radius: var(--r-sm);
  text-align: left; transition: background 0.14s;
}
.gs-item:hover, .gs-item:focus-visible { background: var(--upp-purple-ultra); }
.gs-ico {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: var(--r-sm);
  background: var(--upp-purple-pale); color: var(--upp-purple);
  display: flex; align-items: center; justify-content: center;
}
.gs-ico svg { width: 16px; height: 16px; fill: none; }
.gs-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gs-title {
  font-size: 0.82rem; font-weight: 600; color: var(--upp-oxford);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gs-sub {
  font-size: 0.7rem; color: var(--upp-gray-mid);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gs-tag {
  flex-shrink: 0; font-size: 0.62rem; font-weight: 600;
  color: var(--upp-gray-mid); background: var(--upp-gray-light);
  padding: 2px 7px; border-radius: var(--r-full);
}
.gs-empty { padding: 0.9rem; font-size: 0.8rem; text-align: center; }

/* ─── EXTRACURRICULARES ─── */
.extra-card { align-items: flex-start; }
.ec-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.ec-mail {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.7rem; font-weight: 600; color: var(--upp-purple);
}
.ec-mail svg { width: 12px; height: 12px; stroke-width: 2; fill: none; }

/* ─── COMENTARIOS ─── */
.comment-form {
  background: var(--upp-white); border: 1px solid var(--upp-gray-border);
  border-radius: var(--r-md); padding: 0.9rem; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem;
}
.comment-form input, .comment-form textarea {
  width: 100%; border: 1px solid var(--upp-gray-border); border-radius: var(--r-sm);
  padding: 0.6rem 0.7rem; font-size: 0.83rem; color: var(--upp-oxford);
  background: var(--upp-gray-light); resize: vertical;
  transition: border-color 0.16s, background 0.16s;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--upp-purple);
  background: var(--upp-white); box-shadow: 0 0 0 3px var(--upp-purple-ultra);
}
.comment-form input::placeholder, .comment-form textarea::placeholder { color: var(--upp-gray-mid); }
.cf-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.cf-count { font-size: 0.68rem; color: var(--upp-gray-mid); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.78rem; width: auto; }

.comment-toolbar { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.ct-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.ct-chip {
  font-size: 0.7rem; font-weight: 600; padding: 5px 11px;
  border-radius: var(--r-full); background: var(--upp-white);
  border: 1px solid var(--upp-gray-border); color: var(--upp-gray-mid);
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.ct-chip:hover { border-color: var(--upp-purple-light); color: var(--upp-purple); }
.ct-chip.active { background: var(--upp-purple); border-color: var(--upp-purple); color: #fff; }
.ct-count { font-size: 0.7rem; color: var(--upp-gray-mid); }

.comment-list { display: flex; flex-direction: column; gap: 0.6rem; }
.comment-card {
  background: var(--upp-white); border: 1px solid var(--upp-gray-border);
  border-left: 3px solid var(--upp-purple); border-radius: var(--r-md);
  padding: 0.85rem 0.9rem; box-shadow: var(--shadow-xs);
}
.comment-card.estado-leido    { border-left-color: var(--upp-info); }
.comment-card.estado-agregado { border-left-color: var(--upp-success); background: #FAFDFB; }
.cc-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.cc-avatar {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: var(--r-full);
  background: var(--upp-purple-pale); color: var(--upp-purple-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
}
.cc-who { flex: 1; min-width: 0; }
.cc-name { font-size: 0.82rem; font-weight: 600; color: var(--upp-oxford); }
.cc-date { font-size: 0.66rem; color: var(--upp-gray-mid); }
.cc-text {
  font-size: 0.82rem; line-height: 1.6; color: var(--upp-gray-dark);
  margin-bottom: 0.7rem; white-space: pre-wrap; word-break: break-word;
}
.cc-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.cc-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 600; padding: 5px 10px;
  border-radius: var(--r-full); border: 1px solid var(--upp-gray-border);
  background: var(--upp-white); color: var(--upp-gray-mid);
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.cc-btn svg { width: 13px; height: 13px; stroke-width: 2; fill: none; }
.cc-btn:hover { border-color: var(--upp-purple-light); color: var(--upp-purple); }
.cc-btn.on { background: var(--upp-purple); border-color: var(--upp-purple); color: #fff; }
.cc-btn.danger:hover { border-color: var(--upp-danger); color: var(--upp-danger); }

.comment-hint, .empty-msg {
  font-size: 0.79rem; color: var(--upp-gray-mid); text-align: center;
  padding: 1.1rem 0.75rem; background: var(--upp-white);
  border: 1px dashed var(--upp-gray-border); border-radius: var(--r-md);
}

/* ─── RESALTADO AL LLEGAR DESDE EL BUSCADOR ─── */
.flash { animation: flashHL 1.6s var(--ease-out); }
@keyframes flashHL {
  0%, 100% { box-shadow: var(--shadow-xs); }
  20%, 60% { box-shadow: 0 0 0 3px var(--upp-gold); }
}

/* ─── RESPONSIVE ─── */
@media (min-width: 700px) {
  .comment-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ═══════════════════════════════════════════════════
   AJUSTES DE PORTADA, VIDEOS, CONTACTOS Y NAVEGACIÓN
   ═══════════════════════════════════════════════════ */

/* La bienvenida es el primer bloque visible de Inicio. */
#page-home > .welcome-banner { margin-top: 0; }

/* Dos videos verticales pequeños, colocados uno junto al otro. */
.home-video-section { margin-bottom: 1.5rem; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}
/* Cinco accesos rápidos; Información se distingue con color. */
@media (min-width: 768px) {
  .quick-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Flecha para regresar desde cada página interna. */
.page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  padding: 0.45rem 0.7rem 0.45rem 0.5rem;
  border-radius: var(--r-sm);
  color: var(--upp-purple);
  background: var(--upp-white);
  border: 1px solid var(--upp-gray-border);
  box-shadow: var(--shadow-xs);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.page-back-btn:hover {
  background: var(--upp-purple-pale);
  border-color: var(--upp-purple-light);
}
.page-back-btn:active { transform: scale(0.98); }
.page-back-btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}
#page-map .map-page-back {
  align-self: flex-start;
  margin: 0.65rem 1rem 0.25rem;
}

/* Rectángulos horizontales desplegables de Otras áreas. */
.areas-section {
  margin: 0 0 1.75rem;
  scroll-margin-top: calc(var(--header-h) + 0.8rem);
}
.areas-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.area-panel {
  background: var(--upp-white);
  border: 1px solid var(--upp-gray-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.area-panel-head {
  width: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  text-align: left;
  background: linear-gradient(135deg, var(--upp-white), var(--upp-purple-ultra));
  transition: background 0.18s, transform 0.18s;
}
.area-panel-head:hover { background: var(--upp-purple-pale); }
.area-panel.open .area-panel-head { background: var(--upp-purple-pale); }
.area-panel-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--upp-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.area-panel-icon.gold { background: var(--upp-gold); }
.area-panel-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}
.area-panel-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.area-panel-copy strong {
  color: var(--upp-oxford);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 3vw, 1.05rem);
}
.area-panel-copy > span {
  color: var(--upp-gray-mid);
  font-size: 0.76rem;
  line-height: 1.45;
}
.area-chevron {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  stroke: var(--upp-gray-mid);
  stroke-width: 2;
  transition: transform 0.25s var(--ease-spring), stroke 0.2s;
}
.area-panel.open .area-chevron {
  transform: rotate(90deg);
  stroke: var(--upp-purple);
}
.area-panel-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-out);
}
.area-panel.open .area-panel-body { grid-template-rows: 1fr; }
.area-panel-body-inner {
  min-height: 0;
  overflow: hidden;
}
.area-panel.open .area-panel-body-inner {
  padding: 0.85rem;
  border-top: 1px solid var(--upp-gray-border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
@media (min-width: 680px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.area-contact-card { min-width: 0; }
.area-contact-card .fin-mail { word-break: break-all; }

@media (max-width: 380px) {
  .video-grid { gap: 0.55rem; }
  .area-panel-head { padding: 0.85rem; }
  .area-panel-icon { width: 40px; height: 40px; }
}

/* ═══════════════════════════════════════════════════
   CORRECCIONES 2026-08: YOUTUBE, MAPA, CALENDARIO
   Y DISEÑO RESPONSIVO
   ═══════════════════════════════════════════════════ */

/* ─── TARJETAS DE YOUTUBE ─── */
.youtube-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--upp-white);
  border: 1px solid var(--upp-gray-border);
  box-shadow: var(--shadow-card);
  color: var(--upp-oxford);
  transition: transform .18s var(--ease-out), box-shadow .18s, border-color .18s;
}
.youtube-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised);
  border-color: var(--upp-purple-light);
}
.youtube-card:focus-visible {
  outline: 3px solid rgba(92,45,145,.28);
  outline-offset: 3px;
}
.youtube-card.is-pending { cursor: default; }
.youtube-card.is-pending:hover { transform: none; box-shadow: var(--shadow-card); }
.youtube-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, #2A1060, var(--upp-purple));
}
.youtube-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.youtube-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,13,40,.42), transparent 58%);
  pointer-events: none;
}
.youtube-play {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  transform: translate(-50%,-50%);
  width: clamp(44px, 12vw, 62px);
  height: clamp(44px, 12vw, 62px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ff0033;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.youtube-play svg { width: 48%; height: 48%; margin-left: 4%; }
.youtube-badge {
  position: absolute;
  z-index: 2;
  left: .65rem;
  bottom: .6rem;
  padding: .28rem .48rem;
  border-radius: var(--r-sm);
  background: rgba(17,12,28,.82);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.youtube-placeholder-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.24);
}
.youtube-placeholder-icon svg { width: 44%; height: 44%; stroke-width: 1.3; }
.youtube-copy {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .75rem .85rem .85rem;
}
.youtube-copy strong { font-family: var(--font-display); font-size: .88rem; }
.youtube-copy span { color: var(--upp-gray-mid); font-size: .73rem; }

/* Otras áreas ahora vive dentro de Información. */
#page-info .areas-section {
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

/* ─── MAPA: nunca cubre la navegación inferior ─── */
#page-map { position: relative; background: var(--upp-gray-light); }
#page-map.active { padding-bottom: 0; }
#page-map .map-page-back { flex-shrink: 0; }
#map-container, #leaflet-map { max-height: 100%; }
.bottom-nav { isolation: isolate; }

/* ─── CALENDARIO INTERACTIVO ─── */
.calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.academic-calendar {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--upp-white);
  border: 1px solid var(--upp-gray-border);
  box-shadow: var(--shadow-card);
}
.calendar-toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 44px;
  align-items: center;
  gap: .5rem;
  padding: .8rem;
  background: linear-gradient(135deg, var(--upp-purple-dark), var(--upp-purple));
}
.calendar-nav-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: #fff;
  background: rgba(255,255,255,.12);
  transition: background .15s, opacity .15s;
}
.calendar-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,.22); }
.calendar-nav-btn:disabled { opacity: .35; cursor: not-allowed; }
.calendar-nav-btn svg { width: 21px; height: 21px; stroke-width: 2.2; }
.calendar-month-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--r-md);
  padding: 0 2.2rem 0 .8rem;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  outline: none;
}
.calendar-month-select option { color: var(--upp-oxford); background: #fff; }
.calendar-layout { display: grid; grid-template-columns: 1fr; }
.calendar-board { min-width: 0; padding: .85rem; }
.calendar-weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .25rem; }
.calendar-weekdays { margin-bottom: .35rem; }
.calendar-weekdays span {
  text-align: center;
  color: var(--upp-gray-mid);
  font-size: .62rem;
  font-weight: 700;
}
.calendar-day {
  min-width: 0;
  min-height: clamp(48px, 13vw, 68px);
  padding: .35rem .18rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  color: var(--upp-gray-dark);
  background: var(--upp-gray-light);
  transition: border-color .14s, background .14s, transform .14s;
}
.calendar-day:not(.calendar-day-empty):hover { border-color: var(--upp-purple-light); transform: translateY(-1px); }
.calendar-day.has-events { color: var(--upp-oxford); background: var(--upp-purple-ultra); border-color: var(--upp-gray-border); }
.calendar-day.selected { color: #fff; background: var(--upp-purple); border-color: var(--upp-purple); box-shadow: 0 4px 12px rgba(92,45,145,.22); }
.calendar-day-empty { visibility: hidden; pointer-events: none; }
.calendar-day-number { font-family: var(--font-display); font-size: clamp(.72rem,3vw,.9rem); font-weight: 700; }
.calendar-day-marks {
  min-height: 12px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.calendar-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--event-color);
  box-shadow: 0 0 0 1px rgba(255,255,255,.72);
}
.calendar-day.selected .calendar-dot { box-shadow: 0 0 0 1px rgba(255,255,255,.88); }
.calendar-more { font-size: .54rem; font-weight: 700; }
.calendar-detail {
  min-height: 174px;
  padding: 1rem;
  border-top: 1px solid var(--upp-gray-border);
  background: linear-gradient(155deg, var(--upp-purple-ultra), #fff);
}
.calendar-detail-empty {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-align: center;
}
.calendar-detail-empty svg { width: 34px; height: 34px; stroke: var(--upp-purple-light); stroke-width: 1.5; }
.calendar-detail-empty strong { font-family: var(--font-display); font-size: .9rem; }
.calendar-detail-empty span { max-width: 300px; color: var(--upp-gray-mid); font-size: .75rem; line-height: 1.5; }
.calendar-detail-kicker { color: var(--upp-purple); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.calendar-detail-content h3 { margin: .25rem 0 .8rem; }
.calendar-event-list { display: flex; flex-direction: column; gap: .55rem; }
.calendar-event-row {
  display: grid;
  grid-template-columns: 4px minmax(0,1fr);
  align-items: stretch;
  gap: .65rem;
  padding: .62rem .7rem;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--upp-gray-border);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.4;
}
.calendar-event-bar { width: 4px; border-radius: 99px; background: var(--event-color); }
.calendar-legend { border-top: 1px solid var(--upp-gray-border); }
.calendar-legend summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: .7rem 1rem;
  color: var(--upp-purple);
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}
.calendar-legend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  padding: 0 1rem 1rem;
}
.calendar-legend-item {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: var(--upp-gray-dark);
  font-size: .7rem;
  line-height: 1.35;
}
.calendar-legend-item .calendar-dot { margin-top: .12rem; box-shadow: none; }

/* ─── RESPONSIVO: 320 px hasta pantallas grandes ─── */
@media (max-width: 419px) {
  .video-grid { grid-template-columns: 1fr; max-width: 360px; }
  .calendar-heading { align-items: flex-start; }
  .calendar-board { padding: .55rem; }
  .calendar-grid, .calendar-weekdays { gap: .15rem; }
  .calendar-day { min-height: 46px; border-radius: 6px; }
  .calendar-dot { width: 6px; height: 6px; flex-basis: 6px; }
  .area-panel-copy > span { font-size: .7rem; }
}
@media (min-width: 560px) {
  .youtube-copy { padding: .85rem 1rem 1rem; }
  .calendar-legend-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 700px) {
  .calendar-layout { grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); }
  .calendar-detail { border-top: 0; border-left: 1px solid var(--upp-gray-border); }
  .calendar-board { padding: 1rem; }
  .calendar-legend-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  #page-home, #page-info, #page-calendario, #page-guias { max-width: 1080px; }
  .video-grid { max-width: 760px; }
  .calendar-legend-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .area-panel-head { min-height: 82px; }
}
@media (min-width: 1440px) {
  #page-home, #page-info, #page-calendario, #page-guias { max-width: 1180px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  :root { --nav-h: 54px; --header-h: 52px; }
  #page-map .map-page-back { margin-top: .35rem; margin-bottom: .15rem; padding-block: .35rem; }
  .map-toolbar { padding-block: .38rem; }
  .nav-label { font-size: .54rem; }
}

/* ─── VISOR LOCAL DEL MAPA ─── */
#leaflet-map {
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: grab;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.75), transparent 46%),
    #dfeeda;
}
#leaflet-map.is-dragging { cursor: grabbing; }
.campus-map-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 800px;
  height: 1050px;
  transform-origin: 0 0;
  will-change: transform;
}
.campus-map-stage.is-animating { transition: transform .4s var(--ease-out); }
.campus-map-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.map-poi {
  position: absolute;
  z-index: 5;
  transform: translate(-50%,-82%);
  width: 52px;
  height: 62px;
  overflow: visible;
  touch-action: manipulation;
}
.map-poi:focus-visible { outline: 3px solid rgba(92,45,145,.35); outline-offset: 4px; border-radius: 50%; }
.campus-map-controls {
  position: absolute;
  z-index: 30;
  top: .75rem;
  right: .75rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid rgba(92,45,145,.18);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(8px);
}
.campus-map-controls button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--upp-purple);
  background: transparent;
  border-bottom: 1px solid var(--upp-gray-border);
  font-size: 1.35rem;
  font-weight: 700;
}
.campus-map-controls button:last-child { border-bottom: 0; }
.campus-map-controls button:hover { background: var(--upp-purple-pale); }
.campus-map-controls svg { width: 19px; height: 19px; stroke-width: 2; }
