/* ==========================================================================
   SIMULACRO ANTE TSUNAMI - USHUAIA
   Fidelidad visual total al diseño original provisto:
   - Fondos oscuros institucionales: brand-dark (#141920), brand-charcoal (#1E2530), brand-surface (#262F3D)
   - Tipografías: Plus Jakarta Sans (display) + Inter (sans)
   - Degradados naranjas: brand-accent1 (#FF5E1A) a brand-accent2 (#FF8A3D)
   - Encapsulado bajo .tdf-tsunami para compatibilidad total con WordPress / Elementor
   - Sin dependencias externas ni CDN de Tailwind
   ========================================================================== */

.tdf-tsunami {
  --brand-dark: #141920;
  --brand-charcoal: #1E2530;
  --brand-surface: #262F3D;
  --brand-light: #F4F6F9;
  --brand-accent1: #FF5E1A;
  --brand-accent2: #FF8A3D;
  --brand-alert: #F59E0B;
  --text-slate-200: #E2E8F0;
  --text-slate-300: #CBD5E1;
  --text-slate-400: #94A3B8;
  --text-slate-600: #475569;
  --text-slate-800: #1E293B;
  --text-slate-950: #020617;
  
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-slate-800);
  background-color: var(--brand-light);
  line-height: 1.5;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.tdf-tsunami *,
.tdf-tsunami *::before,
.tdf-tsunami *::after {
  box-sizing: inherit;
}

.tdf-tsunami [id] {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   1. BARRA SUPERIOR PREVENTIVA
   ========================================================================== */
.tdf-tsunami-banner {
  background: linear-gradient(90deg, #FBBF24 0%, #FCD34D 50%, #FBBF24 100%);
  color: var(--text-slate-950);
  font-weight: 700;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.025em;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tdf-tsunami-banner-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tdf-tsunami-banner-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-slate-950);
  animation: tdf-banner-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes tdf-banner-ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ==========================================================================
   2. HERO PRINCIPAL EXACTO
   ========================================================================== */
.tdf-tsunami-hero {
  background-color: var(--brand-dark);
  background-image: 
    radial-gradient(at 20% 0%, rgba(255, 94, 26, 0.18) 0px, transparent 55%),
    radial-gradient(at 85% 90%, rgba(255, 138, 61, 0.12) 0px, transparent 50%);
  color: #FFFFFF;
  padding: 56px 16px 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tdf-tsunami-hero-container {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Pill Institucional */
.tdf-tsunami-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-slate-200);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 28px;
}

.tdf-tsunami-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-accent1);
}

/* Título */
.tdf-tsunami-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0 0 20px;
  color: #FFFFFF;
}

.tdf-tsunami-gradient-text {
  background: linear-gradient(135deg, var(--brand-accent1) 0%, var(--brand-accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tdf-tsunami-hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
}

.tdf-tsunami-hero-meta-dot {
  color: var(--brand-accent1);
}

.tdf-tsunami-hero-desc {
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-slate-300);
  line-height: 1.6;
}

.tdf-tsunami-hero-desc strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* Cuenta Regresiva */
.tdf-tsunami-cd-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 440px;
  margin: 0 auto 36px;
}

.tdf-tsunami-cd-card {
  background: rgba(30, 37, 48, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 14px 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.tdf-tsunami-cd-card.accent-card {
  border-color: rgba(255, 94, 26, 0.45);
}

.tdf-tsunami-cd-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: block;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.tdf-tsunami-cd-card.accent-card .tdf-tsunami-cd-val {
  color: var(--brand-accent2);
}

.tdf-tsunami-cd-lbl {
  font-size: 11px;
  color: var(--text-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

.tdf-tsunami-cd-finished {
  display: none;
  margin: 0 auto 36px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  border-radius: 16px;
  padding: 16px 24px;
  max-width: 440px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

/* Botones de acción Hero */
.tdf-tsunami-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  align-items: center;
  max-width: 440px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .tdf-tsunami-hero-ctas {
    flex-direction: row;
    max-width: none;
  }
}

.tdf-tsunami-btn-gradient {
  background: linear-gradient(135deg, #FF5E1A 0%, #FF7A2F 100%);
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(255, 94, 26, 0.5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 0;
  cursor: pointer;
}

.tdf-tsunami-btn-gradient:hover {
  background: linear-gradient(135deg, #E84E0C 0%, #FF6B1A 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(255, 94, 26, 0.6);
}

.tdf-tsunami-btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tdf-tsunami-btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Herramientas de utilidad: agendar y compartir */
.tdf-tsunami-hero-tools {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.tdf-tsunami-tool-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-slate-300);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tdf-tsunami-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Toast flotante */
.tdf-tsunami-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brand-charcoal);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid var(--brand-accent1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 9999;
}

.tdf-tsunami-toast.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   3. BLOQUE DEL SIMULADOR MAPA INTERACTIVO REAL
   ========================================================================== */
.tdf-tsunami-sim-section {
  padding: 64px 16px 80px;
  max-width: 1040px;
  margin: 0 auto;
}

.tdf-tsunami-sim-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.tdf-tsunami-tag-accent {
  color: var(--brand-accent1);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.tdf-tsunami-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0 0 12px;
  line-height: 1.15;
}

.tdf-tsunami-p-desc {
  font-size: 16px;
  color: var(--text-slate-600);
  line-height: 1.6;
  margin: 0;
}

/* Contenedor del Mapa */
.tdf-tsunami-map-wrapper {
  background: #FFFFFF;
  padding: 16px;
  border-radius: 24px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.tdf-tsunami-map-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 8px 14px;
}

.tdf-tsunami-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FEF3C7;
  color: #78350F;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
}

.tdf-tsunami-map-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-alert);
}

.tdf-tsunami-map-safe-info {
  font-size: 13px;
  color: var(--text-slate-600);
  font-weight: 600;
}

.tdf-tsunami-map-safe-info a {
  color: var(--brand-accent1);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tdf-tsunami-map-safe-info a:hover {
  text-decoration: underline;
}

/* Ventana del Mapa Iframe */
.tdf-tsunami-map-frame-box {
  width: 100%;
  height: 580px;
  background: var(--brand-dark);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.tdf-tsunami-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Puerta de carga voluntaria / protección táctil */
.tdf-tsunami-gate {
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 32, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tdf-tsunami-gate.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tdf-tsunami-gate-card {
  max-width: 480px;
  background: var(--brand-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px 24px;
  color: #FFFFFF;
}

.tdf-tsunami-gate-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF5E1A 0%, #FF8A3D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px -4px rgba(255, 94, 26, 0.45);
}

.tdf-tsunami-gate-h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.tdf-tsunami-gate-p {
  font-size: 14px;
  color: var(--text-slate-300);
  margin: 0 0 20px;
  line-height: 1.5;
}

/* Leyenda del Mapa */
.tdf-tsunami-map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #E2E8F0;
  font-size: 13px;
  color: var(--text-slate-800);
  font-weight: 600;
}

.tdf-tsunami-legend-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tdf-tsunami-dot-sector {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--brand-dark);
}

.tdf-tsunami-dot-safe {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #10B981;
}

.tdf-tsunami-dot-foot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--brand-accent1);
}

/* ==========================================================================
   4. GUÍA COMPACTA CON PESTAÑAS (CÓMO PARTICIPAR / ETAPAS / ESCUELAS)
   ========================================================================== */
.tdf-tsunami-guide-section {
  background-color: #FFFFFF;
  padding: 64px 16px 80px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.tdf-tsunami-guide-container {
  max-width: 1040px;
  margin: 0 auto;
}

.tdf-tsunami-tablist {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tdf-tsunami-tablist::-webkit-scrollbar {
  display: none;
}

.tdf-tsunami-tab-btn {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-slate-600);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  margin-bottom: -2px;
}

.tdf-tsunami-tab-btn:hover {
  color: var(--brand-dark);
}

.tdf-tsunami-tab-btn[aria-selected="true"] {
  color: var(--brand-accent1);
  border-bottom-color: var(--brand-accent1);
  font-weight: 700;
}

.tdf-tsunami-tab-btn:focus-visible {
  outline: 3px solid var(--brand-accent1);
  outline-offset: 2px;
}

.tdf-tsunami-tabpanel {
  display: none;
  animation: tdf-fade 0.2s ease-in-out;
}

.tdf-tsunami-tabpanel.is-active {
  display: block;
}

@keyframes tdf-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grilla de 3 tarjetas idénticas al HTML */
.tdf-tsunami-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .tdf-tsunami-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tdf-tsunami-step-card {
  background: var(--brand-light);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  display: flex;
  flex-direction: column;
}

.tdf-tsunami-step-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-accent1);
  background: #FFEDD5;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.tdf-tsunami-step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 8px;
}

.tdf-tsunami-step-desc {
  color: var(--text-slate-600);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

.tdf-tsunami-step-desc strong {
  color: var(--brand-dark);
}

/* Tarjetas de Etapas (Fondo oscuro) */
.tdf-tsunami-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .tdf-tsunami-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.tdf-tsunami-stage-card-dark {
  background: var(--brand-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 28px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tdf-tsunami-stage-card-accent {
  background: linear-gradient(180deg, var(--brand-surface) 0%, var(--brand-charcoal) 100%);
  border: 1px solid rgba(255, 94, 26, 0.4);
  border-radius: 24px;
  padding: 28px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tdf-tsunami-stage-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.tdf-tsunami-stage-badge-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tdf-tsunami-stage-badge-gradient {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF5E1A 0%, #FF8A3D 100%);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -4px rgba(255, 94, 26, 0.45);
}

.tdf-tsunami-stage-tagline {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-slate-400);
  font-weight: 600;
  display: block;
}

.tdf-tsunami-stage-tagline-accent {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-accent2);
  font-weight: 600;
  display: block;
}

.tdf-tsunami-stage-h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 2px 0 0;
}

.tdf-tsunami-stage-desc {
  color: var(--text-slate-300);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.tdf-tsunami-stage-desc strong {
  color: #FFFFFF;
}

.tdf-tsunami-stage-notice-school {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  font-size: 13px;
  color: var(--text-slate-300);
}

.tdf-tsunami-stage-notice-school strong {
  color: var(--brand-accent2);
  display: block;
  margin-bottom: 4px;
}

.tdf-tsunami-stage-notice-alarm {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 16px;
  font-size: 13px;
  color: #FDE68A;
}

.tdf-tsunami-stage-notice-alarm strong {
  color: #FCD34D;
  display: block;
  margin-bottom: 4px;
}

/* ==========================================================================
   5. PREGUNTAS FRECUENTES EN ACORDEONES
   ========================================================================== */
.tdf-tsunami-faq-section {
  padding: 64px 16px;
  max-width: 760px;
  margin: 0 auto;
}

.tdf-tsunami-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.tdf-tsunami-faq-item {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.tdf-tsunami-faq-summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--brand-dark);
}

.tdf-tsunami-faq-summary::-webkit-details-marker {
  display: none;
}

.tdf-tsunami-faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--brand-accent1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.tdf-tsunami-faq-item[open] .tdf-tsunami-faq-chevron {
  transform: rotate(180deg);
}

.tdf-tsunami-faq-body {
  padding: 0 20px 20px;
  color: var(--text-slate-600);
  font-size: 14.5px;
  line-height: 1.6;
}

.tdf-tsunami-faq-body strong {
  color: var(--brand-dark);
}

/* ==========================================================================
   6. GESTIÓN DEL RIESGO / INFORMACIÓN INSTITUCIONAL
   ========================================================================== */
.tdf-tsunami-policy-section {
  padding: 0 16px 64px;
  max-width: 1040px;
  margin: 0 auto;
}

.tdf-tsunami-policy-box {
  background: var(--brand-charcoal);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .tdf-tsunami-policy-box {
    padding: 48px;
  }
}

.tdf-tsunami-policy-header {
  max-width: 700px;
  margin-bottom: 36px;
}

.tdf-tsunami-policy-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  margin: 8px 0 12px;
}

.tdf-tsunami-policy-lead {
  color: var(--text-slate-300);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.tdf-tsunami-policy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .tdf-tsunami-policy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tdf-tsunami-policy-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
}

.tdf-tsunami-policy-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF5E1A 0%, #FF8A3D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px -4px rgba(255, 94, 26, 0.45);
}

.tdf-tsunami-policy-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
  color: #FFFFFF;
}

.tdf-tsunami-policy-card-desc {
  color: var(--text-slate-300);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Antecedente histórico integrado */
.tdf-tsunami-history-alert {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  color: var(--text-slate-300);
  line-height: 1.55;
}

.tdf-tsunami-history-alert strong {
  color: #FFFFFF;
}

/* ==========================================================================
   7. CIERRE Y ENCUESTA
   ========================================================================== */
.tdf-tsunami-close-section {
  padding: 20px 16px 64px;
  max-width: 960px;
  margin: 0 auto;
}

.tdf-tsunami-close-banner {
  background: linear-gradient(135deg, #FF5E1A 0%, #FF8A3D 100%);
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(255, 94, 26, 0.35);
  color: #FFFFFF;
}

.tdf-tsunami-close-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 10px;
}

.tdf-tsunami-close-p {
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 580px;
  font-size: 15px;
  line-height: 1.6;
}

.tdf-tsunami-survey-btn {
  display: inline-block;
  background: var(--brand-dark);
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  cursor: not-allowed;
  opacity: 0.9;
}

/* Teléfonos y Redes */
.tdf-tsunami-footer-contacts {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tdf-tsunami-contact-pill {
  background: rgba(30, 37, 48, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-slate-300);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tdf-tsunami-contact-pill strong {
  color: #FFFFFF;
  font-weight: 700;
}

.tdf-tsunami-contact-pill:hover,
.tdf-tsunami-contact-pill:focus-visible {
  background: var(--brand-dark);
  color: #FFFFFF;
  border-color: var(--brand-accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  outline: none;
}

.tdf-tsunami-contact-pill:active {
  transform: translateY(0);
}

.tdf-tsunami-contact-icon {
  font-size: 14px;
  display: inline-block;
  opacity: 0.9;
}

/* ==========================================================================
   RESPONSIVE DESIGN & ACCESIBILIDAD
   ========================================================================== */
@media (max-width: 640px) {
  .tdf-tsunami-cd-box {
    gap: 8px;
  }
  .tdf-tsunami-cd-card {
    padding: 10px 4px;
  }
  .tdf-tsunami-map-frame-box {
    height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tdf-tsunami *,
  .tdf-tsunami *::before,
  .tdf-tsunami *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Contenedor de la Imagen del Mapa */
.tdf-tsunami-map-image-box {
  width: 100%;
  background: var(--brand-dark);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.tdf-tsunami-map-link {
  display: block;
  position: relative;
  cursor: zoom-in;
  text-decoration: none;
}

.tdf-tsunami-map-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 680px;
  object-fit: contain;
  background-color: #141920;
}

.tdf-tsunami-map-zoom-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(20, 25, 32, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.tdf-tsunami-map-link:hover .tdf-tsunami-map-zoom-badge {
  background: var(--brand-accent1);
  border-color: var(--brand-accent1);
  transform: translateY(-2px);
}

/* Modal de ampliación */
.tdf-tsunami-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tdf-tsunami-modal[hidden] {
  display: none !important;
}

.tdf-tsunami-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 20, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tdf-tsunami-modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  background: var(--brand-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.tdf-tsunami-modal-img {
  max-width: 100%;
  max-height: calc(85vh - 70px);
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.tdf-tsunami-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 20;
}

.tdf-tsunami-modal-close:hover {
  background: var(--brand-accent1);
  border-color: var(--brand-accent1);
}

.tdf-tsunami-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-slate-300);
  font-size: 13px;
  flex-wrap: wrap;
}


/* ==========================================================================
   TABLA DE REFERENCIAS EN TEXTO WEB CLARO Y NÍTIDO
   ========================================================================== */
.tdf-tsunami-references-box {
  margin-top: 24px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.tdf-tsunami-ref-details {
  border: 0;
}

.tdf-tsunami-ref-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  background: var(--brand-charcoal);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  user-select: none;
  -webkit-user-select: none;
}

.tdf-tsunami-ref-summary::-webkit-details-marker {
  display: none;
}

.tdf-tsunami-ref-summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tdf-tsunami-ref-chevron {
  font-size: 12px;
  color: var(--brand-accent2);
  transition: transform 0.2s ease;
}

.tdf-tsunami-ref-details[open] .tdf-tsunami-ref-chevron {
  transform: rotate(180deg);
}

.tdf-tsunami-ref-content {
  padding: 24px 20px;
  background: #FFFFFF;
}

.tdf-tsunami-ref-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 860px) {
  .tdf-tsunami-ref-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tdf-tsunami-ref-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #F1F5F9;
}

.tdf-tsunami-ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tdf-tsunami-ref-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-slate-600);
  margin-bottom: 12px;
}

.tdf-tsunami-ref-list li strong {
  color: var(--brand-dark);
}

.tdf-tsunami-ref-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.tdf-tsunami-ref-abbr {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-slate-600);
  background: #F8FAFC;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  margin-bottom: 16px;
}

.tdf-tsunami-ref-credits {
  font-size: 12px;
  line-height: 1.5;
  color: #64748B;
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  padding: 12px;
  border-radius: 12px;
}

.tdf-tsunami-ref-credits strong {
  color: #9A3412;
}
