/* ============================================================
   SUCURSALES — Portátiles Nicaragua
   ============================================================ */

/* ------------------------------------------------------------
   STATS STRIP
   ------------------------------------------------------------ */
.pn-sucstats {
  background: #fff;
  border-bottom: 1px solid var(--pn-border-soft);
  padding: 28px 0;
}
.pn-sucstats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pn-sucstat {
  text-align: center;
  padding: 6px 10px;
  border-right: 1px solid var(--pn-border-soft);
}
.pn-sucstat:last-child { border-right: 0; }

.pn-sucstat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--pn-blue);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.pn-sucstat__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pn-text-muted);
  line-height: 1.4;
}

/* ------------------------------------------------------------
   MAPA GRANDE
   ------------------------------------------------------------ */
.pn-sucmap {
  padding: clamp(48px, 7vw, 88px) 0;
  background:
    radial-gradient(800px 500px at 50% 30%, rgba(1, 159, 230, 0.1), transparent 70%),
    #f4f6fa;
}

.pn-sucmap__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.pn-sucmap__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--pn-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 8px 0 10px;
}
.pn-sucmap__sub {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--pn-text-muted);
}

/* Filtros pills */
.pn-sucmap__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.pn-sucmap__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--pn-border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pn-text-soft);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.pn-sucmap__pill:hover {
  border-color: var(--pn-blue);
  color: var(--pn-blue);
  transform: translateY(-1px);
}
.pn-sucmap__pill span {
  padding: 1px 8px;
  background: var(--pn-bg-soft);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  color: var(--pn-text-muted);
  font-weight: 700;
}
.pn-sucmap__pill.is-active {
  background: var(--pn-blue);
  border-color: var(--pn-blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(1, 159, 230, 0.3);
}
.pn-sucmap__pill.is-active span {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Canvas del mapa — grande */
.pn-sucmap__canvas {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px);
  background:
    radial-gradient(500px 400px at 50% 30%, rgba(1, 159, 230, 0.14), transparent 70%),
    linear-gradient(180deg, #0f1a38 0%, #1a2650 100%);
  border: 1px solid rgba(1, 159, 230, 0.25);
  border-radius: var(--radius-xl);
  box-shadow:
    0 24px 60px rgba(15, 26, 56, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.pn-sucmap__canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(1, 159, 230, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  border-radius: var(--radius-xl);
  opacity: 0.5;
}

.pn-sucmap__canvas svg,
.pn-sucmap__canvas .pn-mapa__svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(1, 159, 230, 0.25));
}

.pn-sucmap__error {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.pn-sucmap__error code {
  color: var(--pn-blue-light);
  font-family: monospace;
}

/* Markers más grandes y con label siempre visible */
.pn-mapa__svg--big .pn-mapa__marker-glow { r: 22; }
.pn-mapa__svg--big .pn-mapa__marker-pulse { r: 7; }
.pn-mapa__svg--big .pn-mapa__marker-dot {
  r: 7;
  stroke-width: 2;
}
.pn-mapa__svg--big .pn-mapa__marker-label {
  font-size: 12px;
  opacity: 0.9;
  transform: translateY(0);
  text-shadow: 0 0 8px rgba(0, 0, 0, 1), 0 0 16px rgba(0, 0, 0, 0.8);
}
.pn-mapa__svg--big .pn-mapa__marker:hover .pn-mapa__marker-label,
.pn-mapa__svg--big .pn-mapa__marker:focus .pn-mapa__marker-label,
.pn-mapa__svg--big .pn-mapa__marker.is-hover .pn-mapa__marker-label {
  font-size: 13px;
  opacity: 1;
  fill: #7fd0f4;
}
.pn-mapa__svg--big .pn-mapa__marker:hover .pn-mapa__marker-dot,
.pn-mapa__svg--big .pn-mapa__marker:focus .pn-mapa__marker-dot,
.pn-mapa__svg--big .pn-mapa__marker.is-hover .pn-mapa__marker-dot {
  fill: #7fd0f4;
  filter: drop-shadow(0 0 14px rgba(127, 208, 244, 1));
}
.pn-mapa__svg--big .pn-mapa__marker:hover .pn-mapa__marker-glow,
.pn-mapa__svg--big .pn-mapa__marker:focus .pn-mapa__marker-glow,
.pn-mapa__svg--big .pn-mapa__marker.is-hover .pn-mapa__marker-glow {
  opacity: 1;
}
.pn-mapa__svg--big .pn-mapa__marker-count {
  font-size: 11px;
}

.pn-sucmap__canvas .pn-mapa__marker {
  transition: opacity 300ms ease;
}
.pn-sucmap__canvas .pn-mapa__marker.is-hidden {
  opacity: 0.1;
  pointer-events: none;
}

/* Leyenda */
.pn-sucmap__legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--pn-text-soft);
}
.pn-sucmap__legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pn-sucmap__legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--pn-blue);
  box-shadow: 0 0 12px rgba(1, 159, 230, 0.8);
  flex-shrink: 0;
}
.pn-sucmap__legend-count {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(1, 159, 230, 0.2);
  color: var(--pn-blue);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pn-sucmap__legend-hint {
  color: var(--pn-text-muted);
  font-style: italic;
}
.pn-sucmap__legend-hint i {
  color: var(--pn-blue);
  font-size: 0.75rem;
}

/* ------------------------------------------------------------
   GRID DE SUCURSALES
   ------------------------------------------------------------ */
.pn-sucfull {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pn-sucfull__card[hidden] { display: none !important; }

.pn-sucfull__card {
  background: #fff;
  border: 1px solid var(--pn-border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  display: flex;
  flex-direction: column;
  scroll-margin-top: calc(var(--topbar-h) + var(--header-h) + 20px);
}
.pn-sucfull__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pn-blue-light);
}

/* Highlight cuando llega desde el mapa o desde un enlace */
.pn-sucfull__card.is-highlight {
  border-color: var(--pn-blue);
  box-shadow: 0 0 0 3px rgba(1, 159, 230, 0.2), 0 12px 40px rgba(1, 159, 230, 0.25);
  animation: pnSucHighlight 2.4s ease;
}
@keyframes pnSucHighlight {
  0%   { box-shadow: 0 0 0 0 rgba(1, 159, 230, 0.5), 0 12px 40px rgba(1, 159, 230, 0.4); }
  40%  { box-shadow: 0 0 0 8px rgba(1, 159, 230, 0), 0 12px 40px rgba(1, 159, 230, 0.3); }
  100% { box-shadow: 0 0 0 3px rgba(1, 159, 230, 0.2), 0 12px 40px rgba(1, 159, 230, 0.25); }
}

.pn-sucfull__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--pn-bg-soft);
}
.pn-sucfull__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.pn-sucfull__card:hover .pn-sucfull__media img { transform: scale(1.06); }

.pn-sucfull__badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.pn-sucfull__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  color: #fff;
  background: rgba(15, 26, 56, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.pn-sucfull__badge i { font-size: 0.6rem; }
.pn-sucfull__badge--depto { background: rgba(15, 26, 56, 0.85); }
.pn-sucfull__badge--sede {
  background: var(--pn-gold);
  border-color: transparent;
}

.pn-sucfull__body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pn-sucfull__head { }
.pn-sucfull__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pn-text);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.pn-sucfull__depto {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pn-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pn-sucfull__depto i { font-size: 0.7rem; }

.pn-sucfull__info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--pn-text-soft);
  flex: 1;
}
.pn-sucfull__info li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.5;
}
.pn-sucfull__info i {
  color: var(--pn-blue);
  font-size: 0.85rem;
  margin-top: 3px;
  text-align: center;
}
.pn-sucfull__info a {
  color: var(--pn-text-soft);
  text-decoration: underline;
  text-decoration-color: rgba(1, 159, 230, 0.4);
  text-underline-offset: 3px;
}
.pn-sucfull__info a:hover { color: var(--pn-blue); }

.pn-sucfull__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--pn-border-soft);
  flex-wrap: wrap;
}

.pn-sucfull__social {
  display: flex;
  gap: 6px;
}
.pn-sucfull__social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pn-bg-soft);
  color: var(--pn-text-soft);
  font-size: 0.78rem;
  transition: background var(--t-base), color var(--t-base), transform var(--t-base);
}
.pn-sucfull__social a:hover {
  background: var(--pn-blue);
  color: #fff;
  transform: translateY(-2px);
}
.pn-sucfull__social a[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

.pn-sucfull__maplink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--pn-blue-soft);
  color: var(--pn-blue);
  border: 1px solid rgba(1, 159, 230, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.pn-sucfull__maplink:hover {
  background: var(--pn-blue);
  color: #fff;
  border-color: var(--pn-blue);
  transform: translateY(-1px);
}
.pn-sucfull__maplink i { font-size: 0.7rem; }

/* Empty state */
.pn-sucfull__empty {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pn-sucfull__empty[hidden] { display: none !important; }
.pn-sucfull__empty i {
  font-size: 2.4rem;
  color: var(--pn-blue-light);
  display: block;
  margin-bottom: 16px;
}
.pn-sucfull__empty h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pn-text);
  margin-bottom: 6px;
}
.pn-sucfull__empty p {
  font-size: 0.88rem;
  color: var(--pn-text-muted);
  margin-bottom: 18px;
}

/* ------------------------------------------------------------
   CTA FINAL (idéntico al resto)
   ------------------------------------------------------------ */
.pn-ctaend__box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 56px);
  background:
    radial-gradient(600px 300px at 20% 50%, rgba(1, 159, 230, 0.08), transparent 70%),
    #fff;
  border: 1px solid var(--pn-border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.pn-ctaend__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: var(--pn-text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.pn-ctaend__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--pn-text-soft);
  max-width: 540px;
}
.pn-ctaend__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .pn-sucfull { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .pn-sucstats__grid { grid-template-columns: repeat(2, 1fr); }
  .pn-sucstat:nth-child(2) { border-right: 0; }
  .pn-sucstat:nth-child(3) { border-top: 1px solid var(--pn-border-soft); padding-top: 20px; }
  .pn-sucstat:nth-child(4) { border-top: 1px solid var(--pn-border-soft); padding-top: 20px; border-right: 0; }

  .pn-sucmap__canvas { max-width: 640px; }

  .pn-ctaend__box { grid-template-columns: 1fr; gap: 22px; }
  .pn-ctaend__actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .pn-sucfull { grid-template-columns: 1fr; }
  .pn-sucmap__canvas { padding: 16px; }
  .pn-sucmap__filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .pn-sucmap__pill { flex-shrink: 0; }
  .pn-sucmap__legend { gap: 14px; flex-direction: column; align-items: center; }

  /* Labels de markers del mapa más chicos en mobile */
  .pn-mapa__svg--big .pn-mapa__marker-label { font-size: 10px; }
  .pn-mapa__svg--big .pn-mapa__marker-dot { r: 6; }
  .pn-mapa__svg--big .pn-mapa__marker-glow { r: 18; }
  .pn-mapa__svg--big .pn-mapa__marker-pulse { r: 6; }

  .pn-ctaend__actions { flex-direction: column; }
  .pn-ctaend__actions .pn-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .pn-sucstats__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pn-sucfull__body { padding: 18px 18px 16px; }
  .pn-sucfull__title { font-size: 1.05rem; }
}