/* ─── Escala de capas visuales (z-index) ─────────────────────────────────────
 *
 *  --z-map        1       Fondo: mapa y elementos internos del mapa
 *  --z-fab       500      Header principal y FABs flotantes
 *  --z-panel     600      Paneles bottom-sheet (filtros, reporte, viaje)
 *  --z-modal    1000      Modales base (.modal)
 *  --z-drawer   1100      Drawer lateral y su backdrop
 *  --z-overlay 10000      Modales de capa superior (detalle, comentarios, compartir)
 *  --z-top     99999      Elementos siempre al frente (loader, login, dropdown)
 *
 *  Valores intermedios se expresan como calc(var(--z-X) ± N).
 * ──────────────────────────────────────────────────────────────────────────── */
:root {
  --z-map:      1;
  --z-fab:      500;
  --z-panel:    600;
  --z-modal:    1000;
  --z-drawer:   1100;
  --z-overlay:  10000;
  --z-top:      99999;
}

html {
  height: 100%;
}

/* ====== SCROLLBARS AERO (globales) ====== */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 160, 255, 0.22);
  border-radius: 4px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 160, 255, 0.42);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 160, 255, 0.22) transparent;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0c1a2b;
  color: white;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  overflow-x: hidden;
}

#map {
  width: 100%;
  filter: brightness(0.85) contrast(1.1);
  z-index: var(--z-map);
  flex: 1;
  min-height: 0;
  height: auto;
}

#main-header {
  background-color: #002c6d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 50px;
  flex-shrink: 0;
  position: relative;
  z-index: var(--z-fab);
}

#btn-hamburguesa {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: background 0.15s;
  line-height: 1;
}

#btn-hamburguesa:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.aero-button {
  background-color: rgba(255, 255, 255, 0.1);

  border: none;

  color: white;

  padding: 0.5rem 1rem;

  font-size: 0.9rem;

  border-radius: 5px;

  cursor: pointer;

  backdrop-filter: blur(6px);

  -webkit-backdrop-filter: blur(6px);

  transition: background-color 0.2s ease;
}

.aero-button:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* ─── Sistema Aero — superficies de vidrio ────────────────────────────────────
 *
 * .aero-surface       → paneles y modales opacos (opacity 0.92, border-radius 16px)
 *                        Usada en: .modal-categoria-content
 *
 * .aero-surface--modal → modales flotantes semitransparentes (opacity 0.46, border-radius 14px)
 *                        Usada en: .modal-asesorate-nuevo, .modal-login-prompt-content,
 *                                  .modal-config-nuevo, .modal-estado-nuevo
 *
 * Propiedades individuales (background, overflow, border-radius) que difieren entre
 * instancias se mantienen en cada selector para preservar la semántica visual.
 * ──────────────────────────────────────────────────────────────────────────── */

.aero-surface {
  background: rgba(8, 22, 50, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.aero-surface--modal {
  background: rgba(8, 22, 50, 0.46);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 12, 28, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sobreescribe el display:none de .hidden para que la transición pueda ejecutarse */
.modal.hidden {
  display: flex;
  opacity: 0;
  pointer-events: none;
}

.modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(8, 22, 50, 0.46);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 14px;
  border: none;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.65),
    0 4px 16px rgba(0, 0, 0, 0.4);
  padding: 1rem;
  text-align: center;
  width: 90%;
  color: white;
}



#modal-detalle {
  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(4, 12, 28, 0.6);

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: var(--z-overlay);
}

#modal-detalle .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(8, 22, 50, 0.46);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 14px;
  border: none;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.65),
    0 4px 16px rgba(0, 0, 0, 0.4);
  padding: 0;
  text-align: left;
  width: 98vw;
  max-width: 1000px;
  min-width: 320px;
  color: white;
  animation: fadeIn 0.3s ease;
  max-height: 92vh;
  overflow: hidden;
}

@media (max-width: 900px) {
  #modal-detalle .modal-content {
    max-width: 98vw;
    max-height: 98vh;
  }
}

@media (max-width: 600px) {
  #modal-detalle .modal-content {
    min-width: 0;
    border-radius: 10px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;

    transform: scale(0.95);
  }

  to {
    opacity: 1;

    transform: scale(1);
  }
}

/* #splash-logo animation defined below with full rule */

#filter-categoria option {
  background-color: #1c1c1c;

  color: white;
}

#comentario-input {
  resize: none !important;
  height: 42px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.2;
  margin: 0;
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 8px 0 0 8px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  box-sizing: border-box;
  outline: none;
}
#comentario-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

#btn-comentar {
  height: 42px;
  padding: 0 1rem;
  margin: 0;
  flex-shrink: 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  background: #1a3a6e;
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.15s;
  box-sizing: border-box;
}
#btn-comentar:hover {
  background: #1e4d8c;
}

#comentario-wrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin-top: 0.75rem;
}

#description {
  resize: none !important;

  min-height: 100px;

  max-height: 100px;

  padding: 0.75rem;

  font-size: 1rem;
}

#splash-screen {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-overlay) - 1);
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.4s ease;
}

#splash-screen.splash-fadeout {
  opacity: 0;
  pointer-events: none;
}

#splash-logo {
  width: 120px;
  max-width: 80%;
  margin-bottom: 1rem;
  opacity: 0;
}

#splash-logo.loaded {
  animation: splashEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splashEntrance {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1.0);
  }
}

/* Regla global para ocultar elementos con clase hidden */
.hidden {
  display: none !important;
}

/* Modal Guardados */
.modal-guardados-content {
  max-width: 440px;
  width: 92%;
  max-height: 85vh;
  padding: 0;
  text-align: left;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(8, 22, 50, 0.46);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
}

.mg-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 1.25rem 1.1rem;
  padding-right: 2.5rem;
  background: linear-gradient(135deg, rgba(15, 40, 71, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px 14px 0 0;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.mg-header-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.mg-titulo {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.1rem;
}

.mg-subtitulo {
  font-size: 0.78rem;
  color: #90a4ae;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mg-lista {
  overflow-y: auto;
  flex: 1;
  padding: 0.9rem 1rem;
}

.guardado-card {
  background: rgba(22, 34, 52, 0.55);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.guardado-card-body {
  flex: 1;
  min-width: 0;
}

.guardado-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  color: #fff;
}

.guardado-badge.cat-accidente { background: #e53935; }
.guardado-badge.cat-corte     { background: #fb8c00; }
.guardado-badge.cat-auxilio   { background: #fdd835; color: #222; }
.guardado-badge.cat-general   { background: #1e88e5; }

.guardado-ubicacion {
  font-size: 0.78rem;
  color: #7a9ab8;
  margin: 0 0 0.3rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guardado-descripcion {
  font-size: 0.88rem;
  color: #cfd8dc;
  margin: 0 0 0.65rem 0;
  line-height: 1.35;
}

.guardado-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.guardado-ver-btn {
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #90caf9;
  cursor: pointer;
  transition: background 0.15s;
}

.guardado-ver-btn:hover {
  background: rgba(255,255,255,0.13);
}

.guardados-vacio {
  text-align: center;
  padding: 2rem 1rem;
  color: #7a9ab8;
  font-size: 0.95rem;
}


#anti-bot-report {
  display: none;
}

/* ========== MODAL ASESORATE / A24 CAMIONEROS ========== */
.modal-asesorate-nuevo {
  /* background, backdrop-filter, border-radius, overflow, box-shadow → .aero-surface--modal */
  max-width: 400px;
  width: 92%;
  padding: 0;
  text-align: left;
  position: relative;
}

.asesorate-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.4rem 1.25rem 1.2rem;
  padding-right: 2.5rem;
  background: linear-gradient(135deg, rgba(15, 40, 71, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}

.asesorate-brand-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.asesorate-brand-titulo {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.15rem;
  letter-spacing: 0.3px;
}

.asesorate-brand-subtitulo {
  font-size: 0.8rem;
  color: #90a4ae;
  margin: 0;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.asesorate-card {
  margin: 1rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.asesorate-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.asesorate-card-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.asesorate-card-titulo {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.asesorate-card-texto {
  font-size: 0.88rem;
  color: #90a4ae;
  line-height: 1.6;
  margin: 0 0 0.9rem;
}

.asesorate-card-texto strong {
  color: #cfd8dc;
  font-weight: 600;
}

.asesorate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: filter 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.asesorate-btn:active {
  transform: scale(0.98);
}

.asesorate-btn-whatsapp {
  background: #25d366;
  color: white;
}

.asesorate-btn-whatsapp:hover {
  filter: brightness(1.1);
}

.asesorate-btn-facebook {
  background: #1877f2;
  color: white;
}

.asesorate-btn-facebook:hover {
  filter: brightness(1.1);
}

.asesorate-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.asesorate-footer-nota {
  font-size: 0.78rem;
  color: #455a64;
  text-align: center;
  padding: 0.5rem 1.25rem 1.1rem;
  margin: 0;
  line-height: 1.5;
}


.cerrar-modal {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
  z-index: calc(var(--z-map) + 1);
  transition: color 0.15s, background 0.15s;
}

.cerrar-modal:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.filtro-label {
  display: block;

  margin-top: 1rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;

  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);

  background-color: rgba(255, 255, 255, 0.05);

  transition:
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

/* modal-detalle-content: el layout lo maneja #modal-detalle .modal-content */
.modal-content.modal-detalle-content {
  position: relative;
}

/* ---- Header del reporte: gradient + avatar + info ---- */
.detalle-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 3rem 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(15, 40, 71, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%);
  border-radius: 14px 14px 0 0;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.detalle-header-foto {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.detalle-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.detalle-header-nombre {
  font-size: 1rem;
  font-weight: 700;
  color: #e8f0fe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detalle-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.detalle-badge-categoria {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(255, 255, 255, 0.12);
  color: #cfd8dc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.detalle-cat-accidente-de-transito {
  background: rgba(244, 67, 54, 0.2);
  color: #ef9a9a;
  border-color: rgba(244, 67, 54, 0.4);
}
.detalle-cat-corte-de-ruta {
  background: rgba(255, 152, 0, 0.2);
  color: #ffcc80;
  border-color: rgba(255, 152, 0, 0.4);
}
.detalle-cat-pedido-de-auxilio {
  background: rgba(255, 235, 59, 0.15);
  color: #fff176;
  border-color: rgba(255, 235, 59, 0.35);
}
.detalle-cat-reporte-general {
  background: rgba(33, 150, 243, 0.2);
  color: #90caf9;
  border-color: rgba(33, 150, 243, 0.4);
}

.detalle-header-tiempo {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Contenedor flex de las dos columnas */
.modal-detalle-flex {
  display: flex;
  flex-direction: row;
  gap: 1.75rem;
  width: 100%;
  max-height: calc(92vh - 80px);
  overflow: hidden;
}

@media (max-width: 900px) {
  .modal-detalle-flex {
    flex-direction: column;
    gap: 0;
    max-height: calc(98vh - 80px);
    overflow-y: auto;
  }

  .detalle-derecha {
    max-width: 100%;
    padding: 0 1.2rem 1rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
  }
}

.detalle-izquierda {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  padding: 1rem 1.2rem 1.2rem;
}

.detalle-derecha {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem 1.2rem 1.2rem 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
}

#comentarios-lista {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  #comentarios-lista {
    max-height: 120px;
  }
}

/* Botón "Ver todos los comentarios" — aparece en .detalle-derecha (desktop) y en mobile
   vía media query específico debajo. JS controla display:block cuando hay comentarios. */
.btn-ver-mas-comentarios {
  width: 100%;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #90a4ae;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 0.5rem;
}
.btn-ver-mas-comentarios:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #cfd8dc;
}

/* ================================================================
   MODAL DE COMENTARIOS EXTENDIDO — Aero + tabs + paginación
   ================================================================ */
#modal-comentarios {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 12, 28, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: calc(var(--z-overlay) + 1);
}
#modal-comentarios .modal-content.modal-comentarios-nuevo {
  background: rgba(8, 22, 50, 0.46);
  border: none;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 4px 16px rgba(0, 0, 0, 0.4);
  border-radius: 14px;
  width: 96vw;
  max-width: 560px;
  min-width: 280px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: white;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  animation: fadeIn 0.25s ease;
}

/* Header del modal de comentarios — SCOPED intencionalmente.
   Las clases .mc-header, .mc-titulo se comparten con el modal de configuración
   (.modal-config-nuevo). El selector global .mc-header (al final del archivo) define
   el layout icon+título del config modal. Aquí se sobreescribe solo dentro de
   .modal-comentarios-nuevo para el layout título+botón-cerrar del modal de comentarios.
   ⚠️ Si agregás un nuevo modal con .mc-header: scopealo igual que este. */
.modal-comentarios-nuevo .mc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
.modal-comentarios-nuevo .mc-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0;
}
.mc-cerrar {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
  flex-shrink: 0;
}
.mc-cerrar:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Tabs de orden */
.comentarios-orden-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 1rem 0.5rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.orden-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  padding: 0.28rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.orden-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.85);
}
.orden-tab.activo {
  background: rgba(33, 150, 243, 0.22);
  border-color: rgba(33, 150, 243, 0.55);
  color: #90caf9;
  font-weight: 600;
}

/* Lista de comentarios scrollable */
.comentarios-ext-lista {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

/* Paginación */
.comentarios-paginacion {
  flex-shrink: 0;
  padding: 0.5rem 1rem 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.paginacion-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.pag-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.pag-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pag-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.13);
  color: white;
}
.pag-btn.activo {
  background: rgba(33, 150, 243, 0.3);
  border-color: rgba(33, 150, 243, 0.6);
  color: #90caf9;
  font-weight: 700;
}
.pag-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}
.pag-arrow {
  font-size: 1rem;
  min-width: 36px;
}
.pag-dots {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  padding: 0 0.15rem;
  letter-spacing: 1px;
}

/* Área de input del modal extendido */
.mc-input-area {
  flex-shrink: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 1rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 18, 38, 0.6);
}
.mc-input-area-hint {
  justify-content: center;
  align-items: center;
}
.mc-login-hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.38);
  font-style: italic;
}
.mc-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: white;
  font-size: 0.88rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}
.mc-input:focus {
  border-color: rgba(33, 150, 243, 0.55);
}
.mc-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.mc-btn-comentar {
  background: #1565c0;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.mc-btn-comentar:hover {
  background: #1976d2;
}

/* Sin comentarios */
.mc-sin-comentarios {
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.88rem;
  padding: 1.5rem 0;
}

/* ================================================================
   COMENTARIO ITEM — diseño minimalista
   ================================================================ */
.coment-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: background 0.15s;
}
.coment-item:hover {
  background: rgba(255, 255, 255, 0.065);
}
.coment-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.coment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.coment-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.coment-nombre {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e3eaf5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coment-tiempo {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
}
.coment-texto {
  font-size: 0.87rem;
  line-height: 1.5;
  color: #cfd8dc;
  margin: 0.1rem 0 0;
  word-break: break-word;
}
.coment-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.coment-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.coment-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
.coment-btn.activo {
  background: rgba(33, 150, 243, 0.2);
  border-color: rgba(33, 150, 243, 0.5);
  color: #90caf9;
}
.coment-btn-dislike.activo {
  background: rgba(239, 83, 80, 0.18);
  border-color: rgba(239, 83, 80, 0.45);
  color: #ef9a9a;
}
.coment-btn-den {
  margin-left: auto;
  border-color: transparent;
  font-size: 0.8rem;
  padding: 0.15rem 0.4rem;
  opacity: 0.45;
}
.coment-btn-den:hover {
  opacity: 1;
  background: rgba(239, 83, 80, 0.12);
  border-color: rgba(239, 83, 80, 0.3);
  color: #ef9a9a;
}
.coment-btn-den.ya-denunciado {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}
.coment-count {
  font-variant-numeric: tabular-nums;
}

/* Loader global */

#global-loader {
  position: fixed;

  inset: 0;

  z-index: var(--z-top);

  background: rgba(0, 0, 0, 0.35);

  display: flex;

  align-items: center;

  justify-content: center;

  transition: opacity 0.2s;
}

#global-loader.hidden {
  display: none;
}

.loader-spinner {
  width: 54px;

  height: 54px;

  border: 6px solid #fff;

  border-top: 6px solid #2196f3;

  border-radius: 50%;

  animation: spin 1s linear infinite;

  box-shadow:
    0 0 16px #2196f3,
    0 0 2px #fff;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Mensaje global (showMessage) */

.global-message {
  position: fixed;

  top: 24px;

  left: 50%;

  transform: translateX(-50%);

  z-index: calc(var(--z-top) + 1);

  background: rgba(30, 30, 30, 0.97);

  color: #fff;

  padding: 0.85rem 2.2rem;

  border-radius: 8px;

  font-size: 1.08rem;

  font-weight: 500;

  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);

  border: 1.5px solid #2196f3;

  display: none;

  transition:
    opacity 0.2s,
    top 0.2s;
}

.global-message.info {
  border-color: #2196f3;
}

.global-message.success {
  border-color: #4caf50;

  background: rgba(40, 60, 40, 0.97);
}

.global-message.error {
  border-color: #e53935;

  background: rgba(60, 30, 30, 0.97);
}

/* Accesibilidad: mostrar foco solo con teclado, no al hacer click con el mouse */

button:focus-visible,
.aero-button:focus-visible,
.cerrar-modal:focus-visible {
  outline: 2.5px solid #2196f3;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.18);
  background-color: rgba(33, 150, 243, 0.08);
}

button:focus:not(:focus-visible),
.aero-button:focus:not(:focus-visible),
.cerrar-modal:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
  background-color: transparent;
}

.modal-content,
.modal-content.modal-detalle-content {
  transform: scale(0.97);

  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal:not(.hidden) .modal-content,
.modal:not(.hidden) .modal-content.modal-detalle-content {
  transform: scale(1);
}

/* Asegura que todos los elementos respeten límites */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Input de suscripción */

#subscribe-route {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

/* Botón de suscripción */

#subscribe-btn {
  flex-shrink: 0;
  max-width: 160px;
  white-space: nowrap;
}

/* ========== MODAL DETALLE: estilos específicos ========== */

/* Imagen/video del incidente — protagonismo arriba */
.detalle-media-file {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  display: block;
  margin-bottom: 0.85rem;
}


.detalle-ubicacion {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e0e8f0;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.1px;
}

.detalle-descripcion {
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.65;
  color: #cfd8dc;
  margin: 0.25rem 0 0.75rem;
  white-space: pre-wrap;
}

/* ================================================================
   BARRA DE REACCIONES DEL REPORTE — pill like/dislike + circulares
   ================================================================ */
#detalle-interacciones {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}

/* Pill unificada like + dislike */
.reaccion-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
}
.reaccion-pill-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.reaccion-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.reaccion-pill-btn.activo {
  color: #90caf9;
  background: rgba(33, 150, 243, 0.22);
}
.reaccion-pill-btn#btn-dislike.activo {
  color: #ef9a9a;
  background: rgba(239, 83, 80, 0.18);
}
.reaccion-pill-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.reaccion-count {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Botones circulares: guardar y denunciar */
.btn-reaccion-icono {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-reaccion-icono:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  transform: scale(1.08);
}
.btn-reaccion-icono.activo {
  background: rgba(33, 150, 243, 0.22);
  border-color: rgba(33, 150, 243, 0.5);
  color: #90caf9;
}
.btn-reaccion-icono#btn-denunciar.activo,
.btn-reaccion-icono#btn-denunciar.ya-denunciado {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
.btn-reaccion-icono:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}


/* Panel de edición inline */
.panel-edicion {
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: fadeIn 0.2s ease;
}
.panel-edicion.hidden {
  display: none;
}
.edicion-textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: white;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.55rem 0.75rem;
  resize: vertical;
  min-height: 80px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.edicion-textarea:focus {
  border-color: rgba(33, 150, 243, 0.55);
}
.edicion-textarea::placeholder,
.edicion-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
.edicion-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: white;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}
.edicion-input:focus {
  border-color: rgba(33, 150, 243, 0.55);
}
.edicion-acciones {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.edicion-btn-cancelar {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.83rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.edicion-btn-cancelar:hover {
  background: rgba(255, 255, 255, 0.13);
  color: white;
}
.edicion-btn-guardar {
  background: #1565c0;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.edicion-btn-guardar:hover {
  background: #1976d2;
}
.edicion-aviso-tiempo {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
  text-align: right;
}

/* Título de la sección de comentarios */
.detalle-comentarios-titulo {
  font-size: 0.85rem;
  font-weight: 600;
  color: #90a4ae;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.3px;
}

/* ========== BOTONES FLOTANTES ========== */

#btn-nuevo-reporte,
#btn-filtros {
  position: fixed;
  left: 0.65rem;
  z-index: var(--z-panel);
  border-radius: 50%;
  background: #1a3a6e;
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1),
              opacity 0.2s ease,
              box-shadow 0.2s ease;
}

#btn-nuevo-reporte {
  bottom: 2rem;
  width: 56px;
  height: 56px;
  font-size: 1.7rem;
}

#btn-filtros {
  bottom: 6.4rem;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

#btn-nuevo-reporte:hover,
#btn-filtros:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.55);
}

#btn-nuevo-reporte.oculto {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

/* Punto rojo cuando hay filtros activos */
#btn-filtros.activo::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e53935;
  border: 2px solid #0c1a2b;
}

/* ========== PANEL DE FILTROS ========== */

#panel-filtros {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-panel);
  background: rgba(8, 22, 50, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: none;
  padding: 0.9rem 1.25rem 1.4rem;
  box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.34, 1.1, 0.64, 1);
  will-change: transform;
  box-sizing: border-box;
}

#panel-filtros::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 0.85rem;
}

#panel-filtros.abierto {
  transform: translateY(0);
}

#filtros-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filtro-chip {
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-family: 'Segoe UI', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  text-align: center;
  white-space: nowrap;
}

.filtro-chip.activo {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Color de borde por categoría al activarse */
.filtro-chip[data-categoria="ACCIDENTE DE TRANSITO"].activo {
  border-color: #e53935;
}
.filtro-chip[data-categoria="CORTE DE RUTA"].activo {
  border-color: #fb8c00;
}
.filtro-chip[data-categoria="PEDIDO DE AUXILIO"].activo {
  border-color: #fdd835;
}
.filtro-chip[data-categoria="REPORTE GENERAL"].activo {
  border-color: #42a5f5;
}

#btn-ver-todos {
  width: 100%;
  padding: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.2px;
  transition: color 0.15s;
}

#btn-ver-todos:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ========== OVERLAY ========== */

#map-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: calc(var(--z-panel) - 10);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#map-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ========== PANEL DESLIZABLE ========== */

#panel-reporte {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-panel);
  background: rgba(8, 22, 50, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: none;
  padding: 1.1rem 1.25rem 1.5rem;
  box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.1, 0.64, 1);
  will-change: transform;
  max-height: 62vh;
  height: auto;
  overflow-y: auto;
  box-sizing: border-box;
}

#panel-reporte.abierto {
  transform: translateY(0);
}

/* Tirador visual */
#panel-reporte::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 0.9rem;
}

/* ========== CABECERA DEL PANEL ========== */

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.panel-titulo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.95);
}

.panel-cerrar {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.panel-cerrar:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.panel-back {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  transition: color 0.15s;
}

.panel-back:hover {
  color: white;
}

/* ========== GRILLA DE CATEGORÍAS ========== */

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 440px) {
  .categorias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.categoria-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.55rem 0.3rem;
  color: white;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.18s, border-color 0.18s, transform 0.1s;
  line-height: 1.2;
}

.categoria-card span:first-child {
  font-size: 1.5rem;
}

.categoria-card:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.categoria-card.seleccionada {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ========== FILA DE UBICACIÓN ========== */

.ubicacion-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.ubicacion-row input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
}

.ubicacion-row input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ubicacion-row button {
  padding: 0.6rem 0.9rem;
  background: rgba(59, 130, 246, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}

.ubicacion-row button:hover {
  background: rgba(59, 130, 246, 1);
}


#mensaje-ubicacion {
  font-size: 0.78rem;
  color: #90a4ae;
  min-height: 1.1em;
  margin: 0 0 0.5rem;
}

/* ========== PASO 2: RESUMEN + FOTO + ENVÍO ========== */

#panel-reporte #description {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  resize: none;
  min-height: 68px;
  max-height: 68px;
  margin-bottom: 0.8rem;
  box-sizing: border-box;
  display: block;
}

.foto-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.btn-foto {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.btn-foto:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.5);
}

#panel-reporte #media {
  display: none;
}

#foto-nombre {
  font-size: 0.76rem;
  color: #78909c;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-enviar {
  width: 100%;
  padding: 0.8rem;
  background: rgba(59, 130, 246, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}

.btn-enviar:hover {
  background: rgba(59, 130, 246, 1);
}

#panel-reporte #anti-bot-report {
  display: none;
}

/* ========== LOGIN HINTS (modal detalle, usuarios sin sesión) ========== */

.detalle-login-hint {
  background: rgba(26, 58, 110, 0.35);
  border: 1px solid rgba(26, 58, 110, 0.7);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  color: #90caf9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.detalle-login-hint .aero-button {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  background: rgba(26, 58, 110, 0.7);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========== DRAWER LATERAL ========== */

#drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: rgba(8, 22, 50, 0.58);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.5), inset -1px 0 0 rgba(255,255,255,0.04);
  z-index: var(--z-drawer);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#drawer.abierto {
  transform: translateX(0);
}

#drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: calc(var(--z-drawer) - 50);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#drawer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.drawer-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-user-foto {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#drawer-user-nombre {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#drawer-cerrar {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

#drawer-cerrar:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  flex: 1;
}

/* Modal de login prompt */
#modal-login-prompt {
  z-index: var(--z-top);
}

.modal-login-prompt-content {
  /* background, backdrop-filter, border-radius, overflow, box-shadow → .aero-surface--modal */
  text-align: center;
  padding: 0;
  max-width: 360px;
}

/* Encabezado con gradiente y logos */
.mlp-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: linear-gradient(135deg, rgba(15, 40, 71, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%);
  position: relative;
  overflow: hidden;
}

.mlp-logo-nr {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.mlp-logos-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.18);
  border-radius: 1px;
}

.mlp-logo-a24 {
  height: 77px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Cuerpo del modal */
.modal-login-prompt-content .modal-login-texto {
  color: #90a4ae;
  font-size: 0.92rem;
  margin: 1.3rem 1.5rem 1.4rem;
  line-height: 1.6;
}

.modal-login-prompt-content .modal-login-btn-google,
.modal-login-prompt-content .modal-login-btn-facebook {
  width: calc(100% - 3rem);
  margin: 0 1.5rem 0.65rem;
  display: block;
}

.modal-login-prompt-content .modal-login-btn-google {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
}
.modal-login-prompt-content .modal-login-btn-google:hover {
  background: rgba(255,255,255,0.14);
}

.modal-login-prompt-content .modal-login-btn-facebook {
  background: rgba(24, 119, 242, 0.18);
  border: 1px solid rgba(24, 119, 242, 0.4);
  color: #90c4ff;
}
.modal-login-prompt-content .modal-login-btn-facebook:hover {
  background: rgba(24, 119, 242, 0.28);
}

.modal-login-btn-cancel {
  width: calc(100% - 3rem);
  margin: 0 1.5rem 1.4rem;
  display: block;
  background: transparent;
  color: #607d8b;
  border: 1px solid rgba(255,255,255,0.08);
}

.modal-login-btn-explorar {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: #64b5f6;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.2px;
}

.modal-login-btn-explorar:hover {
  color: #90caf9;
  background: rgba(255,255,255,0.03);
}

.drawer-item {
  background: none;
  border: none;
  color: white;
  font-size: 0.95rem;
  text-align: left;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}

.drawer-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.drawer-item-danger {
  color: #ef5350;
  margin-top: auto;
}

.drawer-item-danger:hover {
  background: rgba(239, 83, 80, 0.1);
}

.drawer-item-footer {
  margin-top: auto;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.38);
}

.drawer-item-footer:hover {
  color: rgba(255, 255, 255, 0.65);
}

.drawer-item-login {
  background: rgba(33, 150, 243, 0.15);
  border: 1px solid rgba(33, 150, 243, 0.35);
  border-radius: 8px;
  color: #90caf9;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.drawer-item-login:hover {
  background: rgba(33, 150, 243, 0.25);
}

.drawer-footer-legal {
  padding: 0.8rem 1.25rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.drawer-footer-badge {
  display: inline-block;
  background: rgba(255, 193, 7, 0.14);
  color: #ffd54f;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  margin-bottom: 0.45rem;
}

.drawer-footer-copy {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.28);
  margin: 0 0 0.25rem;
}

.drawer-footer-inpi {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.14);
  margin: 0;
  line-height: 1.45;
}

.drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0.5rem 1rem;
}

.drawer-suscripcion {
  padding: 0.75rem 1.25rem;
}

.drawer-suscripcion-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.5rem;
}

.drawer-suscripcion-row {
  display: flex;
  gap: 0.5rem;
}

.drawer-suscripcion-row input {
  flex: 1;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: white;
  font-size: 0.9rem;
}

.drawer-suscripcion-row button {
  padding: 0.45rem 0.75rem;
  background: rgba(76, 175, 80, 0.7);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.drawer-suscripcion-row button:hover {
  background: rgba(56, 142, 60, 0.85);
}

/* ========== MODAL DESTINO FÁCIL ========== */
.modal-df-content {
  max-width: 390px;
  width: 92%;
  padding: 0;
  text-align: left;
  background: rgba(8, 22, 50, 0.46);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 14px;
  overflow: visible; /* necesario para que el dropdown de Autocomplete sea visible */
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
  position: relative;
}

.df-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.4rem 1.25rem 1.2rem;
  padding-right: 2.5rem;
  background: linear-gradient(135deg, rgba(13, 33, 55, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px 14px 0 0;
  position: relative;
  overflow: hidden;
}

.df-header-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.df-titulo {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.15rem;
}

.df-subtitulo {
  font-size: 0.8rem;
  color: #90a4ae;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.df-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.df-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.df-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #78909c;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.df-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.df-input:focus {
  border-color: rgba(33,150,243,0.6);
  background: rgba(255,255,255,0.08);
}

.df-input::placeholder {
  color: #455a64;
}

.df-btn-primary {
  width: 100%;
  padding: 0.72rem 1rem;
  background: #1565c0;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.df-btn-primary:hover { filter: brightness(1.15); }
.df-btn-primary:active { transform: scale(0.98); }
.df-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.df-btn-secondary {
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #90caf9;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.df-btn-secondary:hover { background: rgba(255,255,255,0.11); }

.df-btn-danger {
  width: 100%;
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid rgba(239,83,80,0.35);
  border-radius: 8px;
  color: #ef9a9a;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.df-btn-danger:hover {
  background: rgba(239,83,80,0.08);
  border-color: rgba(239,83,80,0.6);
}

.df-resultado {
  background: rgba(21,101,192,0.12);
  border: 1px solid rgba(33,150,243,0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.df-resultado-row {
  display: flex;
  gap: 1.5rem;
}

.df-resultado-dato {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.df-resultado-icon {
  font-size: 1rem;
}

.df-resultado-valor {
  font-size: 1rem;
  font-weight: 700;
  color: #90caf9;
}

.df-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.df-tip-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.df-tip-texto {
  font-size: 0.82rem;
  color: #607d8b;
  line-height: 1.55;
  margin: 0;
}

.df-tip-texto strong {
  color: #78909c;
  font-weight: 600;
}

/* Panel flotante de viaje activo — Destino Fácil modo viaje */
#panel-viaje {
  position: fixed;
  top: 50px; /* justo debajo del #main-header */
  left: 0;
  right: 0;
  z-index: calc(var(--z-panel) - 110);
  background: rgba(8, 22, 50, 0.92);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px 12px;
  color: #fff;
  will-change: transform;
}

#panel-viaje.hidden {
  display: none;
}

.pv-paso {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  color: #e3f2fd;
}

.pv-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 9px;
}

.pv-sep {
  margin: 0 6px;
  opacity: 0.4;
}

.pv-acciones {
  display: flex;
  gap: 8px;
}

.pv-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.pv-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pv-btn-recalcular {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pv-btn-recalcular:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.pv-btn-detener {
  background: rgba(220, 38, 38, 0.65);
  color: #fff;
  border: 1px solid rgba(220, 38, 38, 0.4);
}

.pv-btn-detener:hover {
  background: rgba(220, 38, 38, 0.85);
}

/* Asegura que el dropdown de Google Places Autocomplete quede por encima del modal */
.pac-container {
  z-index: calc(var(--z-drawer) + 100) !important;
  background: rgba(8, 22, 50, 0.46);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.pac-item {
  background: rgba(8, 22, 50, 0.46);
  color: #cfd8dc;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.pac-item:hover,
.pac-item-selected {
  background: rgba(255,255,255,0.06) !important;
}

.pac-item-query {
  color: white;
  font-size: 0.9rem;
}

.pac-matched {
  color: #64b5f6;
}

/* ========== MODAL CONFIGURACIÓN Y PRIVACIDAD ========== */
.modal-config-nuevo {
  /* background, backdrop-filter, border-radius, overflow, box-shadow → .aero-surface--modal */
  max-width: 320px;
  width: 92%;
  padding: 0;
  text-align: left;
  position: relative;
}

/* .mc-header GLOBAL — usado exclusivamente por .modal-config-nuevo (Configuración y privacidad).
   Layout: icono grande a la izquierda + título/subtítulo a la derecha.
   ⚠️ NO modificar sin revisar también .modal-comentarios-nuevo .mc-header (definido más arriba)
   que sobreescribe este selector para el modal de comentarios. Ambos comparten .mc-titulo
   pero con layouts distintos. Si agregás un nuevo modal con .mc-header: scopealo igual. */
.mc-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 1.25rem 1.1rem;
  padding-right: 2.5rem;
  background: linear-gradient(135deg, rgba(15, 40, 71, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px 14px 0 0;
  position: relative;
  overflow: hidden;
}

.mc-header-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.mc-titulo { font-size: 1.1rem; font-weight: 800; color: white; margin: 0 0 0.1rem; }
.mc-subtitulo { font-size: 0.78rem; color: #90a4ae; margin: 0; text-transform: uppercase; letter-spacing: 0.8px; }
.mc-body { padding: 0.4rem 0; }

.mc-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: none;
  border: none;
  color: white;
  font-size: 0.93rem;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s;
  box-sizing: border-box;
}

.mc-row:hover { background: rgba(255,255,255,0.06); }
.mc-row-icon { font-size: 1.05rem; width: 22px; text-align: center; flex-shrink: 0; }
.mc-row-text { flex: 1; }
.mc-row-arrow { color: rgba(255,255,255,0.3); font-size: 1.15rem; }
.mc-row-danger { color: #ef9a9a; }
.mc-row-danger:hover { background: rgba(239,83,80,0.08); }
.mc-divider { height: 1px; background: rgba(255,255,255,0.06); }

/* ========== MODAL ESTADO DE RUTA ========== */
.modal-estado-nuevo {
  /* background, backdrop-filter, border-radius, overflow, box-shadow → .aero-surface--modal */
  max-width: 370px;
  width: 92%;
  padding: 0;
  text-align: left;
  position: relative;
}

.me-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 1.25rem 1.1rem;
  padding-right: 2.5rem;
  background: linear-gradient(135deg, rgba(15, 40, 71, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px 14px 0 0;
  position: relative;
  overflow: hidden;
}

.me-header-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.me-titulo { font-size: 1.1rem; font-weight: 800; color: white; margin: 0 0 0.1rem; }
.me-subtitulo { font-size: 0.78rem; color: #90a4ae; margin: 0; text-transform: uppercase; letter-spacing: 0.8px; }

.me-body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.me-proximamente-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.me-prox-badge {
  display: inline-block;
  background: rgba(33,150,243,0.15);
  color: #64b5f6;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.65rem;
}

.me-prox-texto { font-size: 0.88rem; color: #90a4ae; line-height: 1.6; margin: 0; }

.me-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}

.me-tip p { font-size: 0.82rem; color: #607d8b; line-height: 1.55; margin: 0; }

/* ========== MOBILE BOTTOM SHEETS (≤768px) ========== */
@media (max-width: 768px) {

  /* --- Modal de detalle: bottom sheet --- */
  #modal-detalle {
    align-items: flex-end;
    transition: opacity 0.25s ease;
  }

  /* Override display:none para que la animación de translateY pueda ejecutarse */
  #modal-detalle.hidden {
    display: flex;
    opacity: 0;
    pointer-events: none;
  }

  #modal-detalle:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
  }

  #modal-detalle .modal-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 85dvh;
    max-height: 85dvh;
    border-radius: 20px 20px 0 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    animation: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.1, 0.64, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
  }

  #modal-detalle:not(.hidden) .modal-content {
    transform: translateY(0);
  }

  /* Handle (barra de drag) */
  #modal-detalle .modal-content::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    margin: 0.6rem auto 0;
    flex-shrink: 0;
  }

  /* Botón cerrar: se mantiene absolute, queda arriba a la derecha */
  #modal-detalle .cerrar-modal {
    top: 0.4rem;
    right: 0.75rem;
  }

  /* Header: quitar border-radius superiores si el handle está arriba */
  #modal-detalle .detalle-header {
    border-radius: 0;
    padding-top: 0.75rem;
  }

  /* Área scrollable single-column */
  #modal-detalle .modal-detalle-flex {
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem 1.5rem;
    max-height: none;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }

  /* Sin doble padding en columna izquierda; flex:none evita espacio vacío */
  #modal-detalle .detalle-izquierda {
    padding: 0;
    overflow-y: visible;
    flex: none;
    min-height: 0;
  }

  /* Imagen sin bleed, contiene la foto correctamente */
  #modal-detalle .detalle-media-file {
    max-height: 240px;
    width: 100%;
    margin-left: 0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
  }

  /* En mobile: input y login-comment ocultos; comentarios y título visibles como preview */
  #modal-detalle .detalle-derecha #detalle-login-comment,
  #modal-detalle .detalle-derecha #comentario-wrapper {
    display: none;
  }

  /* Título "Comentarios" visible en mobile */
  #modal-detalle .detalle-derecha .detalle-comentarios-titulo {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.4rem;
  }

  /* Preview de los primeros 3 comentarios — sin scroll, sin altura fija */
  #modal-detalle .detalle-derecha #comentarios-lista {
    display: block;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-bottom: 0;
  }

  /* Ocultar comentarios 4 en adelante */
  #modal-detalle .detalle-derecha #comentarios-lista .coment-item:nth-child(n+4) {
    display: none;
  }
  /* En mobile: forzar display:block para que el contenedor no colapse */
  #modal-detalle .detalle-derecha {
    display: block;
    border-top: none;
    padding: 0;
    margin-top: 0;
  }

  /* Botón "Ver comentarios (X)" visible en mobile — acceso al bottom sheet */
  #ver-mas-comentarios {
    display: block !important;
    margin-top: 0.75rem;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.35);
    border-radius: 10px;
    cursor: pointer;
    color: #90caf9;
    text-align: center;
    font-weight: 600;
  }

  /* --- Modal de comentarios: bottom sheet sobre el detalle --- */
  #modal-comentarios {
    align-items: flex-end;
    z-index: calc(var(--z-overlay) + 2);
    transition: opacity 0.25s ease;
  }

  #modal-comentarios.hidden {
    display: flex;
    opacity: 0;
    pointer-events: none;
  }

  #modal-comentarios:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
  }

  #modal-comentarios .modal-content.modal-comentarios-nuevo {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 82dvh;
    max-height: 82dvh;
    border-radius: 22px 22px 0 0;
    padding: 0;
    overflow: hidden;
    transform: translateY(100%);
    animation: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.1, 0.64, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
  }

  #modal-comentarios:not(.hidden) .modal-content.modal-comentarios-nuevo {
    transform: translateY(0);
  }

  /* Handle de drag */
  #modal-comentarios .modal-content.modal-comentarios-nuevo::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    margin: 0.6rem auto 0;
    flex-shrink: 0;
  }

  /* Tabs en una sola fila scrollable si hace falta */
  .comentarios-orden-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .comentarios-orden-tabs::-webkit-scrollbar { display: none; }

  /* Input area en mobile: columna */
  .mc-input-area {
    flex-direction: column;
    gap: 0.4rem;
  }
  .mc-btn-comentar {
    width: 100%;
  }

  /* Drawer: garantizar scroll para que el footer sea siempre accesible */
  #drawer {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ================================================================
   BOTÓN ADMIN — header derecha, solo visible para admins
   ================================================================ */
#btn-admin {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s;
  white-space: nowrap;
}
#btn-admin:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ================================================================
   PANEL ADMIN — modal de administración
   ================================================================ */
.modal-admin-content {
  max-width: 500px;
  width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0;
}

.admin-header-section {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 1.25rem 1.1rem;
  background: linear-gradient(135deg, rgba(15,40,71,0.75) 0%, rgba(26,58,92,0.75) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px 14px 0 0;
}
.admin-header-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.admin-titulo { font-size: 1.1rem; font-weight: 800; color: white; margin: 0 0 0.1rem; }
.admin-subtitulo { font-size: 0.78rem; color: #90a4ae; margin: 0; text-transform: uppercase; letter-spacing: 0.8px; }

.admin-acciones {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.admin-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.admin-btn:hover:not(:disabled) { background: rgba(255,255,255,0.13); }
.admin-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.admin-lista {
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.admin-lista.hidden { display: none; }

.admin-vacio {
  color: #90a4ae;
  font-size: 0.88rem;
  text-align: center;
  padding: 1rem 0;
  margin: 0;
}

.admin-reporte-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
.admin-rep-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.admin-rep-categoria {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64b5f6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-rep-fecha { font-size: 0.75rem; color: #78909c; }
.admin-rep-autor { font-size: 0.8rem; color: #b0bec5; }
.admin-rep-desc { font-size: 0.82rem; color: #cfd8dc; margin: 0.15rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-btn-eliminar {
  background: rgba(229,57,53,0.15);
  border: 1px solid rgba(229,57,53,0.3);
  border-radius: 8px;
  color: #ef9a9a;
  font-size: 1rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.admin-btn-eliminar:hover:not(:disabled) { background: rgba(229,57,53,0.3); }
.admin-btn-eliminar:disabled { opacity: 0.4; cursor: not-allowed; }

/* ================================================================
   NUEVOS ESTILOS — Tareas 3, 4, 7, 8, 9
   ================================================================ */

/* ---- Tarea 8: estados activo para 4 reacciones ---- */
.reaccion-pill-btn#btn-wow.activo {
  color: #ffd54f;
  background: rgba(255, 213, 79, 0.18);
}
.reaccion-pill-btn#btn-lament.activo {
  color: #f48fb1;
  background: rgba(244, 143, 177, 0.18);
}

/* ---- Tarea 8: animación de pulso al reaccionar ---- */
@keyframes reaccionPulse {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.reaccion-pulse {
  animation: reaccionPulse 0.28s ease;
}

/* ---- Tarea 7: dropdown menú del reporte ---- */
.menu-reporte-dropdown {
  position: fixed;
  z-index: var(--z-top);
  background: rgba(10, 22, 48, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  min-width: 190px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.15s ease;
}
.menu-reporte-dropdown.hidden {
  display: none !important;
}
.menu-reporte-item {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  white-space: nowrap;
}
.menu-reporte-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
.menu-reporte-item.activo {
  color: #90caf9;
}
.menu-item-danger {
  color: #ef9a9a !important;
}
.menu-item-danger:hover {
  background: rgba(239, 83, 80, 0.12) !important;
}
.menu-reporte-item.ya-denunciado {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
/* Contenedor relativo para el dropdown (ya lo tiene .detalle-izquierda con overflow-y:auto) */
.detalle-izquierda {
  position: relative;
}

/* ---- Tarea 3: botones editar/borrar en comentarios ---- */
.coment-btn-autor {
  margin-left: auto;
  border-color: transparent;
  font-size: 0.8rem;
  padding: 0.15rem 0.4rem;
  opacity: 0.5;
}
.coment-btn-autor:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}
.coment-btn-delete:hover {
  background: rgba(239, 83, 80, 0.12) !important;
  border-color: rgba(239, 83, 80, 0.3) !important;
  color: #ef9a9a !important;
}
.coment-edit-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 0.87rem;
  line-height: 1.5;
  padding: 0.5rem 0.65rem;
  resize: vertical;
  min-height: 60px;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.coment-edit-textarea:focus {
  border-color: rgba(33, 150, 243, 0.55);
}
.coment-edit-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-top: 0.3rem;
}
.coment-edit-cancel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: background 0.13s;
}
.coment-edit-cancel:hover { background: rgba(255,255,255,0.13); color: white; }
.coment-edit-save {
  background: #1565c0;
  border: none;
  border-radius: 7px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: background 0.13s;
}
.coment-edit-save:hover { background: #1976d2; }

/* ---- Tarea 4: respuestas a comentarios ---- */
.coment-btn-responder {
  font-size: 0.76rem;
  padding: 0.12rem 0.5rem;
  opacity: 0.6;
  border-color: transparent;
}
.coment-btn-responder:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}
.coment-respuestas {
  margin-top: 0.4rem;
  margin-left: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.coment-respuesta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 8px;
}
.coment-ver-mas-respuestas {
  background: none;
  border: none;
  color: rgba(100, 160, 255, 0.7);
  font-size: 0.75rem;
  padding: 0.15rem 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.13s;
}
.coment-ver-mas-respuestas:hover { color: #90caf9; }
.coment-reply-input-area {
  display: flex;
  gap: 0.4rem;
  margin: 0.4rem 0 0.2rem;
  margin-left: 1.5rem;
}
.coment-reply-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: white;
  font-size: 0.84rem;
  padding: 0.4rem 0.65rem;
  outline: none;
  transition: border-color 0.15s;
}
.coment-reply-input:focus { border-color: rgba(33, 150, 243, 0.55); }
.coment-reply-input::placeholder { color: rgba(255,255,255,0.28); }
.coment-reply-submit {
  background: #1565c0;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.13s;
}
.coment-reply-submit:hover { background: #1976d2; }

/* ---- Tarea 9: modal compartir — z-index por encima del modal de detalle ---- */
#modal-compartir {
  z-index: calc(var(--z-overlay) + 2);
}
.modal-compartir-content {
  max-width: 380px;
  width: 92%;
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: left;
  position: relative;
}
.compartir-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.4rem;
}
.compartir-texto {
  font-size: 0.82rem;
  color: #90a4ae;
  margin: 0 0 1rem;
  line-height: 1.5;
  word-break: break-word;
}
.compartir-opciones {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.compartir-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: filter 0.15s, transform 0.1s;
  color: white;
}
.compartir-btn:active { transform: scale(0.98); }
.compartir-whatsapp  { background: #25d366; }
.compartir-facebook  { background: #1877f2; }
.compartir-telegram  { background: #229ed9; }
.compartir-twitter   { background: #1a1a2e; border: 1px solid rgba(255,255,255,0.15); }
.compartir-copiar    { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); }
.compartir-btn:hover { filter: brightness(1.12); }

/* ========== MODAL CATEGORÍA (paso 1 del nuevo reporte) ========== */

#modal-categoria {
  z-index: calc(var(--z-panel) + 100);
}

.modal-categoria-content {
  /* background, backdrop-filter, border-radius, overflow, box-shadow → .aero-surface */
  max-width: 380px;
  width: 92%;
  padding: 0;
  text-align: left;
}

.modal-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 0.6rem;
  background: linear-gradient(135deg, rgba(15, 40, 71, 0.75) 0%, rgba(26, 58, 92, 0.75) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
}

.modal-cat-titulo {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.2px;
}

.modal-cat-subtitulo {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0.65rem 1.25rem 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Grilla siempre 2x2 dentro del modal */
.modal-cat-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  margin: 0.5rem 1.25rem 0;
}

.btn-continuar-cat {
  display: block;
  width: calc(100% - 2.5rem);
  margin: 0.85rem 1.25rem 1.25rem;
  padding: 0.7rem 1rem;
  background: rgba(59, 130, 246, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  text-align: center;
  transition: background 0.15s, opacity 0.15s;
}

.btn-continuar-cat:hover:not(:disabled) {
  background: rgba(59, 130, 246, 1);
}

.btn-continuar-cat:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ========== GPS LOADING (indicador en panel paso 2) ========== */

.gps-cargando {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #90caf9;
  background: rgba(33, 150, 243, 0.1);
  border: 1px solid rgba(33, 150, 243, 0.25);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  animation: gps-pulse 1.4s ease-in-out infinite;
}

@keyframes gps-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* Tip de ruta debajo del campo de ubicación */
.ubicacion-tip {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 0.6rem;
  line-height: 1.4;
}
