
/* ==========================================================
   SIRETUR – CSS PRINCIPAL
   ========================================================== */


/* ==========================================================
   2. FUENTES
   ========================================================== */

/* alegreya-sans */
@font-face {
  font-display: swap;
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 400;
  src: url('/static/fonts/alegreya-sans-v26-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Alegreya Sans';
  font-style: italic;
  font-weight: 400;
  src: url('/static/fonts/alegreya-sans-v26-latin-italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 500;
  src: url('/static/fonts/alegreya-sans-v26-latin-500.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Alegreya Sans';
  font-style: italic;
  font-weight: 500;
  src: url('/static/fonts/alegreya-sans-v26-latin-500italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 700;
  src: url('/static/fonts/alegreya-sans-v26-latin-700.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Alegreya Sans';
  font-style: italic;
  font-weight: 700;
  src: url('/static/fonts/alegreya-sans-v26-latin-700italic.woff2') format('woff2');
}


/* ==========================================================
   3. ESTILOS BASE
   ========================================================== */

body {
  font-family:
    'Alegreya Sans',
    'Segoe UI',
    system-ui,
    -apple-system,
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 12pt;
  background-color: rgb(245, 245, 245);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  color: var(--color-texto);
}


/* ==========================================================
   4. NAVBAR
   ========================================================== */

.navbar {
  min-height: 90px;
  display: flex;
  align-items: center;
  z-index: 1048;
}

.navbar .container-fluid {
  display: flex;
  align-items: center;   /* asegura centrado interno */
}

.navbar-bg-custom {
  background-color: rgb(var(--primary-rgb));
}

/* Logo principal */
.navbar-logo {
  display: block;
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .navbar-logo {
    height: 36px;
  }
}

/* ==========================================================
   NAVBAR – DROPDOWN ITEMS (PRIMARY SOFT)
   ========================================================== */

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: var(--primary-soft);
  color: #fff;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background-color: var(--primary-soft);
  color: #fff;
}


/* ==========================================================
   5. CONTENIDO PRINCIPAL
   ========================================================== */

main.main-content {
  padding-top: 90px;
  min-height: 100dvh;
  background-color: #fff;
  overflow-x: hidden;
}


/* ==========================================================
   6. BOTONES
   ========================================================== */

.btn-soft {
  background-color: rgba(var(--primary-rgb), 0.25);
  color: rgb(var(--primary-rgb)); /* FIX: sin comillas */
  border: 1px solid rgba(var(--primary-rgb), 0.45);
}

.btn-soft:hover {
  background-color: rgba(var(--primary-rgb), 0.45);
  color: rgb(var(--primary-rgb));
}

.btn-soft-outline {
  background-color: transparent;
  color: rgb(var(--primary-rgb));
  border: 1px solid rgba(var(--primary-rgb), 0.45);
}

.btn-soft-outline:hover {
  background-color: rgba(var(--primary-rgb), 0.15);
  color: rgb(var(--primary-rgb));
}


/* ==========================================================
   7. BREAKPOINTS PERSONALIZADOS
   ========================================================== */

@media (min-width: var(--breakpoint-compact)) {
  /* aquí irán reglas compact / desktop */
}




/* ==========================================================
   BASE – COLORES UTILITARIOS
   ========================================================== */

.btn-terciary:hover {
  background-color: rgba(var(--terciary-rgb), 0.90); /* más oscuro */
  color: #fff; /* texto negro */
}


.btn-terciary {
  background-color: rgba(var(--terciary-rgb), 0.60);
  color: #fff;
}

.btn-terciary:hover {
  background-color: rgba(var(--terciary-rgb), 0.90); /* más oscuro */
  color: #fff; /* texto negro */
}

.link-highlight {
  color: rgba(var(--terciary-rgb), 1);
  text-decoration: none;
  font-weight: 600;
  transition: 
    background-color 0.2s ease,
    font-weight 0.2s ease;
}

.link-highlight:hover {
  background-color: rgba(var(--terciary-rgb), 0.25);
  font-weight: 700;
}


/* ==========================================================
   BASE – CONTENEDORES
   ========================================================== */


.content-block {
  width: 100%;
  margin: 0 auto 2rem auto;
  padding: 1rem;
  border-radius: 1rem;
  background-color: rgb(var(--secondary-rgb), 0.6);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
}

/* >= md */
@media (min-width: 768px) {
  .content-block {
    width: min(60vw, 100%);
    max-width: 100%;
  }
}

.content-block-white {
  width: 100%;
  margin: 0 auto 2rem auto;
  padding: 1rem;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
}





/* ==========================================================
   BASE – BLOQUES DE CONTENIDO
   ========================================================== */

/* Bloque principal */
.custom-block {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background-color: rgba(var(--secondary-rgb), 0.6);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Secciones internas del bloque */
.custom-block-section {
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.custom-block-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}


/* ==========================================================
   BASE – NORMALIZACIÓN DE FORMULARIOS
   ========================================================== */

.custom-block label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.custom-block select,
.custom-block input {
  width: 100%;
  font-size: 0.9rem;
}




/* ==========================================================
   SIMPLE SEARCH - NAVBAR MINIMAL
   ========================================================== */

.simple-search {
    display: flex;
    align-items: center;
    margin: 0;
}

.simple-search-wrapper {
    display: flex;
    align-items: center;

    height: 34px;
    min-width: 240px;

    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);

    padding: 0 0.4rem 0 0.9rem;
    background: transparent;
    transition: border 0.2s ease;
}

.simple-search-wrapper:focus-within {
    border: 1.5px solid #ffffff;
}

/* Input */
.simple-search-input {
    flex: 1;
    height: 100%;

    border: none;
    background: transparent;

    font-size: 0.85rem;
    color: #ffffff;

    outline: none;
}

/* Placeholder blanco suave */
.simple-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Botón */
.simple-search-btn {
    height: 30px;
    width: 30px;

    border: none;
    background: transparent;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
}

.simple-search-icon {
    font-size: 0.95rem;
}


/* ==========================================================
   MAP SEARCH (CLIENT SIDE - FUSE)
   ========================================================== */

.map-search {
    display: flex;
    align-items: center;
}

/* Wrapper */
.map-search-wrapper {
    display: flex;
    align-items: center;

    height: 36px;
    min-width: 260px;

    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,0.6);

    padding: 0 2.2rem 0 0.9rem; /* espacio derecha para íconos */
    background: transparent;

    position: relative;
    transition: border 0.2s ease;
}

.map-search-wrapper:focus-within {
    border: 1.5px solid #ffffff;
}

/* Input */
.map-search-input {
    flex: 1;
    height: 100%;

    border: none;
    background: transparent;

    font-size: 0.85rem;
    color: #ffffff;

    outline: none;
}

.map-search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Icono lupa fijo */
.map-search-icon {
    position: absolute;
    right: 0.8rem;
    color: #ffffff;
    font-size: 0.95rem;
    pointer-events: none; /* no interfiere */
}

/* Botón limpiar */
.map-search-btn {
    position: absolute;
    right: 2rem;

    border: none;
    background: transparent;
    color: #ffffff;

    font-size: 0.8rem;
    cursor: pointer;
    display: none; /* se activa solo si hay texto */
}

/* Mostrar X cuando hay texto */
.map-search-input:not(:placeholder-shown) + .map-search-btn {
    display: block;
}


/* ==========================================================
   FILTER BLOCK – Contenedor limpio
   ========================================================== */

.filter-block {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
}


/* ==========================================================
   Secciones internas del filtro
   ========================================================== */

.filter-block-section {
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: rgba(var(--secondary-rgb), 0.6); /* gris claro Bootstrap */
  margin-bottom: 1rem;
}

.filter-block-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #534957;
}


/* ==========================================================
   Normalización de formularios dentro del filtro
   ========================================================== */

.filter-block label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.filter-block select,
.filter-block input {
  width: 100%;
  font-size: 0.9rem;
}


/* ==========================================================
   BASE – TARJETAS
   ========================================================== */

.custom-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.custom-card-header h6 {
  margin: 0;
  font-weight: 600;
}

.custom-card-body {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #444;
}

.custom-card-status {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.custom-card-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}


/* ==========================================================
   BASE – MENSAJES FLOTANTES
   ========================================================== */
/* ⚠️ Z-INDEX CRÍTICO: convive con modales y mapas */

.floating-messages {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  max-width: 600px;
  width: calc(100% - 2rem);
}

.floating-messages .alert {
  margin-bottom: 0.5rem;
}



/* ==========================================================
   EDITOR LIST – CONTROLES DE RANGO
   ========================================================== */

.range-group {
  display: flex;
  gap: 0.5rem;
}

.range-group input {
  flex: 1;
}


/* ==========================================================
   EDITOR LIST – BADGES DE ACCIÓN
   ========================================================== */

.badge-action {
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding: 0.35em 0.6em;
}

.badge-action:hover {
  opacity: 0.85;
}


/* ==========================================================
   EDITOR LIST – BADGES ESPECÍFICOS
   ========================================================== */

.badge-primary-soft {
  background-color: var(--primary-soft);
  color: #fff;
}

.badge-edit {
  background-color: rgba(var(--terciary-rgb), 0.75);
  color: #fff;
}

.badge-edit:hover {
  background-color: rgba(var(--terciary-rgb), 0.9);
  color: #fff;
}

.badge-terciary {
  background-color: rgba(var(--terciary-rgb), 0.75);
  color: #fff;
}



/* ==========================================================
   DETAIL – GENERAL
   ========================================================== */
   
.profile-picture {
  /* border: 3px solid #738473; */
  background-color: var(--primary-soft);
}


.custom-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
  text-align: center;
}

.custom-subtitle {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 0;
  line-height: 1.2;
}

.compact-list {
  line-height: 1;
}

.compact-list li {
  padding: 0;
}

.category-header {
  display: flex;
  align-items: center;   /* alinea arriba */
  gap: 0.75rem;              /* espacio entre imagen y texto */
  margin-bottom: .75rem;
  
}

.category-icon img {
  height: 32px;
  object-fit: contain;
  display: block;
}

.category-title {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
}

.section-header {
  display: flex;
  align-items: center;   /* alinea arriba */
  gap: 0.75rem;              /* espacio entre imagen y texto */
  margin-bottom: .75rem;
  
}

.section-icon img {
  height: 32px;
  object-fit: contain;
  display: block;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
}




.symbology-list {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.symbology-item {
  display: flex;
  align-items: center;   /* permite que el texto envuelva correctamente */
  gap: .15rem;
}

.symbology-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;  /* evita que el icono se comprima */
  cursor: pointer;

}

.symbology-label {
  font-size: 0.95rem;
  line-height: 1.25;
  cursor: pointer;
}

/* ==========================================================
   DETAIL – ICONOS GENERALES
   ========================================================== */

.icon-size {
  height: 32px;
}

.media-icon {
  height: 20px;
}

/* ==========================================================
   DETAIL – TEXTO / TRUNCADO MULTILÍNEA
   ========================================================== */

.text-truncate-multiline {
  display: -webkit-box;
  -webkit-line-clamp: 3;        /* número de líneas visibles */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Estado expandido */
.text-truncate-multiline.text-expanded {
  -webkit-line-clamp: unset;
}



/* ==========================================================
   DETAIL – SEGMENTOS
   ========================================================== */

.segments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}

.segment-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segment-item img {
  height: 25px;
  flex-shrink: 0;
  opacity: 0.85;
}


/* ==========================================================
   DETAIL – DISTINCIONES
   ========================================================== */

.distinctions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  margin-bottom: 1rem; /* aire antes del bloque siguiente */
}

.distinction-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.distinction-item img {
  height: 20px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.9;
}


/* ==========================================================
   DETAIL – RATINGS (Google, Tripadvisor, etc.)
   ========================================================== */

.rating-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rating-label {
 font-weight: 500;
}


/* separa bloques de rating */
.rating-item + .rating-item {
  margin-top: 0.75rem;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rating-value {
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1;
  margin-right: 2px;
  color: #333;
}

.rating-icons {
  display: flex;
  gap: 2px;
}


/* ==========================================================
   DETAIL – TABLA DE INFORMACIÓN
   ========================================================== */

.info-table {
  border-collapse: collapse;
  width: auto;
  max-width: 100%; /* evita desbordes */
}

.info-table td {
  padding: 4px 16px 4px 0;
  vertical-align: baseline;
}

.info-label {
  font-weight: 500;
  white-space: nowrap;
}

.info-value {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Variante que permite salto de línea */
.info-value.wrap {
  white-space: normal;
  max-width: 32rem; /* ancho legible */
}

.info-separator td {
  padding: 6px 0;
}


/* ==========================================================
   DETAIL – LISTAS DE INFORMACIÓN
   ========================================================== */

.info-list {
  margin: 0;
  padding-left: 1rem;
}

.info-list li {
  margin: 0;
  line-height: 1.4;
}


/* ==========================================================
   DETAIL – CARRUSEL / GALERÍA
   ========================================================== */

/* ⚠️ Depende de Bootstrap modal */
#global-gallery-modal .modal-dialog {
  max-width: 40vw;
}

/* Relación 4:3 para imágenes */
.aspect-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: black;
  overflow: hidden;
}

.aspect-wrapper img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}


/* ==========================================================
   DETAIL – LISTAS EN COLUMNAS RESPONSIVAS
   ========================================================== */

.list-columns-responsive {
  column-count: 1;
  column-gap: 1.5rem;
  list-style-type: disc;
  padding-left: 1.5rem;
}

.list-columns-responsive li {
  break-inside: avoid;
  margin-bottom: 0;
}

@media (min-width: 576px) {
  .list-columns-responsive {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .list-columns-responsive {
    column-count: 3;
  }
}



/* ==========================================================
   ACCORDIONS (NO MAPA)
   ========================================================== */

.accordion-button.btn-soft.collapsed {
  background-color: rgba(var(--primary-rgb), 0.25);
  color: rgb(var(--primary-rgb));
  border: 1px solid rgba(var(--primary-rgb), 0.45);
}


.accordion-button.btn-soft:not(.collapsed) {
  background-color: rgba(var(--primary-rgb), 0.35);
  color: rgb(var(--primary-rgb));
  border: 1px solid rgba(var(--primary-rgb), 0.6);
  box-shadow: none; /* opcional: quita glow azul */
}






/* ==========================================================
   CARD GRID
   ========================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Card base */
.card-resource {
  display: flex;
  flex-direction: column;

  border: 1px solid #ccc;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;

  transition: transform 0.2s ease, box-shadow 0.2s ease;

  min-height: 420px; /* altura visual uniforme */
}

.card-resource:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}


/* ==========================================================
   CARD GRID - IMAGE WRAPPER (proporción catálogo)
   ========================================================== */

.card-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

/* Perfil (imagen completa) */
.image-profile {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-profile img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
}

/* Galería (recorte elegante) */
.image-gallery {
  width: 100%;
  height: 100%;
}

.image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Logo placeholder */
.image-logo {
  width: 100%;
  height: 100%;
  background-color: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-logo img {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain;
  opacity: 0.9;
}




/* ==========================================================
   RESOURCES CARD GRID
   ========================================================== */

.resources-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1; 
  padding: 1rem;
}

/* Título (máx 2 líneas) */
.resources-card .card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ubicación */
.resources-card .card-location {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.5rem;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Descripción (máx 2 líneas) */
.resources-card .card-text {
  font-size: 0.85rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================
   RESOURCES CARD GRID - ACTIONS
   ========================================================== */

.resources-card .card-actions-primary {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.resources-card .card-actions-secondary {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  min-height: 28px;
}

/* ==========================================================
   RESOURCES CARD GRID - UTILITIES
   ========================================================== */  

.resources-card .no-border {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0.25rem;
  line-height: 1;
}

.resources-card .no-border:hover {
  background-color: rgba(var(--primary-rgb), 0.1);
  border-radius: 6px;
}


/* ==========================================================
   STATS
   ========================================================== */  



/* Header solo del modal de estadísticas */
.stats-modal-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Centramos visualmente el total */
.stats-modal-header .stats-total {
    text-align: center;
}

/* Botón cerrar a la derecha sin afectar centrado */
.stats-modal-header .btn-close {
    position: absolute;
    right: 1rem;
}


/* CARD BASE */
.stats-summary-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 0.3rem 0.5rem;
    background: #fff;

    min-height: 52px;   /* altura suficiente para 2 líneas */
    
    display: flex;
    align-items: center;
    justify-content: center;
}
/* CONTENIDO INLINE */
.stats-summary-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* TÍTULO */
.stats-summary-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1;   /* clave */
}

/* NÚMERO */
.stats-summary-number {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

/* ---------------- COLORES ---------------- */

/* TOTAL */
.stats-summary-card.total {
    border-color: #658ac2;
    /* background: rgba(101, 138, 194, 0.12); */
}
.stats-summary-card.total .stats-summary-title,
.stats-summary-card.total .stats-summary-number {
    color: #658ac2;
}

/* ACTIVOS */
.stats-summary-card.active {
    border-color: #198754;
    /* background: rgba(25, 135, 84, 0.12); */
}
.stats-summary-card.active .stats-summary-title,
.stats-summary-card.active .stats-summary-number {
    color: #198754;
}

/* INACTIVOS */
.stats-summary-card.inactive {
    border-color: #dc3545;
    /* background: rgba(220, 53, 69, 0.12); */
}
.stats-summary-card.inactive .stats-summary-title,
.stats-summary-card.inactive .stats-summary-number {
    color: #dc3545;
}

/* VALIDADOS */
.stats-summary-card.published {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.12);
}
.stats-summary-card.published .stats-summary-title,
.stats-summary-card.published .stats-summary-number {
    color: #198754;
}

/* SIN VALIDAR */
.stats-summary-card.pending {
    border-color: #e2aa00;
    background: rgba(255, 193, 7, 0.15);
}
.stats-summary-card.pending .stats-summary-title,
.stats-summary-card.pending .stats-summary-number {
    color: #e2aa00;
}

/* BORRADOR */
.stats-summary-card.draft {
    border-color: #6c757d;
    background: rgba(108, 117, 125, 0.12);
}
.stats-summary-card.draft .stats-summary-title,
.stats-summary-card.draft .stats-summary-number {
    color: #6c757d;
}

/* RECHAZADOS */
.stats-summary-card.rejected {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.12);
}
.stats-summary-card.rejected .stats-summary-title,
.stats-summary-card.rejected .stats-summary-number {
    color: #dc3545;
}












/* .stats-total { */
    /* margin-bottom: 1.5rem; */
/* } */

/* contenedor inline */
.stats-total-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem; /* separación entre texto y número */
}

/* título */
.stats-total-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #343a40;
    margin: 0;
}

/* número */
.stats-total-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #343a40;
    margin: 0;
    line-height: 1;
}


  /* CONTENEDOR TABS */
.stats-tabs .nav-link {
    font-weight: 500;
    color: #6c757d;
}

.stats-tabs .nav-link.active {
    color: #343a40;
    border-bottom: 2px solid #343a40;
}

/* CARD BASE */
.stats-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px;
    background: #ffffff;
}

/* TÍTULO (más claro) */
.stats-card-title {
    /* font-size: 0.85rem; */
    color: #6c757d; /* gris claro */
    margin-bottom: 8px;
    min-height: 32px;
}

/* ICONO + NÚMERO */
.stats-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ICONO */
.stats-card-icon {
    height: 46px;
    object-fit: contain;
}

/* NÚMERO (más grande y más oscuro) */
.stats-card-number {
    font-size: 1.6rem;
    font-weight: 600;
    color: #343a40; /* gris oscuro */
}



/* BASE */
.stats-action-btn {
    border: 2px solid #dee2e6;
    background: #fff;
    border-radius: 10px;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;

    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    transition: all 0.2s ease;
    cursor: pointer;
}

/* HOVER SUAVE */
.stats-action-btn:hover {
    transform: translateY(-1px);
}

/* LABEL */
.stats-action-label {
    line-height: 1;
}

/* COUNT */
.stats-action-count {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ---- TRASH ---- */
.stats-action-btn.trash {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.stats-action-btn.trash:hover {
    background: rgba(220, 53, 69, 0.15);
}

/* ---- STATS ---- */
.stats-action-btn.stats {
    border-color: #658ac2;
    background: rgba(101, 138, 194, 0.08);
    color: #658ac2;
}

.stats-action-btn.stats:hover {
    background: rgba(101, 138, 194, 0.15);
}


/* ---- STATS ---- */
.stats-action-btn.download {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.stats-action-btn.dow:hover {
    background: rgba(101, 138, 194, 0.15);
}


.stats-table-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

.stats-table {
    width: auto !important;
}

.stats-table th,
.stats-table td {
    padding: 0.35rem 0.6rem;
}

.stats-table thead th {
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.stats-action-btn:focus {
    outline: none;
    box-shadow: none;
}



/* ==========================================================
   MAP STATS BUTTONS (clean version)
   ========================================================== */

/* BASE NEUTRA */
.map-stats-btn {
    border-radius: 8px;

    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 500;

    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    transition: all 0.15s ease;
    cursor: pointer;
}

/* Icono */
.map-stats-icon {
    height: 16px;
    width: 16px;
    object-fit: contain;
}

/* Contador */
.map-stats-count {
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1;
}

/* Contenedor */
.map-stats-actions {
    padding-right: 0.75rem;
    gap: 0.5rem;
}


/* ==========================================================
   VARIANTE: STATS (usa --primary-rgb)
   ========================================================== */

.map-stats-btn.stats {
    border: 2px solid rgba(var(--primary-rgb), 0.7);
    background-color: rgba(var(--primary-rgb), 0.5);
    color: rgb(var(--primary-rgb));
}


.map-stats-btn.stats:hover {
    background-color: rgba(var(--primary-rgb), 0.22);
}

/* Estado activo para grid/list */
.map-stats-btn.active-view {
    background-color: rgba(var(--primary-rgb), 0.7);
    border: 2px solid rgba(var(--primary-rgb), 1);
    color: rgba(var(--primary-rgb), 1);
}

/* ==========================================================
   FOCUS
   ========================================================== */

.map-stats-btn:focus {
    outline: none;
    box-shadow: none;
}



/* ==========================================================
   CARD PAGINATION
   ========================================================== */

.card-pagination {
    display: flex;
    justify-content: center;
}

.card-pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Base tipo card */
.card-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;
    padding: 0 0.9rem;

    border-radius: 10px;

    border: 1.6px solid rgba(var(--primary-rgb), 0.35);
    background-color: rgba(var(--primary-rgb), 0.08);
    color: rgba(var(--primary-rgb), 1);

    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;

    transition: all 0.15s ease;
}

/* Hover */
.card-page:hover {
    background-color: rgba(var(--primary-rgb), 0.18);
    transform: translateY(-1px);
}

/* Activo */
.card-page.active {
    border: 2px solid rgba(var(--primary-rgb), 1);
    background-color: rgba(var(--primary-rgb), 0.28);
    font-weight: 600;
    cursor: default;
}

/* Evitar subrayado */
.card-page:focus,
.card-page:hover {
    text-decoration: none;
}


/* ========================= */
/*  POPUP - SE APLICAN A TODOS LOS MAPAS  */
/* ========================= */


/* Quitar espacio interior por defecto de Leaflet */
.leaflet-popup.siretur-popup .leaflet-popup-content {
    margin: 0;
}

.leaflet-popup.siretur-popup .leaflet-popup-content-wrapper {
    padding: 0;
}

.leaflet-popup.siretur-popup .leaflet-popup-tip {
    background-color: var(--primary-soft);
}


/* ========================= */
/*  CONTENIDO INTERNO POPUP  */
/* ========================= */

.custom-popup {
    padding: 8px 8px;
    font-size: 0.75rem;
    color: #4b5563; /* texto gris oscuro */
    line-height: 1.35;
    font-family: system-ui, -apple-system, sans-serif;

    /* Fondo y borde basados en --primary */
    background-color: rgba(var(--primary-rgb), 0.1);
    border: 3px solid var(--primary-soft);
    border-radius: 8px;

    cursor: pointer;
}

/* Título */
.custom-popup .popup-title {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: #374151; /* un gris un poco más fuerte para el título */
}

/* Hint de acción */
.custom-popup .popup-hint {
    font-size: 0.7rem;
    opacity: 0.8;
}

.custom-popup hr {
  margin-top: 4px;
  margin-bottom: 4px;
}


/* Feedback sutil al pasar el mouse */
.custom-popup:hover {
    background-color: rgba(var(--primary-rgb), 0.10);
}


/* ========================= */
/*  MODAL/CAROUSEL --- GALERIA  */
/* ========================= */


#carouselModal {
    z-index: 2000;
}

#carouselModal + .modal-backdrop {
    z-index: 1999;
}


.gallery-row {
    display: flex;
    gap: 6px;
    justify-content: center;   /* centra horizontalmente */
    align-items: center;   
    overflow: hidden;   /* importante */
}

.gallery-item {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}


/* ========================= */
/*  ACERCA DE - ABOUT  */
/* ========================= */



.logo-circle {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  /* border: 1px solid #e5e5e5; */
  /* padding: 6px;      */
  /* background: #ffffff; */
}

.logo-about {
  height: 80px;
}

.about-text {
    font-size: 1.1rem;
    color: #3f3f3f;
    line-height: 1.2;
    font-weight: 400;
}

.about-link {
    font-size: 1.2rem;
    font-weight: 400;
    color: #e9e9e9;
}
