/********** Recursos de seguridad (recursos-tecnologicos-seguridad.html) **********/

/*** Accesos rápidos ***/
.sx-jump-wrap { position: relative; z-index: 3; margin-top: -34px; }
.sx-jump { display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: #fff; box-shadow: 0 14px 40px rgba(20, 24, 62, .14); overflow-x: auto; }
.sx-jump a { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; color: var(--dark); font-family: 'Ubuntu', sans-serif; font-weight: 500; white-space: nowrap; transition: background .25s, color .25s; }
.sx-jump a i { color: var(--secondary); }
.sx-jump a:hover, .sx-jump a:focus-visible { background: var(--primary); color: #fff; }
.sx-jump a:hover i, .sx-jump a:focus-visible i { color: #fff; }

/*** Base de herramientas ***/
.sx-tool { border-radius: 24px; background: #fff; box-shadow: 0 18px 45px rgba(20, 24, 62, .12); overflow: hidden; }
.sx-field { margin-bottom: 16px; }
.sx-field > label { display: block; margin-bottom: 6px; font-family: 'Ubuntu', sans-serif; font-weight: 500; color: var(--dark); }

.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: none; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 600; transition: transform .2s, box-shadow .2s, opacity .2s; }
.sx-btn:hover:not(:disabled), .sx-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(19, 99, 198, .3); }
.sx-btn:disabled { opacity: .5; cursor: not-allowed; }
.sx-btn--ghost { background: #fff; color: var(--primary); border: 1px solid #cdd8f2; }

/*** Escáner ***/
.sx-scan-panel { height: 100%; padding: 28px; border-right: 1px solid #e6ecf8; }
.sx-ip { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 2px solid #dfe6f6; border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.sx-ip:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(19, 99, 198, .12); }
.sx-ip i { color: var(--secondary); }
.sx-ip input { flex: 1; min-width: 0; padding: 14px 0; border: none; outline: none; background: transparent; font-size: 18px; color: var(--dark); }
.sx-ip.is-valid { border-color: #1fa971; }
.sx-ip.is-invalid { border-color: #e5484d; }
.sx-ip-msg { display: block; min-height: 18px; margin-top: 4px; font-size: 12.5px; color: #e5484d; }

.sx-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sx-mode { position: relative; }
.sx-mode input { position: absolute; opacity: 0; }
.sx-mode span { display: flex; flex-direction: column; height: 100%; padding: 14px; border: 2px solid #e6ecf8; border-radius: 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.sx-mode i { margin-bottom: 6px; color: var(--secondary); font-size: 18px; }
.sx-mode strong { color: var(--dark); font-family: 'Ubuntu', sans-serif; }
.sx-mode small { color: #6b7394; }
.sx-mode input:checked + span { border-color: var(--primary); background: rgba(19, 99, 198, .05); }
.sx-mode input:focus-visible + span { box-shadow: 0 0 0 3px rgba(19, 99, 198, .25); }

.sx-auth { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; background: #fff6e8; font-size: 13.5px; cursor: pointer; }
.sx-auth input { margin-top: 3px; accent-color: var(--primary); }

.sx-progress { height: 6px; margin-bottom: 10px; border-radius: 999px; background: #e9eef9; overflow: hidden; }
.sx-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .4s ease; }

.sx-terminal { height: 260px; padding: 16px; border-radius: 16px; background: #0b1230; color: #b8f7d4; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.6; overflow-y: auto; }
.sx-terminal p { margin: 0; }
.sx-t-muted { color: #7f8bb3; }
.sx-t-info { color: #67d4ff; }
.sx-t-warn { color: #ffcf6e; }
.sx-t-err { color: #ff8a8a; }
.sx-t-ok { color: #52e3a4; }

.sx-report { display: flex; flex-direction: column; height: 100%; padding: 28px; }
.sx-report.is-empty .sx-report-head, .sx-report.is-empty .sx-counts { opacity: .45; }
.sx-report-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.sx-ring { position: relative; flex: none; width: 104px; height: 104px; }
.sx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sx-ring-bg { fill: none; stroke: #e9eef9; stroke-width: 10; }
.sx-ring-fg { fill: none; stroke: #c9d3ea; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1s ease, stroke .4s; }
.sx-ring-num { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.sx-ring-num b { font-family: 'Ubuntu', sans-serif; font-size: 28px; color: var(--dark); }
.sx-ring-num span { font-size: 12px; color: #8a92b2; }
.sx-level { display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: 999px; background: var(--light); color: #6b7394; font-size: 13px; font-weight: 700; }
.sx-level.is-ok { background: rgba(31, 169, 113, .12); color: #137a51; }
.sx-level.is-warn { background: rgba(245, 158, 11, .14); color: #9a5b00; }
.sx-level.is-bad { background: rgba(229, 72, 77, .12); color: #b4232a; }
.sx-os { display: flex; align-items: center; gap: 8px; color: var(--dark); font-weight: 600; }
.sx-os i { color: var(--primary); }
.sx-target { color: #8a92b2; }

.sx-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.sx-counts div { padding: 10px 6px; border-radius: 12px; background: var(--light); text-align: center; }
.sx-counts b { display: block; font-family: 'Ubuntu', sans-serif; font-size: 20px; }
.sx-counts span { font-size: 11.5px; color: #6b7394; }
.sx-counts .is-crit b { color: #b4232a; }
.sx-counts .is-high b { color: #e5484d; }
.sx-counts .is-med b { color: #d98a00; }
.sx-counts .is-low b { color: #1fa971; }

.sx-ports { flex: 1; max-height: 320px; margin-bottom: 16px; overflow-y: auto; }
.sx-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 10px; color: #8a92b2; text-align: center; font-size: 14px; }
.sx-empty i { font-size: 24px; color: #c9d3ea; }

.sx-port { margin-bottom: 8px; border: 1px solid #e6ecf8; border-left: 4px solid #c9d3ea; border-radius: 12px; animation: sx-in .35s ease; }
.sx-port.r-critical { border-left-color: #b4232a; }
.sx-port.r-high { border-left-color: #e5484d; }
.sx-port.r-medium { border-left-color: #f59e0b; }
.sx-port.r-low { border-left-color: #1fa971; }
.sx-port summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.sx-port summary::-webkit-details-marker { display: none; }
.sx-port summary b { font-family: 'Ubuntu', sans-serif; color: var(--dark); }
.sx-port summary .sx-svc { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: #6b7394; }
.sx-port[open] summary { border-bottom: 1px solid #eef2fb; }
.sx-port-body { padding: 10px 12px 12px; font-size: 13.5px; }
.sx-port-body p { margin-bottom: 6px; }
.sx-badge { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; }
.sx-badge.r-critical { background: #b4232a; }
.sx-badge.r-high { background: #e5484d; }
.sx-badge.r-medium { background: #f59e0b; color: #3b2600; }
.sx-badge.r-low { background: #1fa971; }

@keyframes sx-in { from { opacity: 0; transform: translateY(6px); } }

.sx-report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-report-actions .sx-btn { flex: 1 1 auto; }

/*** Cajas de código ***/
.sx-code { position: relative; }
.sx-code pre { max-height: 420px; margin: 0; padding: 16px; border-radius: 14px; background: #0b1230; color: #d6e2ff; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; overflow-y: auto; }
.sx-code-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.sx-code-actions button { padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 12px; }
.sx-code-actions button:hover { background: rgba(255, 255, 255, .2); }
.sx-code-actions button.is-done { background: #1fa971; border-color: #1fa971; }

/*** Generador de firewall ***/
.sx-fw-form { height: 100%; padding: 26px; border-right: 1px solid #e6ecf8; background: #fbfcff; }
.sx-step { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sx-step span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; }
.sx-step h3 { margin: 0; font-size: 16px; }

.sx-iface { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 6px; align-items: center; margin-bottom: 8px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid #e6ecf8; border-left: 4px solid var(--secondary); animation: sx-in .3s ease; }
.sx-iface--wan { border-left-color: #e5484d; }
.sx-iface--mgmt { border-left-color: #f59e0b; }
.sx-iface-tag { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--dark); }
.sx-iface-note { font-size: 12px; color: #8a92b2; }
.sx-iface-del { width: 32px; height: 32px; border: none; border-radius: 8px; background: var(--light); color: #8a92b2; }
.sx-iface-del:hover { background: #fde8e8; color: #e5484d; }

.sx-chip-btn { padding: 6px 12px; border: 1px dashed #b9c6e6; border-radius: 999px; background: #fff; color: var(--primary); font-size: 13px; font-weight: 600; }
.sx-chip-btn:hover { border-style: solid; background: rgba(19, 99, 198, .06); }

.sx-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--light); }
.sx-seg button { padding: 6px 14px; border: none; border-radius: 999px; background: transparent; color: var(--dark); font-size: 13px; font-weight: 600; }
.sx-seg button.is-active { background: var(--primary); color: #fff; }

.sx-opts label { display: flex; gap: 10px; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e6ecf8; cursor: pointer; transition: border-color .2s; }
.sx-opts label:hover { border-color: var(--secondary); }
.sx-opts input { margin-top: 4px; accent-color: var(--primary); }
.sx-opts b { display: block; font-size: 14px; color: var(--dark); }
.sx-opts small { color: #6b7394; font-size: 12.5px; }
.sx-opts .sx-sub { margin-left: 22px; background: var(--light); }
.sx-opts input:disabled + span { opacity: .45; }

.sx-fw-out { height: 100%; padding: 26px; }
.sx-fw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.sx-fw-stats div { padding: 10px; border-radius: 12px; background: var(--dark); color: #fff; text-align: center; }
.sx-fw-stats b { display: block; font-family: 'Ubuntu', sans-serif; font-size: 22px; }
.sx-fw-stats span { font-size: 12px; color: rgba(255, 255, 255, .65); }
.sx-fw-warn p { margin-bottom: 6px; padding: 8px 12px; border-radius: 10px; background: #fff6e8; color: #9a5b00; font-size: 13px; }

.sx-tabs { display: flex; gap: 6px; margin: 6px 0 12px; border-bottom: 1px solid #e6ecf8; overflow-x: auto; }
.sx-tabs button { padding: 10px 14px; border: none; border-bottom: 3px solid transparent; background: transparent; color: #6b7394; font-weight: 600; white-space: nowrap; }
.sx-tabs button.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.sx-tab-panel.is-active { animation: sx-in .3s ease; }

.sx-rule-list { max-height: 460px; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.sx-rule-list li { display: flex; gap: 10px; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px; background: var(--light); border-left: 4px solid #8a92b2; }
.sx-rule-list li.is-accept { border-left-color: #1fa971; }
.sx-rule-list li.is-drop { border-left-color: #e5484d; }
.sx-rule-list li.is-list { border-left-color: #f59e0b; }
.sx-rule-list b { font-size: 14px; color: var(--dark); }
.sx-rule-list p { margin: 2px 0 0; font-size: 13px; }
.sx-chain { flex: none; align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--dark); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; }

.sx-packets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 12px; }
.sx-packet { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e6ecf8; border-radius: 10px; background: #fff; color: var(--dark); font-size: 12.5px; text-align: left; transition: border-color .2s, background .2s; }
.sx-packet i { width: 18px; color: var(--secondary); text-align: center; }
.sx-packet:hover { border-color: var(--secondary); }
.sx-packet.is-active { border-color: var(--primary); background: rgba(19, 99, 198, .06); }

.sx-trace { padding: 14px; border-radius: 14px; background: #0b1230; color: #d6e2ff; }
.sx-trace .sx-empty { color: #7f8bb3; }
.sx-trace-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.sx-trace-head span { color: #7f8bb3; font-size: 12.5px; }
.sx-trace-list { max-height: 260px; margin: 0 0 10px; padding: 0; list-style: none; overflow-y: auto; }
.sx-trace-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; color: #7f8bb3; animation: sx-in .2s ease; }
.sx-trace-list .sx-chain { background: rgba(255, 255, 255, .1); }
.sx-rule-txt { flex: 1; }
.sx-rule-act { font-size: 11.5px; }
.sx-trace-list li.is-hit { color: #fff; background: rgba(255, 255, 255, .08); }
.sx-trace-list li.is-accept .sx-rule-act { color: #52e3a4; font-weight: 700; }
.sx-trace-list li.is-drop .sx-rule-act { color: #ff8a8a; font-weight: 700; }
.sx-trace-list li.is-list .sx-rule-act { color: #ffcf6e; font-weight: 700; }
.sx-verdict { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; animation: sx-in .3s ease; }
.sx-verdict i { font-size: 24px; }
.sx-verdict b { display: block; letter-spacing: 1px; }
.sx-verdict span { font-size: 13px; }
.sx-verdict.is-ok { background: rgba(82, 227, 164, .14); color: #52e3a4; }
.sx-verdict.is-bad { background: rgba(255, 107, 107, .16); color: #ff8a8a; }
.sx-verdict span { color: #d6e2ff; }

/*** Laboratorio ***/
.sx-lab-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.sx-lab-tabs button { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border: 2px solid #e6ecf8; border-radius: 16px; background: #fff; color: var(--dark); font-family: 'Ubuntu', sans-serif; font-weight: 500; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sx-lab-tabs button i { color: var(--secondary); }
.sx-lab-tabs button:hover { transform: translateY(-2px); }
.sx-lab-tabs button.is-active { border-color: var(--primary); box-shadow: 0 10px 24px rgba(19, 99, 198, .15); }
.sx-lab-panel.is-active { animation: sx-in .35s ease; }
.sx-lab-controls { height: 100%; padding: 26px; }

.sx-flood-stage { height: 100%; display: flex; align-items: center; background: radial-gradient(circle at 30% 30%, #16307a 0%, #0d1640 60%, #0a1033 100%); }
.sx-flood-stage svg { display: block; width: 100%; height: auto; font-family: 'Ubuntu', sans-serif; }
.sx-fl-label { fill: #fff; font-size: 15px; font-weight: 500; }
.sx-fl-small { fill: rgba(255, 255, 255, .65); font-size: 12px; }
.sx-fl-src { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .3); }
.sx-fl-box { fill: #fff; stroke: var(--secondary); stroke-width: 2.5; }
.sx-fl-glyph { fill: var(--primary); font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 24px; }
.sx-fl-glyph--sm { font-size: 16px; }
.sx-fl-up .sx-fl-box { stroke: rgba(255, 255, 255, .5); }
.sx-fl-up.is-on .sx-fl-box { stroke: #52e3a4; stroke-width: 4; }
.sx-fl-link { stroke: rgba(79, 195, 255, .45); stroke-width: 6; }
.sx-fl-link--thin { stroke-width: 3; }
.sx-fl-shield { fill: none; stroke: transparent; stroke-width: 4; transition: stroke .3s, fill .3s; }
.sx-fl-shield.is-on { fill: rgba(82, 227, 164, .1); stroke: #52e3a4; stroke-dasharray: 10 6; animation: sx-spin 12s linear infinite; transform-box: fill-box; transform-origin: center; }
.sx-fl-home { fill: #fff; stroke: var(--secondary); stroke-width: 2; }
.sx-fl-dot--ok { fill: #4fc3ff; }
.sx-fl-dot--bad { fill: #ff6b6b; }
.sx-fl-dot--drop { fill: #ffcf6e; }

@keyframes sx-spin { to { transform: rotate(360deg); } }

.sx-gauges > div { display: grid; grid-template-columns: 1fr 52px; gap: 4px 10px; align-items: center; margin-bottom: 10px; }
.sx-gauges span { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--dark); }
.sx-gauge { height: 10px; border-radius: 999px; background: #e9eef9; overflow: hidden; }
.sx-gauge i { display: block; height: 100%; border-radius: inherit; transition: width .5s ease, background .3s; }
.sx-gauge i.is-ok { background: #1fa971; }
.sx-gauge i.is-warn { background: #f59e0b; }
.sx-gauge i.is-bad { background: #e5484d; }
.sx-gauges b { font-size: 13px; text-align: right; }

.sx-quiz { margin: 0; padding: 0; list-style: none; counter-reset: q; }
.sx-quiz li { margin-bottom: 10px; padding: 12px 14px; border: 1px solid #e6ecf8; border-radius: 14px; transition: border-color .2s, background .2s; }
.sx-quiz li p { margin-bottom: 8px; font-size: 14.5px; color: var(--dark); }
.sx-quiz li.v2 { border-color: rgba(31, 169, 113, .4); background: rgba(31, 169, 113, .04); }
.sx-quiz li.v1 { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .05); }
.sx-quiz li.v0 { border-color: rgba(229, 72, 77, .4); background: rgba(229, 72, 77, .04); }
.sx-q-cat { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px; background: var(--light); color: var(--primary); font-size: 11.5px; font-weight: 700; }
.sx-q-opts { display: flex; gap: 6px; }
.sx-q-opts button { padding: 5px 14px; border: 1px solid #d5ddf0; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--dark); }
.sx-q-opts button[data-v="2"].is-active { background: #1fa971; border-color: #1fa971; color: #fff; }
.sx-q-opts button[data-v="1"].is-active { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.sx-q-opts button[data-v="0"].is-active { background: #e5484d; border-color: #e5484d; color: #fff; }

.sx-quiz-out { height: 100%; padding: 26px; border-left: 1px solid #e6ecf8; background: #fbfcff; text-align: center; }
.sx-ring--lg { width: 140px; height: 140px; margin: 0 auto 8px; }
.sx-ring--lg .sx-ring-num b { font-size: 36px; }
.sx-quiz-level { font-family: 'Ubuntu', sans-serif; font-weight: 700; color: var(--dark); }
.sx-cats { margin-bottom: 16px; text-align: left; }
.sx-cats > div { display: grid; grid-template-columns: 90px 1fr 46px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.sx-cats b { text-align: right; }
.sx-quiz-recs { text-align: left; font-size: 13.5px; }
.sx-quiz-recs h4 { font-size: 15px; }
.sx-quiz-recs li { margin-bottom: 6px; }
.sx-q-ok { color: #1fa971; font-weight: 600; }

/*** Guía para ISP ***/
.sx-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sx-filter button { padding: 8px 16px; border: 1px solid #d5ddf0; border-radius: 999px; background: #fff; color: var(--dark); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.sx-filter button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.sx-guide .accordion-item { margin-bottom: 10px; border: 1px solid #e6ecf8; border-radius: 16px !important; overflow: hidden; box-shadow: 0 6px 18px rgba(20, 24, 62, .05); }
.sx-guide .accordion-button { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 18px; font-family: 'Ubuntu', sans-serif; font-weight: 500; color: var(--dark); }
.sx-guide .accordion-button > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--light); color: var(--primary); }
.sx-guide .accordion-button > span { flex: 1; min-width: 180px; }
.sx-guide .accordion-button:not(.collapsed) { background: rgba(19, 99, 198, .05); color: var(--primary); box-shadow: none; }
.sx-guide .accordion-button:not(.collapsed) > i { background: var(--primary); color: #fff; }
.sx-sev, .sx-freq { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-style: normal; font-weight: 700; font-family: 'Open Sans', sans-serif; }
.sx-sev.is-crit { background: rgba(180, 35, 42, .12); color: #b4232a; }
.sx-sev.is-high { background: rgba(229, 72, 77, .12); color: #c4292f; }
.sx-sev.is-med { background: rgba(245, 158, 11, .14); color: #9a5b00; }
.sx-freq { background: var(--light); color: #4a5275; margin-right: 8px; }
.sx-g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sx-g-grid > div { padding: 14px 16px; border-radius: 14px; background: var(--light); }
.sx-g-grid .sx-g-wide { grid-column: 1 / -1; background: rgba(31, 169, 113, .06); border: 1px solid rgba(31, 169, 113, .2); }
.sx-g-grid h4 { font-size: 15px; margin-bottom: 8px; }
.sx-g-grid h4 i { color: var(--primary); margin-right: 4px; }
.sx-g-wide h4 i { color: #1fa971; }
.sx-g-grid ul { margin-bottom: 0; padding-left: 18px; font-size: 14px; }
.sx-g-grid p { margin-bottom: 0; font-size: 14px; }
.sx-g-grid .sx-code { margin-top: 10px; }
.sx-guide-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 24px 28px; border-radius: 22px; background: linear-gradient(135deg, var(--dark), #1d2a6b); color: rgba(255, 255, 255, .8); }
.sx-guide-cta h3 { color: #fff; }

/*** Calculadoras dst-limit ***/
.sx-calc { height: 100%; padding: 28px; border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(20, 24, 62, .08); }
.sx-calc h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.sx-calc h3 i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-size: 17px; }
.sx-calc label { display: flex; justify-content: space-between; font-weight: 600; color: var(--dark); }
.sx-calc output { color: var(--primary); }
.sx-formula { display: block; margin-top: 8px; color: #6b7394; font-size: 12.5px; }

/*** Responsive ***/
@media (max-width: 991.98px) {
    .sx-scan-panel, .sx-fw-form { border-right: none; border-bottom: 1px solid #e6ecf8; }
    .sx-quiz-out { border-left: none; border-top: 1px solid #e6ecf8; }
}

@media (max-width: 767.98px) {
    .sx-jump-wrap { margin-top: -26px; }
    .sx-jump { border-radius: 18px; }
    .sx-jump a { padding: 10px 14px; font-size: 14px; }
    .sx-scan-panel, .sx-report, .sx-calc { padding: 18px; }
    .sx-modes { grid-template-columns: 1fr; }
    .sx-counts { grid-template-columns: repeat(2, 1fr); }
    .sx-fw-form, .sx-fw-out { padding: 18px; }
    .sx-packets { grid-template-columns: 1fr; }
    .sx-fw-stats { grid-template-columns: repeat(2, 1fr); }
    .sx-g-grid { grid-template-columns: 1fr; }
    /* La animación se desliza de lado para que se lea en pantallas pequeñas */
    .sx-flood-stage { overflow-x: auto; }
    .sx-flood-stage svg { flex: none; min-width: 600px; }
    .sx-lab-controls, .sx-quiz-out { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .sx-port { animation: none; }
    .sx-ring-fg, .sx-progress i { transition: none; }
}
