/* Aquí luego welcomeondremos estilos propios si hace falta.
   Por ahora Tailwind hace casi todo el trabajo. */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================
   ESTILOS PARA IMPRESIÓN / PDF
   ============================ */
@media print {

  /* Fondo blanco limpio */
  body {
    background: #ffffff !important;
  }

  /* Ocultar navbar y footer del layout */
  header,
  footer {
    display: none !important;
  }

  /* Ocultar botones del reporte (volver y descargar) */
  .reporte button {
    display: none !important;
  }

  /* Usar más ancho y menos padding para que quepa en una hoja */
  .reporte {
    max-width: 100% !important;
    padding: 5mm 8mm !important;  /* antes era 0 15mm */
  }

  /* Quitar sombras y redondeado fuerte */
  .reporte .bg-white {
    box-shadow: none !important;
    border-radius: 0 !important;
    border: 1px solid #dddddd !important;
    margin-bottom: 4mm !important; /* menos espacio entre bloques */
  }

  /* Compactar un poquito los títulos y textos */
  .reporte h1 {
    font-size: 22px !important;
    margin-bottom: 6px !important;
  }

  .reporte h2 {
    font-size: 16px !important;
    margin-bottom: 4px !important;
  }

  .reporte p,
  .reporte li,
  .reporte dt,
  .reporte dd {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  /* Obj 5 — Evitar cortes de página dentro de secciones */
  .reporte section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Obj 7 — Eliminar todas las sombras en print */
  .reporte * {
    box-shadow: none !important;
  }

  /* Obj 7 — Preservar colores de fondo (gradientes, tarjetas oscuras) */
  .reporte,
  .reporte * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ============================
   CARRUSEL DE PRODUCTOS
   ============================ */

.productos-carousel {
  position: relative;
  margin: 0 auto;
  max-width: 960px;
  background: radial-gradient(circle at top left, #e0f7f7 0, #ffffff 40%, #f2faf9 100%);
  border-radius: 24px;
  overflow: hidden;
}

/* Lista de items */
.productos-carousel .list {
  display: flex;
}

/* Cada item ocupa toda el área visible */
.productos-carousel .item {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2rem;
  padding: 2.5rem 3rem;
  align-items: center;
}

/* Imagen */
.productos-carousel .image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.productos-carousel .image-wrapper img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
}

/* Introducción (vista corta) */
.productos-carousel .introduce {
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.productos-carousel .introduce .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #0f766e;
  font-weight: 600;
}

.productos-carousel .introduce .topic {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.4rem;
}

.productos-carousel .introduce .excerpt {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.productos-carousel .introduce .seeMore {
  margin-top: 1.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #0d9488;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.productos-carousel .introduce .seeMore:hover {
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.4);
}

/* Detalle (vista larga) */
.productos-carousel .detail {
  position: relative;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.productos-carousel .detail-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
}

.productos-carousel .detail-text {
  font-size: 0.95rem;
  color: #4b5563;
}

/* Specs */
.productos-carousel .specifications {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.productos-carousel .specifications div {
  background: #ecfeff;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
}

.productos-carousel .specifications p:first-child {
  font-weight: 600;
  color: #0f766e;
}

.productos-carousel .specifications p:last-child {
  margin-top: 0.1rem;
  color: #334155;
}

/* Botones de acción */
.productos-carousel .checkout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.productos-carousel .checkout .btn-primary,
.productos-carousel .checkout .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.productos-carousel .checkout .btn-primary {
  background: #0d9488;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.35);
}

.productos-carousel .checkout .btn-primary:hover {
  background: #0f766e;
}

.productos-carousel .checkout .btn-ghost {
  border: 1px solid #0d9488;
  color: #0f766e;
  background: #ecfeff;
}

.productos-carousel .checkout .btn-ghost:hover {
  background: #d5f5f6;
}

/* ================================
   BOTONES DEL CARRUSEL DE PRODUCTOS
================================= */

/* Contenedor general */
.arrows-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem 2rem;
  margin-top: -1rem;
}

/* Flechas centradas */
.arrows-center {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex: 1;
}

/* Estilo flechas < y > */
.arrow-btn {
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  font-weight: bold;
  background: #0f172a;
  color: #d1faf5;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  transition: 0.15s ease;
}

.arrow-btn:hover {
  background: #020617;
  transform: translateY(-2px);
}

/* Botón ATRÁS alineado a la derecha */
.arrow-back {
  display: flex;
  justify-content: flex-end;
  min-width: 160px;
}

.back-btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: #0d9488;
  color: white;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.3);
  transition: 0.15s ease;
}

.back-btn:hover {
  background: #0f766e;
  transform: translateY(-2px);
}

.productos-carousel .back-btn:hover {
  background: #0f766e;
}

/* Mostrar detalle del item activo (el primero de la lista) */
.productos-carousel.showDetail .item:first-child .introduce {
  display: none;
}

.productos-carousel.showDetail .item:first-child .detail {
  display: flex;
  animation: fadeUp 0.8s ease;
}

/* Animaciones suaves para next/prev */
.productos-carousel.next .item:first-child,
.productos-carousel.prev .item:first-child {
  animation: slideIn 0.8s ease;
}

/* Responsivo */
@media (max-width: 900px) {
  .productos-carousel .item {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.5rem 3.5rem;
  }
  .productos-carousel .specifications {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(35px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.catalog-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #111827; /* gris muy oscuro */
  margin: 0 0 0.25rem 0;
}

.catalog-subtitle {
  font-size: 0.9rem;
  color: #6b7280; /* gris medio */
  margin: 0;
}

.catalog-view-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #4b5563;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.btn-view:hover {
  background-color: #f3f4f6;
}

.btn-view.active {
  background-color: #00baba;   /* turquesa Altaltium */
  border-color: #00cccc;
  color: #ffffff;
}

/* Layout dividido mapa + listado */
.catalog-split {
  display: flex;
  gap: 1rem;
  height: calc(100vh - 200px); /* ajusta si hace falta */
}

.catalog-split-map {
  flex: 1.05;
  min-width: 0;
}

.catalog-mixed-map {
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
}

.catalog-split-list {
  flex: 0.95;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.catalog-mixed-summary {
  font-size: 0.8rem;
  color: #6b7280;
  padding: 0.25rem 0.25rem 0.5rem 0.25rem;
}

.catalog-mixed-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.25rem;
  padding-bottom: 0.5rem;
}

/* Tarjetas del listado mixto */
.mixed-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}

.mixed-card::before {
  content: "";
  position: absolute;
  inset-y: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #00cccc, #008a8a);
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}
.mixed-card:hover::before,
.mixed-card.active::before {
  opacity: 1;
}


.mixed-card:hover {
  border-color: #00cccc;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.mixed-card.active {
  border-color: #00cccc;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


.mixed-card-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.mixed-card-main {
  flex: 1;
  min-width: 0;
}

.mixed-card-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mixed-card-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00cccc;
  font-weight: 600;
}

.mixed-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.mixed-card-location {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0.25rem 0 0.4rem 0;
}

.mixed-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.mixed-card-tags span {
  font-size: 0.7rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background-color: #f3f4f6;
  color: #4b5563;
}

.mixed-card-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.15rem;
  min-width: 140px;
}

.mixed-card-price-main {
  font-size: 0.95rem;
  font-weight: 700;
  color: #008a8a;
}

.mixed-card-price-secondary {
  font-size: 0.7rem;
  color: #6b7280;
}

.mixed-card-link {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: #00cccc;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

/* Responsive: en móvil se apilan */
@media (max-width: 900px) {
  .catalog-split {
    flex-direction: column;
    height: auto;
  }

  .catalog-mixed-map {
    height: 260px;
  }

  .mixed-card-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .mixed-card-price-block {
    align-items: flex-start;
  }
}
/* Filtros avanzados catálogo */
.catalog-filters {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 0.9rem 1.2rem 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.catalog-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.catalog-filter-group {
  min-width: 0;
  flex: 1;
}

.catalog-filter-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  display: block;
  margin-bottom: 0.25rem;
}

.catalog-filter-range {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.catalog-filter-input-wrapper {
  position: relative;
  flex: 1;
}

.catalog-filter-input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  padding-left: 1.3rem;
  padding-right: 1.1rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 0.78rem;
  color: #111827;
  background-color: #f9fafb;
}

.catalog-filter-input:focus {
  outline: none;
  border-color: #00cccc;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 204, 204, 0.12);
}

.catalog-filter-input-wrapper .prefix,
.catalog-filter-input-wrapper .suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: #9ca3af;
}

.catalog-filter-input-wrapper .prefix {
  left: 0.55rem;
}

.catalog-filter-input-wrapper .suffix {
  right: 0.6rem;
}

.catalog-filter-separator {
  font-size: 0.8rem;
  color: #9ca3af;
}

.catalog-filter-select {
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 0.78rem;
  color: #111827;
  background-color: #f9fafb;
}

.catalog-filter-select:focus {
  outline: none;
  border-color: #00cccc;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 204, 204, 0.12);
}

.catalog-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

/* Botones filtros (reusa tu branding) */
.btn-primary {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  background-color: #008A8A;
  color: #ffffff;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0cc;
}

.btn-outline {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #4b5563;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: #f3f4f6;
}

/* Responsive filtros */
@media (max-width: 900px) {
  .catalog-filters-row {
    flex-direction: column;
  }

  .catalog-filter-actions {
    justify-content: flex-start;
    margin-top: 0.25rem;
  }
}

/* Backdrop modal Más filtros */
.mf-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.mf-backdrop.show {
  display: flex;
}

/* Tarjeta del modal */
.mf-modal {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 1.4rem 1.6rem 1.2rem;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
}

/* Header */
.mf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mf-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.mf-header p {
  margin: 0.2rem 0 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.mf-close-btn {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #9ca3af;
  cursor: pointer;
}

/* Body */
.mf-body {
  margin-bottom: 1rem;
}

.mf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.mf-col-span-2 {
  grid-column: span 2;
}

/* Campos */
.mf-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mf-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

.mf-input,
.mf-select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  color: #111827;
  background-color: #f9fafb;
}

.mf-input:focus,
.mf-select:focus {
  outline: none;
  border-color: #00cccc;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 204, 204, 0.12);
}

/* Footer */
.mf-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.mf-footer-right {
  display: flex;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
  .mf-modal {
    margin: 0 1rem;
    padding: 1.1rem 1.2rem 1rem;
  }

  .mf-grid {
    grid-template-columns: 1fr;
  }

  .mf-col-span-2 {
    grid-column: span 1;
  }

  .mf-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .mf-footer-right {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Barra compacta de filtros (estilo Altaltium / catálogo) */
.cf-compact {
  margin-bottom: 1rem;
}

.cf-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Buscador */
.cf-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background-color: #f9fafb;
}

.cf-search-icon {
  font-size: 0.85rem;
  color: #9ca3af;
}

.cf-search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.82rem;
  background: transparent;
  color: #111827;
}

/* Chips (Etapa, Tipo, Precio, Más filtros) */
.cf-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  color: #111827;
  cursor: pointer;
  white-space: nowrap;
}

.cf-chip-select {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  color: #111827;
  outline: none;
  padding: 0;
  cursor: pointer;
}

.cf-chip-button {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.cf-chip-arrow {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Más filtros */
.cf-more-filters {
  background-color: #00cccc;
  border-color: #00cccc;
  color: #ffffff;
}

.cf-more-icon {
  font-size: 0.8rem;
}

/* Panel de precio */
.cf-price-panel {
  position: absolute;
  top: 110%;
  left: 0;
  z-index: 40;
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 0.6rem 0.75rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
  min-width: 230px;
  display: none;
}

.cf-price-panel.show {
  display: block;
}

.cf-price-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.cf-price-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #f9fafb;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.cf-price-field .prefix {
  font-size: 0.72rem;
  color: #9ca3af;
}

.cf-price-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.8rem;
  background: transparent;
}

.cf-price-separator {
  font-size: 0.75rem;
  color: #9ca3af;
}

.cf-price-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.btn-link-sm {
  border: none;
  background: transparent;
  font-size: 0.75rem;
  color: #6b7280;
  cursor: pointer;
}

.btn-primary-sm {
  border: none;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.25rem 0.8rem;
  background-color: #00cccc;
  color: #ffffff;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .cf-bar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .cf-search {
    flex-basis: 100%;
  }
}
/* Branding Altaltium en navbar */
.brand-name-altaltium {
  font-weight: 700;
  color: black;  /* Altaltium verde oscuro */
}

.brand-tagline-altaltium {
  color: #00cccc;  /* Altaltium verde claro */
  font-weight: 500;
}
/* Tarjetas 3D de alcaldías - Altaltium */
.tilt-card {
  position: relative;
  border-radius: 1.5rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.30);
  transform-style: preserve-3d;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.25s ease-out;
}

/* Glow Altaltium alrededor de la tarjeta */
.tilt-card::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 204, 204, 0.55), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 138, 138, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

/* Se activa cuando el mouse está encima (la clase se añade desde JS) */
.tilt-card.tilt-active::after {
  opacity: 1;
}
.map-legend {
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 5;
  font-family: 'Inter', sans-serif;
  width: 220px;
}

.map-legend h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #005f5f; /* Altaltium deep teal */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legend-scale {
  width: 100%;
}

.gradient {
  height: 18px;
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(
    to right,
    #b2f7f4,  /* barato */
    #00cccc,  /* medio altaltium */
    #007a7a   /* caro */
  );
  border: 1px solid rgba(0,0,0,0.1);
}

.legend-labels {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #444;
}
.view-active {
  background: #01cbcb;
  color: white;
}
.fav-btn.is-fav { border-color: #01cbcb; }


/* Fullscreen tipo Inmuebles24 */
.catalog-map-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.catalog-map {
  width: 100%;
  height: 560px; /* ajusta a tu layout */
}

.map-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  gap: 10px;
}

.btn-map-fullscreen {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.no-scroll {
  overflow: hidden;
}

/* Modo fullscreen overlay */
.catalog-map-wrap.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
  background: #0b1220;
}

.catalog-map-wrap.is-fullscreen .catalog-map {
  height: 100vh !important;
  width: 100vw !important;
}

.catalog-map-wrap.is-fullscreen .map-toolbar {
  top: 18px;
  right: 18px;
}


/* ============================
   SISTEMA DE NOTIFICACIONES
   ============================ */

/* --- Badge (contador en la campana) --- */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  border: 2px solid #fff;
  pointer-events: none;
  z-index: 10;
}

/* --- Panel lateral --- */
.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.14);
  z-index: 300;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.notif-panel.notif-panel-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.notif-panel-list {
  overflow-y: auto;
  flex: 1;
}

/* --- Items dentro del panel --- */
.notif-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background 0.1s;
  background: #f0fafa;
}

.notif-item:hover {
  background: #e6f7f7;
}

.notif-item.notif-item-leida {
  background: #fff;
  opacity: 0.75;
}

.notif-item.notif-item-leida:hover {
  background: #f8fafc;
  opacity: 1;
}

.notif-item-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.notif-item-icon {
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1.4;
}

.notif-item-mensaje {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.4;
  flex: 1;
}

.notif-item-fecha {
  font-size: 11px;
  color: #94a3b8;
  padding-left: 23px;
}

.notif-empty {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  padding: 24px 16px;
}

/* --- Toast: contenedor fixed inferior-derecho --- */
.notif-toast-wrap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

/* --- Toast individual --- */
.notif-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px 16px 18px;
  background: #ffffff;
  border-radius: 10px;
  border-left: 3px solid #008a8a;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.13);
  width: 340px;
  max-width: 340px;
  pointer-events: auto;
  overflow: hidden;
  transform: translateX(120%);
  animation: notif-slide-in 0.35s ease-out forwards;
}

.notif-toast.notif-toast-out {
  animation: notif-slide-out 0.25s ease-in forwards;
}

/* Variante amber (recordatorios) */
.notif-toast.amber {
  border-left-color: #BA7517;
}

/* Ícono circular */
.notif-toast-icono-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #f0fafa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  margin-top: 1px;
}

.notif-toast.amber .notif-toast-icono-wrap {
  background: #fef3cd;
}

/* Contenido: mensaje + hora */
.notif-toast-content {
  flex: 1;
  min-width: 0;
}

.notif-toast-msg {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.45;
  margin: 0;
}

.notif-toast-hora {
  font-size: 12px;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

/* Botón cerrar */
.notif-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: #94a3b8;
  padding: 0 2px;
  margin-top: -1px;
  transition: color 0.1s;
}

.notif-toast-close:hover {
  color: #475569;
}

/* Barra de progreso */
.notif-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: #008a8a;
  transform-origin: left center;
  animation: notif-progress 8s linear forwards;
}

.notif-toast.amber .notif-toast-progress {
  background: #BA7517;
}

/* Animaciones */
@keyframes notif-slide-in {
  from { transform: translateX(120%); opacity: 0.6; }
  to   { transform: translateX(0);    opacity: 1;   }
}

@keyframes notif-slide-out {
  from { transform: translateX(0);    opacity: 1;   }
  to   { transform: translateX(120%); opacity: 0;   }
}

@keyframes notif-progress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@media (max-width: 480px) {
  .notif-toast-wrap {
    bottom: 16px;
    left: 12px;
    right: 12px;
  }

  .notif-toast {
    width: 100%;
    max-width: 100%;
  }

  .notif-panel {
    width: calc(100vw - 24px);
    right: -8px;
  }
}
