/* ===== Probador de zonas seguras =====
   Diseño solo de esta herramienta. Se carga después de /assets/style.css. */
.zs { padding: 40px 16px 80px; }
.zs h1 { font-size: clamp(28px, 5vw, 40px); margin: 16px 0 8px; letter-spacing: -.02em; }
.zs .lead { max-width: 780px; }
.zs-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.zs-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.zs-drop { aspect-ratio: auto; min-height: 150px; }
.zs-file { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.zs-file b { word-break: break-all; }
.zs-file .hint { display: block; margin: 2px 0 0; }
.zs-play { display: flex; align-items: center; gap: 10px; }
.zs-play .btn { width: auto; flex-shrink: 0; }
.zs-play input[type=range] { flex: 1; min-width: 0; accent-color: var(--brand); }
.zs-opts { display: grid; gap: 8px; }
.zs-opts .check { margin: 0; font-weight: 400; font-size: 15px; }
.zs-tips { display: grid; gap: 8px; }
.zs-tips:empty { display: none; }
.zs-tip { display: flex; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.zs-tip > span:first-child { flex-shrink: 0; }
.zs-tip a { color: var(--brand-2); font-weight: 600; }

.zs-seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.zs-seg button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line);
                 border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.zs-seg button.active { color: var(--text); border-color: var(--brand); background: rgba(98, 70, 234, .12); }
.zs-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.zs-phones.single { grid-template-columns: minmax(0, 340px); justify-content: center; }
.zs-phone { min-width: 0; }
.zs-phone[hidden] { display: none !important; }
.zs-name { font-weight: 700; text-align: center; margin-bottom: 8px; }
.zs-frame { background: #111; border-radius: 26px; padding: 8px; box-shadow: var(--shadow); }
.zs-screen { position: relative; aspect-ratio: 9 / 16; background: #000; border-radius: 18px; overflow: hidden; container-type: inline-size; }
.zs-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.zs-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12%;
            color: #9aa3b2; font-size: 4.6cqw; background: linear-gradient(160deg, #1f2433, #0e1018); }
.zs-note { margin-top: 12px; }

/* Zonas tapadas y zona segura */
.zs-zone { position: absolute; background: repeating-linear-gradient(135deg, rgba(239, 68, 68, .42) 0 6px, rgba(239, 68, 68, .26) 6px 12px);
           pointer-events: none; }
.zs-zone.light { background: rgba(239, 68, 68, .18); }
.zs-safe { position: absolute; border: 2px dashed rgba(52, 211, 153, .95); border-radius: 4px; pointer-events: none; }
.zs-safe span { position: absolute; top: 4px; left: 4px; font-size: 3.6cqw; font-weight: 700; color: #fff; background: rgba(5, 150, 105, .9);
                padding: .2em .5em; border-radius: 4px; }
.zs-phones.no-zones .zs-zone, .zs-phones.no-zones .zs-safe { display: none; }

/* Botones y textos simulados de cada app (aproximados, genéricos) */
.zs-ui { position: absolute; inset: 0; pointer-events: none; color: #fff; font-family: Inter, Arial, sans-serif; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.zs-phones.no-ui .zs-ui { display: none; }
.zs-el { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: .6cqw; }
.zs-el svg { width: 8cqw; height: 8cqw; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.zs-el small { font-size: 3.1cqw; font-weight: 600; white-space: nowrap; }
.zs-txt { position: absolute; left: 4%; right: 20%; font-size: 3.6cqw; line-height: 1.35; }
.zs-txt b { font-size: 3.9cqw; }
.zs-txt .dim { opacity: .85; }
.zs-av { width: 9cqw; height: 9cqw; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ec4899); border: .5cqw solid #fff; }
.zs-av.sm { width: 6.5cqw; height: 6.5cqw; border-width: .3cqw; display: inline-block; vertical-align: middle; margin-right: 1.5cqw; }
.zs-pill { display: inline-block; font-size: 3.2cqw; font-weight: 700; padding: .5cqw 2.4cqw; border-radius: 99px; border: .3cqw solid rgba(255, 255, 255, .8);
           margin-left: 2cqw; vertical-align: middle; text-shadow: none; }
.zs-pill.white { background: #fff; color: #111; border-color: #fff; }
.zs-top { position: absolute; top: 4.5%; left: 0; right: 0; display: flex; justify-content: center; gap: 5cqw; font-size: 4.2cqw; font-weight: 700; transform: translateY(-50%); }
.zs-top .dim { opacity: .7; }
.zs-top .sel { border-bottom: .6cqw solid #fff; padding-bottom: .6cqw; }
.zs-disc { width: 8.5cqw; height: 8.5cqw; border-radius: 50%; background: radial-gradient(circle, #555 0 22%, #222 23% 100%); border: 1.6cqw solid #333; }
.zs-sq { width: 8cqw; height: 8cqw; border-radius: 2cqw; background: linear-gradient(135deg, #6366f1, #06b6d4); border: .4cqw solid #fff; }
.zs-bar { position: absolute; left: 0; right: 0; bottom: 0; height: .8cqw; background: rgba(255, 255, 255, .35); }
.zs-bar::before { content: ""; display: block; width: 35%; height: 100%; background: #f00; }

@media (max-width: 900px) {
  .zs-layout { grid-template-columns: minmax(0, 1fr); }
  .zs-side { position: static; }
}
@media (max-width: 700px) {
  .zs-phones { grid-template-columns: minmax(0, 300px); justify-content: center; }
}
