/********** Recursos inalámbricos (recursos-tecnologicos.html) **********/

/*** Accesos rápidos bajo el hero ***/
.rr-jump-wrap { position: relative; z-index: 3; margin-top: -34px; }

.rr-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;
}

.rr-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;
}

.rr-jump a i { color: var(--secondary); }
.rr-jump a:hover,
.rr-jump a:focus-visible { background: var(--primary); color: #fff; }
.rr-jump a:hover i,
.rr-jump a:focus-visible i { color: #fff; }

/*** Contenedor de herramienta ***/
.rr-tool {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(20, 24, 62, .12);
    overflow: hidden;
}

.rr-tool-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #e6ecf8;
}

.rr-stage {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: radial-gradient(circle at 25% 20%, #16307a 0%, #0d1640 55%, #0a1033 100%);
    color: #fff;
}

.rr-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px 0;
}

.rr-stage-note { font-size: 12px; color: rgba(255, 255, 255, .5); }

.rr-stage-scroll { flex: 1; display: flex; align-items: center; }
.rr-stage-scroll svg { flex: 0 0 auto; display: block; width: 100%; height: auto; font-family: 'Ubuntu', sans-serif; }

.rr-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 18px; }
.rr-legend span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.rr-legend i.rr-sw { width: 10px; height: 10px; border-radius: 3px; }
.rr-legend .is-ok { color: #52e3a4; }
.rr-legend .is-bad { color: #ff8080; }

.rr-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: background .3s, color .3s;
}

.rr-status.is-ok { background: rgba(82, 227, 164, .16); color: #52e3a4; }
.rr-status.is-warn { background: rgba(255, 179, 71, .16); color: #ffb347; }
.rr-status.is-bad { background: rgba(255, 107, 107, .18); color: #ff8080; }

.rr-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .08);
}

.rr-stats div { padding: 12px 14px; background: #0d1640; }
.rr-stats span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.rr-stats b { font-family: 'Ubuntu', sans-serif; font-size: 17px; }

/*** Controles ***/
.rr-controls { height: 100%; padding: 24px; }
.rr-controls--left { border-right: 1px solid #e6ecf8; }
.rr-field { margin-bottom: 16px; }

.rr-field > label,
.rr-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
    font-size: 14.5px;
    color: var(--dark);
}

.rr-field output { color: var(--primary); font-weight: 700; }
.rr-tool .form-range::-webkit-slider-thumb { background: var(--primary); }
.rr-tool .form-range::-moz-range-thumb { background: var(--primary); }

.rr-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.rr-chips button,
.rr-toggle button {
    padding: 6px 12px;
    border: 1px solid #d5ddf0;
    border-radius: 999px;
    background: #fff;
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    transition: background .2s, color .2s, border-color .2s;
}

.rr-chips--sm button { padding: 5px 10px; font-size: 12.5px; }
.rr-chips button:hover,
.rr-chips button:focus-visible { border-color: var(--primary); }
.rr-chips button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.rr-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--light); }
.rr-toggle button { border: none; background: transparent; }
.rr-toggle button.is-active { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(19, 99, 198, .3); }
.rr-toggle button[data-m="bad"].is-active { background: #e5484d; box-shadow: 0 6px 16px rgba(229, 72, 77, .3); }

.rr-hint {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-left: 4px solid var(--secondary);
    border-radius: 12px;
    background: var(--light);
    font-size: 13.5px;
    line-height: 1.5;
}

.rr-hint.is-ok { border-left-color: #1fa971; }
.rr-hint.is-warn { border-left-color: #f59e0b; }
.rr-hint.is-bad { border-left-color: #e5484d; }

.rr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
}

.rr-btn:hover,
.rr-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(19, 99, 198, .3); }
.rr-btn:disabled { opacity: .6; transform: none; }
.rr-btn--sm { width: auto; padding: 8px 18px; }

.rr-note {
    display: flex;
    gap: 14px;
    height: 100%;
    padding: 20px;
    border-radius: 18px;
    background: var(--light);
}

.rr-note > i { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--primary); font-size: 18px; }
.rr-note strong { display: block; margin-bottom: 4px; color: var(--dark); font-family: 'Ubuntu', sans-serif; }
.rr-note p { margin: 0; font-size: 14px; }

/*** SVG de Fresnel ***/
.rr-grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.rr-grid--light { stroke: #e6ecf8; }
.rr-axis { fill: rgba(255, 255, 255, .55); font-size: 11.5px; }
.rr-axis--dark { fill: #6b7394; }
.rr-ground { opacity: .9; }
.rr-zone { fill: rgba(79, 195, 255, .14); stroke: rgba(79, 195, 255, .55); stroke-width: 1.5; animation: rr-breathe-zone 3s ease-in-out infinite; }
.rr-zone60 { fill: rgba(79, 195, 255, .1); stroke: rgba(255, 255, 255, .45); stroke-width: 1; stroke-dasharray: 5 5; }
.rr-los { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 2 6; opacity: .7; }
.rr-rline { stroke: #ffb347; stroke-width: 2; }
.rr-rtext { fill: #ffb347; font-size: 12.5px; font-weight: 700; }

@keyframes rr-breathe-zone {
    50% { fill: rgba(79, 195, 255, .22); }
}

.rr-tower-leg { fill: none; stroke: #cfd8f0; stroke-width: 2; }
.rr-dish { fill: #fff; stroke: var(--secondary); stroke-width: 2; }
.rr-dish-halo { fill: rgba(79, 195, 255, .14); stroke: rgba(79, 195, 255, .4); }
.rr-tower-label { fill: #fff; font-size: 13px; font-weight: 500; }

.rr-obs { cursor: grab; outline: none; touch-action: none; }
.rr-obs.is-drag { cursor: grabbing; }
.rr-obs:focus-visible .rr-hit { stroke: #fff; stroke-dasharray: 4 4; }
.rr-hit { fill: transparent; }
.rr-crown { fill: #2fbf71; stroke: #1b8a50; stroke-width: 2; }
.rr-trunk { fill: #8b5a2b; }
.rr-building { fill: #7c8db5; stroke: #c3cde6; stroke-width: 1.5; }
.rr-window { fill: #ffe08a; opacity: .85; }
.rr-hill { fill: #3f9b6b; stroke: #75d19f; stroke-width: 1.5; }
.rr-obs-label { font-size: 12.5px; font-weight: 700; fill: #52e3a4; paint-order: stroke; stroke: #0d1640; stroke-width: 4px; }
.rr-obs.is-warn .rr-obs-label { fill: #ffb347; }
.rr-obs.is-bad .rr-obs-label { fill: #ff8080; }
.rr-obs.is-bad .rr-crown,
.rr-obs.is-bad .rr-building,
.rr-obs.is-bad .rr-hill { stroke: #ff6b6b; stroke-width: 2.5; }

.rr-packet { fill: #fff; filter: drop-shadow(0 0 5px #4fc3ff); transition: opacity .3s; }
.rr-packet.is-weak { fill: #ffd28a; filter: drop-shadow(0 0 5px #ffb347); }
.rr-packet.is-lost { fill: #ff6b6b; opacity: .15; filter: none; }

/*** Presupuesto de enlace ***/
.rr-result { padding: 24px; }
.rr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.rr-kpi { padding: 12px 14px; border-radius: 14px; background: var(--light); }
.rr-kpi span { display: block; font-size: 12px; color: #6b7394; }
.rr-kpi b { font-family: 'Ubuntu', sans-serif; font-size: 18px; color: var(--dark); }
.rr-kpi--main { background: var(--dark); }
.rr-kpi--main span { color: rgba(255, 255, 255, .65); }
.rr-kpi--main b { color: #fff; font-size: 21px; }

.rr-meter { margin-bottom: 14px; }
.rr-meter-bar { height: 12px; border-radius: 999px; background: #e9eef9; overflow: hidden; }
.rr-meter-bar i { display: block; height: 100%; border-radius: inherit; transition: width .45s ease, background .3s; }
.rr-meter-bar i.is-ok { background: linear-gradient(90deg, #15ACE1, #1fa971); }
.rr-meter-bar i.is-warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.rr-meter-bar i.is-bad { background: linear-gradient(90deg, #e5484d, #f87171); }
.rr-meter-scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: #8a92b2; }

.rr-verdict { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; }
.rr-verdict > i { font-size: 22px; }
.rr-verdict strong { display: block; font-family: 'Ubuntu', sans-serif; }
.rr-verdict span { font-size: 13.5px; }
.rr-verdict.is-ok { background: rgba(31, 169, 113, .1); color: #137a51; }
.rr-verdict.is-warn { background: rgba(245, 158, 11, .12); color: #9a5b00; }
.rr-verdict.is-bad { background: rgba(229, 72, 77, .1); color: #b4232a; }

.rr-chart svg { display: block; width: 100%; height: auto; font-family: 'Ubuntu', sans-serif; cursor: crosshair; touch-action: pan-y; }
.rr-chart-hint { display: block; margin-top: 4px; color: #8a92b2; }
.rr-curve { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; }
.rr-zone-band { opacity: .14; }
.rr-zone-band.z4, .rr-thr.z4 { fill: #1fa971; stroke: #1fa971; }
.rr-zone-band.z3, .rr-thr.z3 { fill: #15ACE1; stroke: #15ACE1; }
.rr-zone-band.z2, .rr-thr.z2 { fill: #f59e0b; stroke: #f59e0b; }
.rr-zone-band.z1, .rr-thr.z1 { fill: #e5484d; stroke: #e5484d; }
.rr-thr { stroke-width: 1.2; stroke-dasharray: 5 4; fill: none; }
.rr-thr-label { fill: #4a5275; font-size: 11px; font-weight: 700; }
.rr-mark-line { stroke: var(--dark); stroke-width: 1; stroke-dasharray: 3 3; }
.rr-mark-dot { fill: #fff; stroke: var(--primary); stroke-width: 3; }
.rr-mark.is-warn .rr-mark-dot { stroke: #f59e0b; }
.rr-mark.is-bad .rr-mark-dot { stroke: #e5484d; }
.rr-mark-pulse { fill: var(--primary); opacity: 0; transform-box: fill-box; transform-origin: center; }
.rr-mark-pulse.is-anim { animation: rr-pulse 1.8s ease-out infinite; }
.rr-mark-text { fill: var(--dark); font-size: 12.5px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; }

@keyframes rr-pulse {
    0% { opacity: .45; transform: scale(1); }
    100% { opacity: 0; transform: scale(3.2); }
}

.rr-table-wrap { border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(20, 24, 62, .08); overflow-x: auto; }
.rr-table { min-width: 560px; }
.rr-table th { padding: 14px 18px; background: var(--dark); color: #fff; font-family: 'Ubuntu', sans-serif; font-weight: 500; font-size: 14px; border: none; }
.rr-table td { padding: 10px 18px; font-size: 14px; border-color: #eef2fb; transition: background .3s; }
.rr-table tr.is-current td { background: rgba(19, 99, 198, .09); color: var(--primary); font-weight: 700; }

/*** Planificador de canales ***/
.rr-stage--flat { background: #0d1640; }
.rr-band { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .08); }
.rr-band-off { fill: rgba(255, 255, 255, .06); }
.rr-band-label { fill: rgba(255, 255, 255, .6); font-size: 12px; font-weight: 500; }
.rr-band-label--off { fill: rgba(255, 255, 255, .35); }
.rr-floor { stroke: rgba(255, 255, 255, .3); }
.rr-noise { fill: rgba(143, 166, 214, .2); transition: fill .4s; }
.rr-noise.is-high { fill: rgba(255, 107, 107, .25); animation: rr-noise 1.2s ease-in-out infinite; }
.rr-overlap { fill: #ff4d4f; opacity: .55; animation: rr-blink 1s ease-in-out infinite; }
.rr-hump-g { transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.rr-hump { transform-box: fill-box; transform-origin: bottom; animation: rr-breathe 2.4s ease-in-out infinite; }
.rr-hump-shape { opacity: .55; stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; }
.rr-hump-label { font-size: 12px; font-weight: 700; paint-order: stroke; stroke: #0d1640; stroke-width: 4px; }

@keyframes rr-breathe {
    50% { transform: scaleY(.93); }
}

@keyframes rr-blink {
    50% { opacity: .25; }
}

@keyframes rr-noise {
    50% { fill: rgba(255, 107, 107, .38); }
}

.rr-tower-wrap { max-width: 170px; margin: 0 auto 14px; }
.rr-tower-wrap svg { display: block; width: 100%; height: auto; font-family: 'Ubuntu', sans-serif; }
.rr-tower-ring { fill: var(--light); stroke: #dfe6f6; }
.rr-wedge { opacity: .75; stroke: #fff; stroke-width: 2; transition: opacity .3s; }
.rr-wedge.is-conflict { stroke: #e5484d; stroke-width: 3; animation: rr-blink 1s ease-in-out infinite; }
.rr-wedge-label { fill: var(--dark); font-size: 13px; font-weight: 700; }
.rr-tower-core { fill: #fff; stroke: var(--primary); stroke-width: 2; }
.rr-tower-glyph { fill: var(--primary); font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 13px; }

.rr-mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.rr-mini-kpis div { padding: 10px; border-radius: 12px; background: var(--light); text-align: center; }
.rr-mini-kpis span { display: block; font-size: 11.5px; color: #6b7394; }
.rr-mini-kpis b { font-family: 'Ubuntu', sans-serif; font-size: 16px; color: var(--dark); }
.rr-mini-kpis b.is-ok { color: #1fa971; }
.rr-mini-kpis b.is-bad { color: #e5484d; }

/*** Alineación ***/
.rr-aim { stroke: rgba(255, 255, 255, .25); stroke-width: 1.5; stroke-dasharray: 3 6; }
.rr-beam { fill: rgba(79, 195, 255, .22); stroke: rgba(79, 195, 255, .8); stroke-width: 1.5; transition: fill .3s; }
.rr-node-body { fill: #fff; stroke: var(--secondary); stroke-width: 2.5; }
.rr-node-glyph { fill: var(--primary); font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 13px; }
.rr-target-halo { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .3); transition: fill .3s, stroke .3s; }
.rr-target-halo.is-ok { fill: rgba(82, 227, 164, .35); stroke: #52e3a4; animation: rr-blink 1.4s ease-in-out infinite; }
.rr-target-halo.is-warn { fill: rgba(255, 179, 71, .25); stroke: #ffb347; }
.rr-scope { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .3); }
.rr-scope-ring { fill: none; stroke: rgba(255, 255, 255, .14); }
.rr-scope-bw { fill: rgba(82, 227, 164, .14); stroke: #52e3a4; stroke-dasharray: 3 3; }
.rr-scope-dot { fill: #ff8080; stroke: #fff; stroke-width: 2; transition: fill .3s; }
.rr-scope-dot.is-ok { fill: #52e3a4; }
.rr-scope-dot.is-warn { fill: #ffb347; }
.rr-sweep-bg { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .1); }
.rr-sweep-line { fill: none; stroke: #4fc3ff; stroke-width: 2; }
.rr-sweep-dot { fill: #fff; filter: drop-shadow(0 0 5px #fff); }

.rr-rssi { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 14px 16px; border-radius: 16px; background: var(--dark); color: #fff; }
.rr-rssi-num b { display: block; font-family: 'Ubuntu', sans-serif; font-size: 26px; line-height: 1; transition: color .3s; }
.rr-rssi-num b.is-ok { color: #52e3a4; }
.rr-rssi-num b.is-warn { color: #ffb347; }
.rr-rssi-num b.is-bad { color: #ff8080; }
.rr-rssi-num span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.rr-rssi-bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-left: auto; }
.rr-rssi-bars i { width: 7px; border-radius: 2px; background: rgba(255, 255, 255, .14); transition: background .25s; }
.rr-rssi-bars i:nth-child(1) { height: 10%; }
.rr-rssi-bars i:nth-child(2) { height: 19%; }
.rr-rssi-bars i:nth-child(3) { height: 28%; }
.rr-rssi-bars i:nth-child(4) { height: 37%; }
.rr-rssi-bars i:nth-child(5) { height: 46%; }
.rr-rssi-bars i:nth-child(6) { height: 55%; }
.rr-rssi-bars i:nth-child(7) { height: 64%; }
.rr-rssi-bars i:nth-child(8) { height: 73%; }
.rr-rssi-bars i:nth-child(9) { height: 86%; }
.rr-rssi-bars i:nth-child(10) { height: 100%; }
.rr-rssi-bars i.is-ok { background: #52e3a4; }
.rr-rssi-bars i.is-warn { background: #ffb347; }
.rr-rssi-bars i.is-bad { background: #ff8080; }

/*** Palancas de optimización ***/
.rr-lever {
    height: 100%;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 24, 62, .08);
    transition: transform .3s, box-shadow .3s;
}

.rr-lever:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 24, 62, .14); }
.rr-lever-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-size: 20px; }
.rr-lever h4 { font-size: 18px; margin-bottom: 8px; }
.rr-lever p { font-size: 14.5px; }
.rr-impact { position: relative; height: 26px; border-radius: 999px; background: var(--light); overflow: hidden; }
.rr-impact::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, rgba(19, 99, 198, .22), rgba(21, 172, 225, .45)); }
.rr-impact span { position: relative; display: block; padding: 3px 12px; font-size: 12.5px; font-weight: 700; color: var(--primary); }

/*** Guías ***/
.rr-guides { border-radius: 24px; background: #fff; box-shadow: 0 18px 45px rgba(20, 24, 62, .1); overflow: hidden; }
.rr-guide-tabs { display: flex; gap: 6px; padding: 12px 12px 0; background: var(--dark); overflow-x: auto; }

.rr-guide-tab {
    border: none;
    padding: 11px 18px;
    border-radius: 14px 14px 0 0;
    background: transparent;
    color: rgba(255, 255, 255, .65);
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    transition: background .25s, color .25s;
}

.rr-guide-tab i { margin-right: 6px; color: var(--secondary); }
.rr-guide-tab:hover,
.rr-guide-tab:focus-visible { color: #fff; background: rgba(255, 255, 255, .06); }
.rr-guide-tab.is-active { color: var(--dark); background: #fff; }

.rr-guide { padding: 26px; }
.rr-guide.is-active { animation: rr-fade-in .45s ease; }

@keyframes rr-fade-in {
    from { opacity: 0; transform: translateY(8px); }
}

.rr-guide-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.rr-progress { display: flex; align-items: center; gap: 10px; min-width: 220px; font-size: 13px; font-weight: 700; color: var(--primary); }
.rr-progress-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--light); overflow: hidden; }
.rr-progress-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .4s ease; }
.rr-guide.is-complete .rr-progress { color: #1fa971; }
.rr-guide.is-complete .rr-progress-bar i { background: #1fa971; }

.rr-steps { margin: 0; padding: 0; list-style: none; counter-reset: rr-step; }
.rr-steps li { position: relative; margin-bottom: 10px; counter-increment: rr-step; }
.rr-steps label { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid #e6ecf8; border-radius: 16px; cursor: pointer; transition: border-color .25s, background .25s; }
.rr-steps label:hover { border-color: var(--secondary); }
.rr-steps input { position: absolute; opacity: 0; pointer-events: none; }

.rr-steps label::before {
    content: counter(rr-step);
    flex: none;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    transition: background .25s, color .25s;
}

.rr-steps input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.rr-steps span { font-size: 14.5px; line-height: 1.55; }
.rr-steps strong { color: var(--dark); }
.rr-steps li.is-done label { border-color: rgba(31, 169, 113, .4); background: rgba(31, 169, 113, .06); }
.rr-steps li.is-done label::before { content: "\f00c"; font-family: 'Font Awesome 5 Free'; font-weight: 900; background: #1fa971; color: #fff; }
.rr-steps li.is-done span { color: #5b647f; }

.rr-kit { margin-bottom: 16px; padding: 18px 20px; border-radius: 18px; background: var(--light); }
.rr-kit h4 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 10px; }
.rr-kit h4 i { color: var(--primary); }
.rr-kit ul { margin: 0; padding-left: 18px; font-size: 14px; }
.rr-kit li { margin-bottom: 4px; }
.rr-kit--warn { background: #fff6e8; }
.rr-kit--warn h4 i { color: #f59e0b; }

.rr-practice {
    height: 100%;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 24, 62, .07);
    transition: transform .3s;
}

.rr-practice:hover { transform: translateY(-5px); }
.rr-practice > i { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 14px; background: var(--light); color: var(--primary); font-size: 18px; transition: transform .4s; }
.rr-practice:hover > i { transform: rotate(-10deg) scale(1.1); }
.rr-practice h4 { font-size: 16px; margin-bottom: 6px; }
.rr-practice p { margin: 0; font-size: 14px; }
.rr-practice--safety { background: #fff6e8; border: 1px solid #fde1b0; }
.rr-practice--safety > i { background: #f59e0b; color: #fff; }

/* Botones de la documentación: la plantilla pinta el texto del mismo color que el fondo */
.service-item a.btn.btn-primary,
.service-item a.btn.btn-secondary { display: inline-flex; color: #fff; }
.service-item a.btn.btn-primary::before,
.service-item a.btn.btn-secondary::before { display: none; }

/*** Responsive ***/
@media (max-width: 991.98px) {
    .rr-controls--left { border-right: none; border-bottom: 1px solid #e6ecf8; }
    .rr-stats { grid-template-columns: repeat(3, 1fr); }
    .rr-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .rr-jump-wrap { margin-top: -26px; }
    .rr-jump { border-radius: 18px; }
    .rr-jump a { padding: 10px 14px; font-size: 14px; }
    /* Los diagramas se deslizan de lado para conservar etiquetas legibles */
    .rr-stage-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .rr-stage-scroll svg { min-width: 640px; }
    .rr-stage::after { content: "← Desliza para ver todo el diagrama →"; order: 1; padding: 6px 0 12px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .5); }
    .rr-stats, .rr-legend { order: 2; }
    /* La gráfica se encoge con la pantalla: letras más grandes en unidades del SVG */
    .rr-chart .rr-axis { font-size: 19px; }
    .rr-chart .rr-thr-label { font-size: 17px; }
    .rr-chart .rr-mark-text { font-size: 21px; }
    .rr-stats { grid-template-columns: repeat(2, 1fr); }
    .rr-stats div:last-child { grid-column: span 2; }
    .rr-controls, .rr-result, .rr-guide { padding: 18px; }
    .rr-tool-head { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .rr-zone, .rr-hump, .rr-overlap, .rr-noise.is-high, .rr-wedge.is-conflict, .rr-target-halo.is-ok, .rr-guide.is-active { animation: none; }
    .rr-hump-g, .rr-meter-bar i, .rr-progress-bar i { transition: none; }
}
