/* esTenerife · Mapa sísmico de Canarias (3.14.1) · claro, a todo lo ancho */
.etsm { --ink: #0b1730; --ink2: #34415c; --mute: #66728a; --line: rgba(11,23,48,.09); --glass: rgba(255,255,255,.9); --acc: #33519F; --sh: 0 1px 2px rgba(16,32,64,.06), 0 14px 34px -16px rgba(16,32,64,.32); --side: 360px;
  position: relative; display: block; width: 100vw; margin: 0 0 48px calc(50% - 50vw); height: clamp(620px, calc(100vh - 110px), 880px); background: #eef2f6; color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.etsm *, .etsm *::before, .etsm *::after { box-sizing: border-box; }
.etsm button { font-family: inherit; }
.etsm__stage { position: absolute; inset: 0; }
.etsm .etsm__map, .etsm .etsm__map.maplibregl-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.etsm__map .maplibregl-canvas { outline: none; }
.etsm .maplibregl-ctrl-bottom-right { right: calc(var(--side) + 40px); bottom: 2px; }
.etsm .maplibregl-ctrl-attrib { background: rgba(255,255,255,.72) !important; color: var(--mute); font-size: 10px; border-radius: 999px; }
.etsm .maplibregl-ctrl-attrib a { color: var(--ink2); }
.etsm .maplibregl-ctrl-attrib.maplibregl-compact { min-height: 22px; }
/* velos de lectura */
.etsm__stage::before { content: ''; position: absolute; z-index: 1; left: 0; top: 0; width: min(760px, 70%); height: 300px; pointer-events: none; background: radial-gradient(120% 100% at 0 0, rgba(244,247,251,.94) 0, rgba(244,247,251,.7) 42%, rgba(244,247,251,0) 75%); }
.etsm__stage::after { content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none; background: linear-gradient(0deg, rgba(244,247,251,.85), rgba(244,247,251,0)); }
/* cabecera */
.etsm__top { position: absolute; z-index: 3; top: 30px; left: max(28px, calc((100% - 1240px) / 2 + 24px)); max-width: 640px; pointer-events: none; }
.etsm__top > * { pointer-events: auto; }
.etsm__kick { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.etsm__live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #EF3B3B; }
.etsm__live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #EF3B3B; opacity: 0; animation: etsmLive 2.2s ease-out infinite; }
@keyframes etsmLive { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.etsm__title { margin: 10px 0 8px; font-size: clamp(30px, 3vw, 42px); line-height: 1.02; font-weight: 800; letter-spacing: -.028em; color: var(--ink); }
.etsm__head { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.etsm__head b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.etsm__sep { display: inline-block; width: 1px; height: 12px; margin: 0 10px; background: rgba(11,23,48,.2); vertical-align: -1px; }
.etsm__isls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.etsm__isls button { appearance: none; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.82); color: var(--ink2); font-size: 12.5px; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .18s, color .18s, border-color .18s, box-shadow .18s; white-space: nowrap; }
.etsm__isls button:hover { border-color: rgba(11,23,48,.22); color: var(--ink); }
.etsm__isls button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(11,23,48,.6); }
/* barra superior derecha */
.etsm__bar { position: absolute; z-index: 4; top: 30px; right: calc(var(--side) + 44px); display: flex; align-items: center; gap: 10px; }
.etsm__seg { display: inline-flex; flex-shrink: 0; padding: 3px; border-radius: 999px; background: #f0f3f8; }
.etsm__seg button { appearance: none; border: 0; margin: 0; height: 34px; padding: 0 15px; border-radius: 999px; background: transparent; color: var(--mute); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.etsm__seg button:hover { color: var(--ink); }
.etsm__seg button.is-on { background: var(--ink); color: #fff; }
.etsm__dlw { position: relative; }
.etsm__dl { appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: var(--sh); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .18s, transform .18s; }
.etsm__dl:hover { background: #fff; transform: translateY(-1px); }
.etsm__dl svg { width: 18px; height: 18px; }
.etsm__dl[disabled] { opacity: .7; cursor: progress; }
.etsm.is-busy .etsm__dl span::after { content: '…'; }
.etsm__menu { position: absolute; right: 0; top: 48px; width: 292px; padding: 8px; border-radius: 10px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(16,32,64,.45); z-index: 6; }
.etsm__menu[hidden] { display: none; }
.etsm__menu b { display: block; padding: 8px 10px 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.etsm__menu button { appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.etsm__menu button:hover { background: #f1f4f9; }
.etsm__menu button small { margin-left: auto; color: var(--mute); font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.etsm__menu i { display: block; flex-shrink: 0; border: 1.6px solid var(--acc); border-radius: 2px; }
.etsm__menu p { margin: 6px 10px 4px; font-size: 12px; line-height: 1.45; color: var(--mute); }
/* herramientas */
.etsm__tools { position: absolute; z-index: 3; right: calc(var(--side) + 44px); bottom: 150px; display: flex; flex-direction: column; border-radius: 10px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--sh); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
.etsm__tool { appearance: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink2); cursor: pointer; padding: 0; transition: background .15s, color .15s; }
.etsm__tool:last-child { border-bottom: 0; }
.etsm__tool:hover { background: #f1f4f9; color: var(--ink); }
.etsm__tool svg { width: 18px; height: 18px; }
/* pie: leyenda + tiempo */
.etsm__foot { position: absolute; z-index: 3; left: max(28px, calc((100% - 1240px) / 2 + 24px)); right: calc(var(--side) + 44px); bottom: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.etsm__legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 9px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--sh); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12px; color: var(--mute); }
.etsm__legend b { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
.etsm__legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.etsm__legend i { display: inline-block; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(11,23,48,.12); }
.etsm__legend em { font-style: normal; color: var(--mute); font-weight: 500; font-variant-numeric: tabular-nums; }
.etsm__lring { padding-left: 14px; border-left: 1px solid var(--line); }
.etsm__lring i { width: 13px; height: 13px; background: transparent; border: 1.6px solid #F5B400 !important; box-shadow: 0 0 0 3px rgba(245,180,0,.18) !important; }
.etsm__time { align-self: stretch; display: flex; align-items: center; gap: 18px; height: 66px; padding: 0 12px 0 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--sh); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.etsm__play { appearance: none; flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; padding: 0; transition: transform .15s, background .15s; }
.etsm__play:hover { transform: scale(1.05); background: var(--acc); }
.etsm__play svg { width: 16px; height: 16px; }
.etsm__play .p2 { display: none; }
.etsm.is-playing .etsm__play .p1 { display: none; }
.etsm.is-playing .etsm__play .p2 { display: block; }
.etsm__tl { position: relative; flex: 1; height: 50px; cursor: ew-resize; touch-action: none; }
.etsm__tl svg { display: block; width: 100%; height: 38px; overflow: visible; }
.etsm__tbase { stroke: rgba(11,23,48,.16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.etsm__ttk { stroke: rgba(11,23,48,.2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.etsm__tcur { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.etsm__tfut { fill: rgba(238,242,246,.7); }
.etsm__tlab { position: absolute; left: 0; right: 0; bottom: -1px; height: 12px; font-size: 10.5px; font-weight: 500; color: var(--mute); pointer-events: none; }
.etsm__tlab span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.etsm__tlab span:first-letter { text-transform: uppercase; }
/* rótulos del mapa */
.etsm__isl { font: 700 11px/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: rgba(11,23,48,.62); text-shadow: 0 0 3px #fff, 0 0 6px #fff, 0 0 10px rgba(255,255,255,.9); pointer-events: none; white-space: nowrap; }
.etsm__cap { display: flex; align-items: center; gap: 6px; font: 600 11.5px/1 Inter, sans-serif; color: var(--ink2); text-shadow: 0 0 3px #fff, 0 0 6px #fff; pointer-events: none; white-space: nowrap; transition: opacity .3s; }
.etsm__cap::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--ink2); }
.etsm.z-lo .etsm__cap { opacity: 0 !important; visibility: hidden; }
.etsm.z-hi .etsm__isl { opacity: 0 !important; visibility: hidden; }
.etsm__wave { width: var(--s); height: var(--s); border-radius: 50%; border: 2px solid var(--c); animation: etsmWave 1.25s cubic-bezier(.2,.7,.3,1) forwards; pointer-events: none; }
@keyframes etsmWave { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
/* ficha */
.etsm__card { position: absolute; z-index: 5; left: max(28px, calc((100% - 1240px) / 2 + 24px)); top: 250px; width: 344px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.96); border: 1px solid var(--line); box-shadow: 0 30px 60px -26px rgba(16,32,64,.5); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; animation: etsmIn .28s ease-out; }
.etsm__card[hidden] { display: none; }
@keyframes etsmIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.etsm__x { position: absolute; top: 8px; right: 8px; appearance: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #f1f4f9; color: var(--ink2); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.etsm__x:hover { background: #e4e9f1; color: var(--ink); }
.etsm__cmag { width: 66px; height: 66px; border-radius: 10px; display: grid; place-content: center; text-align: center; background: var(--c); color: #fff; }
.etsm__cmag.is-amb { color: #241a00; }
.etsm__cmag b { font-size: 27px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.etsm__cmag span { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .78; margin-top: 4px; }
.etsm__cbody { min-width: 0; padding-right: 26px; }
.etsm__ccls { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.etsm__card h3 { margin: 4px 0 4px; font-size: 16.5px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.etsm__cwhen { margin: 0; font-size: 12.5px; color: var(--mute); }
.etsm__cdl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.etsm__cdl dt { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.etsm__cdl dd { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
/* panel lateral */
.etsm__side { position: absolute; z-index: 4; top: 22px; right: 22px; bottom: 22px; width: var(--side); display: flex; flex-direction: column; min-height: 0; border-radius: 14px; background: rgba(255,255,255,.94); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,32,64,.06), 0 30px 60px -28px rgba(16,32,64,.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; }
.etsm__sh { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 20px 12px; border-bottom: 1px solid var(--line); }
.etsm__sh h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.etsm__sh span { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.etsm__list { list-style: none; margin: 0; padding: 6px 8px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(11,23,48,.18) transparent; }
.etsm__row { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 8px; cursor: pointer; transition: background .15s; outline: none; }
.etsm__row + .etsm__row::before { content: ''; position: absolute; left: 64px; right: 10px; top: 0; height: 1px; background: var(--line); }
.etsm__row:hover, .etsm__row.is-hov, .etsm__row:focus-visible { background: #f2f5f9; }
.etsm__row:hover::before, .etsm__row.is-hov::before, .etsm__row.is-sel::before, .etsm__row:hover + .etsm__row::before, .etsm__row.is-sel + .etsm__row::before { opacity: 0; }
.etsm__row.is-sel { background: #e9eef7; }
.etsm__rmag { flex-shrink: 0; width: 42px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: var(--c); color: #fff; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.etsm__rmag.is-amb { color: #241a00; }
.etsm__rtxt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.etsm__rtxt b { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etsm__rtxt small { font-size: 11.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.etsm__new { flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #b42318; background: #fde8e6; padding: 3px 7px; border-radius: 999px; }
.etsm__none { padding: 22px 12px; font-size: 13px; color: var(--mute); }
.etsm__dep { padding: 14px 20px 6px; border-top: 1px solid var(--line); }
.etsm__dep h4 { margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 800; color: var(--ink); }
.etsm__dep h4 span { font-weight: 500; color: var(--mute); font-size: 11.5px; }
.etsm__dep svg { display: block; width: 100%; height: auto; }
.etsm__dep circle { cursor: pointer; }
.etsm__dgl { stroke: rgba(11,23,48,.08); stroke-width: 1; }
.etsm__dtk { stroke: rgba(11,23,48,.25); stroke-width: 1; }
.etsm__dtx { fill: var(--mute); font: 500 8.5px Inter, sans-serif; }
.etsm__dis { fill: var(--ink2); font: 700 8.5px Inter, sans-serif; letter-spacing: .06em; }
.etsm__src { margin: 0; padding: 4px 20px 16px; font-size: 11px; color: var(--mute); }
/* aviso */
.etsm__toast { position: absolute; z-index: 9; left: 50%; top: 24px; transform: translate(-50%, -8px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 18px 40px -16px rgba(11,23,48,.6); }
.etsm__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
/* pantalla completa */
.etsm:fullscreen { width: 100vw; height: 100vh; margin: 0; border: 0; }
.etsm.is-full { position: fixed; inset: 0; z-index: 99999; width: 100vw; height: 100vh; margin: 0; }
/* ── pantallas medianas ─────────────────────────────────────── */
@media (max-width: 1280px) and (min-width: 901px) {
  .etsm { --side: 320px; }
  .etsm__legend em { display: none; }
}
/* ── móvil ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .etsm { height: auto; overflow: visible; background: #fff; border-bottom: 0; margin-bottom: 36px; }
  .etsm__stage { position: relative; inset: auto; height: min(86svh, 730px); min-height: 600px; overflow: hidden; }
  .etsm__stage::before { width: 100%; height: 290px; background: linear-gradient(180deg, rgba(244,247,251,.95) 0, rgba(244,247,251,.75) 55%, rgba(244,247,251,0)); }
  .etsm__top { top: 16px; left: 16px; right: 16px; max-width: none; }
  .etsm__kick { font-size: 10px; }
  .etsm__title { font-size: 25px; margin: 6px 0 4px; }
  .etsm__head { font-size: 12.5px; }
  .etsm__isls { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .etsm__isls::-webkit-scrollbar { display: none; }
  .etsm__isls button { height: 30px; font-size: 12px; flex-shrink: 0; }
  .etsm__top .etsm__seg { display: flex; width: max-content; margin-top: 10px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--sh); }
  .etsm__seg button { height: 30px; padding: 0 13px; font-size: 12px; }
  .etsm__bar { top: 12px; right: 12px; }
  .etsm__dl { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .etsm__dl span { display: none; }
  .etsm__menu { top: 48px; right: 0; width: min(292px, calc(100vw - 24px)); }
  .etsm__tools { display: none; }
  .etsm__foot { left: 12px; right: 12px; bottom: 12px; gap: 8px; }
  .etsm__legend { gap: 4px 10px; padding: 7px 11px; font-size: 11px; }
  .etsm__legend b, .etsm__legend em { display: none; }
  .etsm__legend span { gap: 5px; }
  .etsm__lring { display: none !important; }
  .etsm__time { height: 58px; padding: 0 14px 0 8px; gap: 10px; }
  .etsm__play { width: 40px; height: 40px; }
  .etsm__card { left: 12px; right: 12px; top: auto; bottom: 120px; width: auto; }
  .etsm .maplibregl-ctrl-bottom-right { right: 12px; bottom: 112px; }
  .etsm__side { position: relative; inset: auto; width: auto; margin: 0 16px; border-radius: 0; background: #fff; box-shadow: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .etsm__sh { padding: 22px 4px 12px; }
  .etsm__list { max-height: 420px; padding: 4px 0; }
  .etsm__dep { padding: 16px 4px 6px; }
  .etsm__src { padding: 4px 4px 0; }
  .etsm__isl { font-size: 9.5px; letter-spacing: .14em; }
}
@media (prefers-reduced-motion: reduce) { .etsm__card, .etsm__wave, .etsm__live::after { animation: none; } }
