@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --pdtf-blue: #17394b;
  --pdtf-blue-dark: #0f2734;
  --pdtf-green: #047e1a;
  --pdtf-red: #f20d0d;
  --pdtf-yellow: #f2c90d;
  --pdtf-lime: #d8ef00;
  --pdtf-bg: #f4f6f7;
  --pdtf-card-bg: #fff;
  --pdtf-muted: #68767e;
  --pdtf-line: rgba(23, 57, 75, .12);
  --pdtf-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  --pdtf-shadow-hover: 0 12px 28px rgba(23, 57, 75, .12);
  --pdtf-radius-lg: 24px;
  --pdtf-radius-md: 16px;
  --pdtf-transition: all .2s cubic-bezier(.4, 0, .2, 1)
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  background: var(--pdtf-bg)
}

body {
  color: var(--pdtf-blue);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased
}

.pdtf-safety {
  width: 100%;
  max-width: 1180px;
  margin: auto;
  padding: 16px
}

.pdtf-panel {
  overflow: hidden;
  background: var(--pdtf-bg);
  border: 1px solid var(--pdtf-line);
  border-radius: var(--pdtf-radius-lg);
  box-shadow: var(--pdtf-shadow)
}

.pdtf-header {
  padding: 22px 18px 20px;
  background: #fff;
  border-bottom: 1px solid var(--pdtf-line)
}

.pdtf-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px
}

.pdtf-header__logo {
  width: auto;
  height: 38px;
  object-fit: contain
}

.pdtf-kicker {
  margin: 0;
  color: #718088;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase
}

.pdtf-title {
  margin: 4px 0 0;
  color: var(--pdtf-blue);
  font-size: clamp(23px, 7vw, 34px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.04
}

.pdtf-intro {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--pdtf-muted);
  font-size: 13px;
  line-height: 1.45
}

/* Header de la portada: escudo a la izquierda, kicker + título + intro apilados a la derecha */
.pdtf-header--home {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: center
}

.pdtf-header--home > a {
  grid-row: 1 / 4;
  display: inline-flex;
  align-items: center
}

.pdtf-header--home .pdtf-header__logo {
  height: 88px
}

.pdtf-header--home .pdtf-kicker {
  align-self: end
}

.pdtf-header--home .pdtf-title {
  align-self: center
}

.pdtf-header--home .pdtf-intro {
  grid-column: 2;
  align-self: start;
  max-width: none
}

@media (max-width: 600px) {
  .pdtf-header--home {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px
  }

  .pdtf-header--home .pdtf-header__logo {
    height: clamp(92px, 24vw, 112px);
    max-width: 100%
  }

  .pdtf-header--home .pdtf-title {
    font-size: clamp(19px, 5.2vw, 24px)
  }
}

/* Escritorio: escudo grande a la izquierda; kicker, título e intro apilados a la derecha */
@media(min-width:700px) {
  .pdtf-header--home {
    column-gap: 26px
  }

  .pdtf-header--home .pdtf-header__logo {
    grid-row: 1 / 4;
    height: 130px
  }

  .pdtf-header--home .pdtf-kicker {
    align-self: end
  }

  .pdtf-header--home .pdtf-title {
    align-self: center
  }

  .pdtf-header--home .pdtf-intro {
    grid-column: 2;
    align-self: start;
    max-width: 650px
  }
}

.pdtf-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pdtf-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(23, 57, 75, .28);
  transition: var(--pdtf-transition)
}

.pdtf-back:hover {
  background: var(--pdtf-blue-dark);
  color: var(--pdtf-lime);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(23, 57, 75, .35)
}

.pdtf-back:active {
  transform: translateY(0)
}

.pdtf-back svg {
  width: 16px;
  height: 16px
}

.pdtf-911 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 24px 18px;
  background: linear-gradient(135deg, var(--pdtf-blue), var(--pdtf-blue-dark));
  color: #fff;
  text-decoration: none;
  transition: var(--pdtf-transition)
}

.pdtf-911:hover {
  background: linear-gradient(135deg, #1d465c, #123041)
}

.pdtf-911__number {
  display: block;
  font-size: clamp(76px, 23vw, 128px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .8;
  color: var(--pdtf-lime)
}

.pdtf-911__title {
  display: block;
  margin-top: 15px;
  font-size: 17px;
  font-weight: 800;
  color: var(--pdtf-lime)
}

.pdtf-911__desc {
  display: block;
  max-width: 580px;
  margin-top: 7px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  line-height: 1.45
}

.pdtf-911__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pdtf-lime);
  color: var(--pdtf-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em
}

.pdtf-911__badge:before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pdtf-blue);
  content: ''
}

.pdtf-911__call {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--pdtf-blue);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  transition: var(--pdtf-transition)
}

.pdtf-911:hover .pdtf-911__call {
  background: var(--pdtf-lime);
  transform: scale(1.08)
}

.pdtf-911__call svg {
  width: 28px;
  height: 28px
}

.pdtf-emergency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--pdtf-line);
  border-bottom: 1px solid var(--pdtf-line)
}

.pdtf-emergency {
  display: flex;
  min-width: 0;
  min-height: 154px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 10px 14px;
  color: #fff;
  text-decoration: none;
  transition: var(--pdtf-transition)
}

.pdtf-emergency--107 {
  background: var(--pdtf-green)
}

.pdtf-emergency--100 {
  background: var(--pdtf-red)
}

.pdtf-emergency--103 {
  background: var(--pdtf-yellow);
  color: #252525
}

.pdtf-emergency__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px
}

.pdtf-emergency__number {
  display: block;
  font-size: clamp(34px, 11vw, 54px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .85
}

.pdtf-emergency__label {
  display: block;
  margin-top: 9px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase
}

.pdtf-emergency__action {
  margin-top: 16px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  opacity: .9;
  text-transform: uppercase
}

.pdtf-tools,
.pdtf-page-content {
  padding: 18px 12px 12px
}

.pdtf-section-title {
  margin: 0 6px 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase
}

.pdtf-tool-grid,
.pdtf-zone-grid,
.comisarias-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px
}

.pdtf-tool,
.pdtf-zone-card,
.comisaria-card {
  border: 1px solid var(--pdtf-line);
  border-radius: var(--pdtf-radius-md);
  background: #fff;
  box-shadow: 0 4px 14px rgba(23, 57, 75, .04);
  transition: var(--pdtf-transition)
}

.pdtf-tool:hover,
.pdtf-zone-card:hover,
.comisaria-card:hover {
  border-color: rgba(23, 57, 75, .35);
  box-shadow: var(--pdtf-shadow-hover);
  transform: translateY(-3px)
}

.pdtf-tool {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 13px;
  color: var(--pdtf-blue);
  text-decoration: none
}

.pdtf-tool__icon {
  width: 35px;
  height: 35px
}

.pdtf-tool--featured {
  border-color: rgba(23, 57, 75, .32);
  box-shadow: 0 4px 14px rgba(23, 57, 75, .08);
}

.pdtf-tool__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.pdtf-tool__badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(23, 57, 75, .08);
  color: var(--pdtf-blue);
  line-height: 1;
}

.pdtf-tool--featured:hover .pdtf-tool__badge {
  background: var(--pdtf-blue);
  color: #fff;
}

.pdtf-tool__title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.18
}

.pdtf-tool__desc {
  display: block;
  margin-top: 5px;
  color: var(--pdtf-muted);
  font-size: 10px;
  line-height: 1.3
}

/* Selector de Idiomas i18n y Toggle Dark Mode */
.pdtf-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 0;
  background: #fff;
}

.pdtf-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(23, 57, 75, 0.12);
  border-radius: 999px;
  background: rgba(23, 57, 75, 0.06);
  color: var(--pdtf-blue);
  cursor: pointer;
  transition: var(--pdtf-transition);
}

.pdtf-theme-btn:hover {
  background: rgba(23, 57, 75, 0.12);
}

.pdtf-theme-btn .material-symbols-rounded {
  font-size: 18px;
}

.pdtf-topbar + .pdtf-header {
  padding-top: 8px;
}

.pdtf-lang-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(23, 57, 75, 0.06);
  border: 1px solid rgba(23, 57, 75, 0.1);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.pdtf-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--pdtf-blue);
  padding: 5px 9px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
  line-height: 1;
}

.pdtf-lang-btn:hover {
  background: rgba(23, 57, 75, 0.08);
}

.pdtf-lang-btn.is-active {
  background: var(--pdtf-blue);
  color: #fff;
  box-shadow: 0 2px 6px rgba(23, 57, 75, 0.22);
}

.pdtf-lang-btn .pdtf-lang-flag {
  font-size: 13px;
  line-height: 1;
}

.pdtf-footer {
  margin-top: 6px;
  padding: 15px 18px 18px;
  color: #77858c;
  font-size: 10px;
  line-height: 1.4;
  text-align: center
}

.pdtf-footer p {
  margin: 12px 0 0
}

.pdtf-version {
  margin-top: 6px !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

/* ==========================================================================
   DARK MODE (Modo Oscuro)
   ========================================================================== */
[data-theme="dark"] {
  --pdtf-bg: #0b161d;
  --pdtf-card-bg: #12232e;
  --pdtf-muted: #9eb0ba;
  --pdtf-line: rgba(255, 255, 255, 0.1);
  --pdtf-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --pdtf-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] body {
  color: #e6eef2;
}

[data-theme="dark"] .pdtf-topbar,
[data-theme="dark"] .pdtf-header {
  background: #10202a;
}

[data-theme="dark"] .pdtf-title,
[data-theme="dark"] .pdtf-section-title,
[data-theme="dark"] .pdtf-tool {
  color: #e6eef2;
}

[data-theme="dark"] .pdtf-kicker {
  color: #8fa5b2;
}

[data-theme="dark"] .pdtf-tool,
[data-theme="dark"] .pdtf-zone-card,
[data-theme="dark"] .comisaria-card {
  background: var(--pdtf-card-bg);
}

[data-theme="dark"] .pdtf-tool:hover,
[data-theme="dark"] .pdtf-zone-card:hover,
[data-theme="dark"] .comisaria-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .pdtf-tool__badge {
  background: rgba(255, 255, 255, 0.1);
  color: #e6eef2;
}

[data-theme="dark"] .pdtf-tool--featured:hover .pdtf-tool__badge {
  background: #e6eef2;
  color: #0b161d;
}

[data-theme="dark"] .pdtf-lang-selector {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .pdtf-lang-btn,
[data-theme="dark"] .pdtf-theme-btn {
  color: #e6eef2;
}

[data-theme="dark"] .pdtf-theme-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .pdtf-theme-btn:hover,
[data-theme="dark"] .pdtf-lang-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .pdtf-lang-btn.is-active {
  background: #f2c90d;
  color: #0f2734;
}

[data-theme="dark"] .pdtf-share-btn {
  background: #1d465c;
}

[data-theme="dark"] .pdtf-share-modal__box {
  background: #12232e;
  color: #e6eef2;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .gps-status-card {
  background: var(--pdtf-card-bg);
  border-color: var(--pdtf-line);
  color: #e6eef2;
}

[data-theme="dark"] .gps-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e6eef2;
}

[data-theme="dark"] .gps-btn--active {
  background: #f2c90d;
  border-color: #f2c90d;
  color: #0f2734;
}

.pdtf-footer p[data-i18n="footer_home"] {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.pdtf-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--pdtf-blue);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, opacity .15s
}

.pdtf-share-btn:hover { opacity: .9; transform: translateY(-1px) }
.pdtf-share-btn .material-symbols-rounded { font-size: 18px }

.pdtf-share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .55)
}

.pdtf-share-modal[hidden] { display: none }

.pdtf-share-modal__box {
  width: 100%;
  max-width: 360px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  color: #1c2a33;
  font-size: 14px
}

.pdtf-share-modal__title { margin: 0 0 14px; font-size: 18px }

.pdtf-share-modal__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.pdtf-share-modal__links a {
  padding: 10px;
  border-radius: 10px;
  background: #eef2f5;
  color: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none
}

.pdtf-share-modal__copy { display: flex; gap: 8px; margin-top: 14px }

.pdtf-share-modal__copy input {
  min-width: 0;
  flex: 1;
  padding: 10px;
  border: 1px solid #cdd6dc;
  border-radius: 10px;
  font: inherit;
  font-size: 12px
}

.pdtf-share-modal__copy button,
.pdtf-share-modal__close {
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--pdtf-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer
}

.pdtf-share-modal__close {
  width: 100%;
  margin-top: 12px;
  background: #eef2f5;
  color: #1c2a33
}

.pdtf-zone-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  color: var(--pdtf-blue);
  text-decoration: none
}

.pdtf-zone-card__icon {
  width: 38px;
  height: 38px
}

.pdtf-zone-card__name {
  display: block;
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em
}

.pdtf-zone-card__city {
  display: block;
  margin-top: 8px;
  color: var(--pdtf-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase
}

.pdtf-zone-card__action {
  align-self: flex-start;
  padding-top: 12px;
  border-top: 1px solid var(--pdtf-line);
  width: 100%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.pdtf-zone-card__arrow {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  transition: transform .2s ease
}

.pdtf-zone-card:hover .pdtf-zone-card__arrow {
  transform: translateX(6px)
}

.pdtf-navigation {
  display: flex;
  justify-content: center;
  padding: 22px 12px 6px
}

.pdtf-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--pdtf-line);
  border-radius: 10px;
  background: #fff;
  color: var(--pdtf-blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--pdtf-transition)
}

.pdtf-button:hover {
  border-color: var(--pdtf-blue);
  background: var(--pdtf-blue);
  color: #fff
}

.pdtf-button svg {
  width: 17px;
  height: 17px
}

.loading-spinner {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--pdtf-muted);
  font-size: 13px
}

.loading-spinner.hidden {
  display: none
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(23, 57, 75, .15);
  border-top-color: var(--pdtf-blue);
  border-radius: 50%;
  animation: pdtf-spin .8s linear infinite
}

@keyframes pdtf-spin {
  to {
    transform: rotate(360deg)
  }
}

.comisaria-card {
  display: flex;
  overflow: hidden;
  flex-direction: column
}

.comisaria-img-wrapper {
  height: 150px;
  background: linear-gradient(135deg, var(--pdtf-blue), var(--pdtf-blue-dark))
}

.comisaria-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.comisaria-info {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  padding: 18px
}

.comisaria-title {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.14
}

.comisaria-title .city-suffix {
  display: block;
  margin-top: 5px;
  color: var(--pdtf-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0
}

.comisaria-contact-list {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--pdtf-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none
}

.comisaria-contact-list li {
  display: flex;
  gap: 7px
}

.comisaria-contact-list li:before {
  width: 5px;
  height: 5px;
  flex: none;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--pdtf-blue);
  content: ''
}

.comisaria-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 8px 5px;
  border: 1px solid var(--pdtf-line);
  border-radius: 9px;
  background: var(--pdtf-bg);
  color: var(--pdtf-blue);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--pdtf-transition)
}

.action-btn:hover {
  border-color: var(--pdtf-blue);
  background: var(--pdtf-blue);
  color: #fff
}

.action-btn svg {
  width: 15px;
  height: 15px
}

.pdtf-empty,
.pdtf-placeholder {
  width: 100%;
  padding: 24px 18px;
  border: 1px dashed var(--pdtf-line);
  border-radius: var(--pdtf-radius-md);
  color: var(--pdtf-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center
}

.pdtf-placeholder {
  background: rgba(255, 255, 255, .55);
  text-align: left
}

.pdtf-safety a:focus-visible {
  outline: 3px solid #6ba9c8;
  outline-offset: 3px
}

.pdtf-iframe-wrapper {
  width: 100%;
  height: 75vh;
  min-height: 520px;
  border-radius: var(--pdtf-radius-md);
  overflow: hidden;
  border: 1px solid var(--pdtf-line);
  background: #fff;
  box-shadow: 0 4px 14px rgba(23, 57, 75, .04)
}

.pdtf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block
}

.pdtf-iframe-fallback {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--pdtf-muted)
}

.pdtf-iframe-fallback a {
  color: var(--pdtf-blue);
  font-weight: 700;
  text-decoration: none
}

.pdtf-iframe-fallback a:hover {
  text-decoration: underline
}

@media(min-width:700px) {
  .pdtf-safety {
    padding: 22px
  }

  .pdtf-panel {
    border-radius: 28px
  }

  .pdtf-header {
    padding: 28px 28px 24px
  }

  .pdtf-intro {
    font-size: 14px
  }

  .pdtf-911 {
    padding: 34px 30px;
    gap: 30px
  }

  .pdtf-911__call {
    width: 68px;
    height: 68px
  }

  .pdtf-911__title {
    font-size: 20px
  }

  .pdtf-911__desc {
    font-size: 13px
  }

  .pdtf-emergency {
    min-height: 190px;
    padding: 22px
  }

  .pdtf-emergency__icon {
    width: 34px;
    height: 34px
  }

  .pdtf-emergency__label {
    font-size: 12px
  }

  .pdtf-emergency__action {
    font-size: 10px
  }

  .pdtf-tools,
  .pdtf-page-content {
    padding: 24px 20px 18px
  }

  .pdtf-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
  }

  .pdtf-zone-grid,
  .comisarias-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
  }

  .pdtf-tool {
    min-height: 150px;
    padding: 18px
  }

  .pdtf-tool__title {
    font-size: 14px
  }

  .pdtf-tool__desc {
    font-size: 11px
  }

  .comisaria-img-wrapper {
    height: 170px
  }
}

@media(min-width:1024px) {
  .pdtf-safety {
    padding: 28px
  }

  .pdtf-header {
    padding: 32px 34px 28px
  }

  .pdtf-911 {
    padding: 40px 36px
  }

  .pdtf-911__number {
    font-size: 132px
  }

  .pdtf-emergency {
    min-height: 210px;
    padding: 26px
  }

  .pdtf-tools,
  .pdtf-page-content {
    padding: 28px 24px 22px
  }

  .pdtf-tool-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px
  }

  .pdtf-tool {
    min-height: 164px;
    padding: 20px
  }

  .pdtf-tool__icon {
    width: 40px;
    height: 40px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}

/* ==========================================================================
   Componentes por página (centralizados desde bloques <style> inline)
   ========================================================================== */

/* --- consejos.html: tarjetas de consejos --- */
.tips-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 6px 20px
}

.tips-nav a {
  padding: 8px 12px;
  border: 1px solid var(--pdtf-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pdtf-blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--pdtf-transition)
}

.tips-nav a:hover {
  background: var(--pdtf-blue);
  border-color: var(--pdtf-blue);
  color: #fff
}

.tips-list {
  display: grid;
  gap: 16px
}

.tips-card {
  scroll-margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--pdtf-line);
  border-radius: var(--pdtf-radius-md);
  background: #fff;
  box-shadow: 0 4px 14px rgba(23, 57, 75, .04)
}

.tips-card__head {
  padding: 20px 18px;
  background: linear-gradient(135deg, var(--pdtf-blue), var(--pdtf-blue-dark));
  color: #fff
}

.tips-card__eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase
}

.tips-card__title {
  margin: 6px 0 0;
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1
}

.tips-card__badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pdtf-lime);
  color: var(--pdtf-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em
}

.tips-card__body {
  padding: 16px 14px 18px
}

.tips-card__intro {
  margin: 0 0 12px;
  color: #4d5a61;
  font-size: 12px;
  line-height: 1.5
}

.tips-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none
}

.tips-step {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--pdtf-line);
  border-radius: 12px;
  background: var(--pdtf-bg);
  transition: var(--pdtf-transition)
}

.tips-step:hover {
  border-color: rgba(23, 57, 75, .35);
  box-shadow: var(--pdtf-shadow-hover);
  transform: translateY(-2px)
}

.tips-step__num {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--pdtf-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900
}

.tips-step__title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2
}

.tips-step__desc {
  display: block;
  margin-top: 4px;
  color: var(--pdtf-muted);
  font-size: 12px;
  line-height: 1.45
}

.tips-alert {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 5px solid var(--pdtf-yellow);
  border-radius: 12px;
  background: #fffbe6
}

.tips-alert__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 900
}

.tips-alert__text {
  margin: 0;
  color: #4d5a61;
  font-size: 12px;
  line-height: 1.5
}

.tips-sources {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--pdtf-line)
}

.tips-sources__title {
  margin: 0 0 8px;
  color: #718088;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase
}

.tips-sources__title--spaced {
  margin-top: 12px
}

.tips-sources ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none
}

.tips-sources a {
  color: var(--pdtf-blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word
}

.tips-sources a:hover {
  text-decoration: underline
}

.tips-sources a:after {
  content: ' \2197'
}

/* --- informacion-util.html: tarjeta de portal --- */
.portal-card {
  max-width: 600px;
  margin: 20px auto;
  padding: 32px 24px;
  border: 1px solid var(--pdtf-line);
  border-radius: var(--pdtf-radius-md);
  background: #fff;
  box-shadow: 0 4px 14px rgba(23, 57, 75, .04);
  text-align: center
}

.portal-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--pdtf-blue)
}

.portal-card__title {
  margin: 0 0 10px;
  color: var(--pdtf-blue);
  font-size: 22px;
  font-weight: 900
}

.portal-card__desc {
  margin: 0 0 24px;
  color: var(--pdtf-muted);
  font-size: 14px;
  line-height: 1.5
}

.portal-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--pdtf-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--pdtf-transition)
}

.portal-card__btn:hover {
  background: var(--pdtf-blue-dark);
  transform: translateY(-2px)
}

/* --- mapa.html: estado GPS y comisaría más cercana --- */
.gps-status-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--pdtf-line);
  border-radius: var(--pdtf-radius-md);
  background: #fff
}

.gps-status-info {
  display: flex;
  align-items: center;
  gap: 12px
}

.gps-icon-wrapper {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(23, 57, 75, .08);
  color: var(--pdtf-blue)
}

.gps-icon-wrapper.active {
  background: rgba(4, 126, 26, .12);
  color: var(--pdtf-green)
}

.gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: var(--pdtf-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--pdtf-transition)
}

.gps-btn:hover {
  background: var(--pdtf-blue-dark);
  transform: translateY(-1px)
}

.nearest-banner {
  display: none;
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--pdtf-radius-md);
  background: linear-gradient(135deg, var(--pdtf-blue), var(--pdtf-blue-dark));
  box-shadow: var(--pdtf-shadow);
  color: #fff
}

.nearest-banner.active {
  display: block;
  animation: fadeIn .4s ease-in-out
}

.nearest-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pdtf-lime);
  color: var(--pdtf-blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase
}

.nearest-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900
}

.nearest-dist {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px
}

.nearest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.nearest-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--pdtf-blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--pdtf-transition)
}

.nearest-btn:hover {
  background: var(--pdtf-lime)
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(min-width:700px) {
  .tips-card__head {
    padding: 24px 26px
  }

  .tips-card__body {
    padding: 20px
  }

  .tips-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
  }
}

.gps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.gps-btn:not(.gps-btn--active) {
  background: #fff;
  color: var(--pdtf-blue);
  box-shadow: inset 0 0 0 1px var(--pdtf-line)
}

.gps-btn:not(.gps-btn--active):hover {
  background: var(--pdtf-blue);
  color: #fff
}
/* ===== Material Symbols (Google Fonts) ===== */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  flex-shrink: 0;
  user-select: none;
  -webkit-font-smoothing: antialiased
}

.pdtf-tool__icon,
.pdtf-zone-card__icon {
  font-size: 40px
}

.pdtf-911__call .material-symbols-rounded {
  font-size: 32px
}

.portal-card__icon {
  font-size: 52px
}

.gps-icon-wrapper .material-symbols-rounded {
  font-size: 26px
}

.gps-btn .material-symbols-rounded,
.nearest-btn .material-symbols-rounded {
  font-size: 18px
}

.action-btn .material-symbols-rounded {
  font-size: 20px
}

/* ===== Mapa: acciones principales (protagonismo moderado, sin competir con 911 ni "Volver") ===== */
.gps-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 2px
}

.gps-actions .gps-btn {
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left
}

.gps-actions .gps-btn .material-symbols-rounded {
  font-size: 22px
}

.gps-actions .gps-btn:not(.gps-btn--active) {
  box-shadow: inset 0 0 0 1.5px rgba(23, 57, 75, .35)
}
/* ===== Accesos rápidos (index): textos más grandes y consistentes, máx. 2 líneas ===== */
.pdtf-tool__title,
.pdtf-tool__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden
}

.pdtf-tool__title {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -.01em
}

.pdtf-tool__desc {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.3
}

@media(min-width:700px) {
  .pdtf-tool__title { font-size: 19px }
  .pdtf-tool__desc { font-size: 13px }
}

@media(min-width:1024px) {
  .pdtf-tool__title { font-size: 17px }
  .pdtf-tool__desc { font-size: 12.5px }
}

/* Alinea títulos en la misma línea: todas las descripciones reservan 2 líneas */
.pdtf-tool__desc {
  min-height: calc(2 * 1.3em)
}
