/********** Página de fibra óptica (fibra-optica.html) **********/

/*** Intro: datos clave e hilo de fibra animado ***/
.fo-stat {
    height: 100%;
    padding: 14px 12px;
    border-radius: 14px;
    background: var(--light);
    border: 1px solid rgba(19, 99, 198, .12);
    text-align: center;
}

.fo-stat strong {
    display: block;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.35rem;
    color: var(--primary);
    line-height: 1.1;
}

.fo-stat span {
    display: block;
    font-size: 12.5px;
    color: #6b7394;
    margin-top: 4px;
}

.fo-cable {
    position: relative;
    padding: 34px 26px 26px;
    border-radius: 22px;
    background: radial-gradient(circle at 20% 0%, #1d3a8a 0%, var(--dark) 70%);
    box-shadow: 0 20px 45px rgba(20, 24, 62, .25);
    overflow: hidden;
}

.fo-cable::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.fo-cable-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
}

.fo-cable-label--end {
    float: right;
}

.fo-cable-tube {
    position: relative;
    clear: both;
    height: 64px;
    margin: 16px 0 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: inset 0 0 18px rgba(21, 172, 225, .25);
    overflow: hidden;
}

.fo-beam {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background-size: 220px 4px;
    background-repeat: repeat-x;
    filter: drop-shadow(0 0 6px currentColor);
}

.fo-beam--down {
    top: 16px;
    color: #4fc3ff;
    background-image: linear-gradient(90deg, transparent 0 40%, #4fc3ff 60%, #ffffff 70%, transparent 80%);
    animation: fo-flow 1.6s linear infinite;
}

.fo-beam--up {
    top: 30px;
    color: #ffb347;
    background-image: linear-gradient(270deg, transparent 0 40%, #ffb347 60%, #fff3dd 70%, transparent 80%);
    animation: fo-flow-back 2.1s linear infinite;
}

.fo-beam--video {
    top: 44px;
    color: #b98cff;
    opacity: .75;
    background-image: linear-gradient(90deg, transparent 0 55%, #b98cff 70%, transparent 82%);
    animation: fo-flow 2.8s linear infinite;
}

@keyframes fo-flow {
    from { background-position: 0 0; }
    to { background-position: 220px 0; }
}

@keyframes fo-flow-back {
    from { background-position: 220px 0; }
    to { background-position: 0 0; }
}

.fo-cable-legend {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: rgba(255, 255, 255, .8);
    font-size: 13.5px;
}

.fo-cable-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fo-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none;
}

.fo-dot--down { background: #4fc3ff; box-shadow: 0 0 8px #4fc3ff; }
.fo-dot--up { background: #ffb347; box-shadow: 0 0 8px #ffb347; }
.fo-dot--video { background: #b98cff; box-shadow: 0 0 8px #b98cff; }

/*** Mapa interactivo ***/
.fo-map {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(20, 24, 62, .12);
    overflow: hidden;
}

.fo-map-tabs {
    display: flex;
    gap: 6px;
    padding: 12px 12px 0;
    background: var(--dark);
}

.fo-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;
    transition: background .25s, color .25s;
}

.fo-tab:hover,
.fo-tab:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.fo-tab.is-active {
    color: #fff;
    background: #0d1640;
}

.fo-tab i {
    margin-right: 6px;
    color: var(--secondary);
}

.fo-map-stage {
    position: relative;
    background: radial-gradient(circle at 30% 20%, #16307a 0%, #0d1640 55%, #0a1033 100%);
}

#foMapSvg {
    display: block;
    width: 100%;
    height: auto;
    font-family: 'Ubuntu', sans-serif;
}

/* Fondo del mapa (manzanas y calles) */
.fm-block { fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .06); }
.fm-street { fill: none; stroke: rgba(255, 255, 255, .05); stroke-width: 14; stroke-linecap: round; }
.fm-zone { fill: rgba(21, 172, 225, .06); stroke: rgba(21, 172, 225, .35); stroke-dasharray: 6 6; }
.fm-zone-label { fill: rgba(255, 255, 255, .55); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* Enlaces de fibra */
.fm-link { fill: none; stroke: #2f7dff; stroke-width: 3; stroke-linecap: round; opacity: .55; }
.fm-link--glow { stroke: #4fc3ff; stroke-width: 9; opacity: .08; }
.fm-link--uplink { stroke: #8fa6d6; stroke-dasharray: 2 7; opacity: .7; }
.fm-link--trunk { stroke: #15ACE1; stroke-width: 4; opacity: .8; }
.fm-link--feeder { stroke-width: 4.5; opacity: .75; }
.fm-link--drop { stroke-width: 2; opacity: .45; }
.fm-link.is-cut { stroke: #ff5d5d; stroke-dasharray: 8 7; opacity: .9; animation: fm-blink 1s steps(2) infinite; }
.fm-link--glow.is-cut { opacity: 0; }
.fm-link-label { fill: rgba(255, 255, 255, .55); font-size: 11px; }

.fm-hit { fill: none; stroke: transparent; stroke-width: 26; cursor: pointer; }
.fm-hit:hover + .fm-link,
.fm-hit:focus + .fm-link { opacity: 1; stroke-width: 5; }
.fm-hit:focus { outline: none; }

@keyframes fm-blink { 50% { opacity: .35; } }

/* Nodos */
.fm-node { cursor: pointer; }
.fm-node:focus { outline: none; }
.fm-node .fm-halo { fill: rgba(79, 195, 255, .12); stroke: rgba(79, 195, 255, .35); transition: r .25s; }
.fm-node .fm-body { fill: #ffffff; stroke: #15ACE1; stroke-width: 2; }
.fm-node .fm-glyph { fill: var(--primary); font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 18px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.fm-node .fm-label { fill: #fff; font-size: 13px; font-weight: 500; text-anchor: middle; pointer-events: none; }
.fm-node .fm-sub { fill: rgba(255, 255, 255, .55); font-size: 11px; text-anchor: middle; pointer-events: none; }
.fm-node:hover .fm-halo,
.fm-node:focus .fm-halo { fill: rgba(79, 195, 255, .25); stroke: #4fc3ff; }
.fm-node.is-selected .fm-halo { fill: rgba(79, 195, 255, .3); stroke: #fff; stroke-width: 2; }
.fm-node.is-selected .fm-body { stroke: #fff; stroke-width: 3; }
.fm-node.is-down .fm-body { fill: #ffe3e3; stroke: #ff5d5d; }
.fm-node.is-down .fm-glyph { fill: #d9433f; }
.fm-node.is-down .fm-halo { fill: rgba(255, 93, 93, .2); stroke: #ff5d5d; animation: fm-blink 1s steps(2) infinite; }
.fm-node--home .fm-body { stroke: #8fa6d6; }
.fm-node--home .fm-glyph { font-size: 13px; }
.fm-node--core .fm-body { fill: #fff; stroke: #4fc3ff; stroke-width: 3; }

.fm-pulse { fill: none; stroke: #4fc3ff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: fm-pulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes fm-pulse {
    0% { opacity: .7; transform: scale(.6); }
    100% { opacity: 0; transform: scale(2.1); }
}

/* Paquetes de datos */
.fm-packet { pointer-events: none; }
.fm-packet--down { fill: #4fc3ff; filter: drop-shadow(0 0 5px #4fc3ff); }
.fm-packet--up { fill: #ffb347; filter: drop-shadow(0 0 5px #ffb347); }

.fm-cutmark { stroke: #ff5d5d; stroke-width: 4; stroke-linecap: round; pointer-events: none; }
.fm-cutmark-bg { fill: #0d1640; stroke: #ff5d5d; stroke-width: 2; pointer-events: none; }

.fo-map-toast {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translate(-50%, 20px);
    max-width: calc(100% - 28px);
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--dark);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
    text-align: center;
}

.fo-map-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.fo-map-toast.is-alert { background: #fff1f0; color: #b3261e; }
.fo-map-toast.is-ok { background: #ecfbf3; color: #137a4f; }

.fo-map-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #0d1640;
}

.fo-ctl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: transparent;
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    transition: all .2s;
}

.fo-ctl:hover,
.fo-ctl:focus-visible { color: #fff; border-color: rgba(255, 255, 255, .45); }
.fo-ctl.is-on { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.fo-ctl:not(.is-on) .fo-dot { opacity: .35; box-shadow: none; }
.fo-ctl--alert { margin-left: auto; color: #ffb0ab; border-color: rgba(255, 93, 93, .45); }
.fo-ctl--alert.is-on { color: #fff; background: #d9433f; border-color: #d9433f; }
.fo-hint { color: rgba(255, 255, 255, .7); font-size: 14px; margin-right: auto; }
.fo-hint i { color: var(--secondary); margin-right: 6px; }

.fo-info {
    height: 100%;
    padding: 26px 24px;
    border-left: 1px solid #e6ecf8;
}

.fo-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #fff;
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 8px 18px rgba(19, 99, 198, .3);
}

.fo-info.is-alert .fo-info-icon { background: linear-gradient(135deg, #d9433f, #ff8a65); box-shadow: 0 8px 18px rgba(217, 67, 63, .3); }

.fo-info-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fo-info-tags span { padding: 3px 10px; border-radius: 999px; background: var(--light); color: var(--primary); font-size: 12px; font-weight: 600; }
.fo-info-list { list-style: none; padding: 0; margin: 0; }
.fo-info-list li { position: relative; padding-left: 22px; margin-bottom: 7px; font-size: 14.5px; }
.fo-info-list li::before { content: "\f00c"; position: absolute; left: 0; top: 1px; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 12px; color: var(--secondary); }
.fo-info.is-alert .fo-info-list li::before { content: "\f071"; color: #d9433f; }

.fo-map-note { margin: 0; padding: 10px 18px; font-size: 13px; color: #6b7394; border-top: 1px solid #e6ecf8; }
.fo-map-note i { color: var(--secondary); margin-right: 4px; }

/*** Estándares ***/
.fo-wave-list { display: grid; gap: 10px; }

.fo-wave {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--light);
    font-size: 14.5px;
}

.fo-wave strong { display: block; font-family: 'Ubuntu', sans-serif; color: var(--dark); }

.fo-wave span {
    position: relative;
    width: 64px;
    height: 24px;
    flex: none;
    overflow: hidden;
    border-radius: 8px;
    background: var(--dark);
}

.fo-wave span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 10px, var(--c) 10px 14px, transparent 14px 22px);
    filter: drop-shadow(0 0 4px var(--c));
    animation: fo-wave-move var(--t, 1.2s) linear infinite;
}

.fo-wave--down { --c: #4fc3ff; --t: 1s; }
.fo-wave--up { --c: #ffb347; --t: 1.3s; }
.fo-wave--up span::after { animation-direction: reverse; }
.fo-wave--video { --c: #b98cff; --t: 1.7s; }
.fo-wave--xgs { --c: #52e3a4; --t: .6s; }

@keyframes fo-wave-move {
    from { transform: translateX(-22px); }
    to { transform: translateX(0); }
}

.fo-table-wrap {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(20, 24, 62, .08);
}

.fo-table thead th {
    background: var(--dark);
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
    border: none;
    padding: 14px 16px;
    white-space: nowrap;
}

.fo-table tbody th,
.fo-table tbody td { padding: 14px 16px; vertical-align: middle; border-color: #eef2fa; }
.fo-table tbody th { font-family: 'Ubuntu', sans-serif; color: var(--primary); white-space: nowrap; }
.fo-table tbody th small { display: block; font-family: 'Open Sans', sans-serif; font-weight: 400; font-size: 11.5px; color: #6b7394; }
.fo-table tbody tr { transition: background .2s; }
.fo-table tbody tr:hover { background: var(--light); }

/*** Calculadora de presupuesto óptico ***/
.fo-calc {
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(20, 24, 62, .1);
}

.fo-calc-field { margin-bottom: 18px; }

.fo-calc-field label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
    color: var(--dark);
}

.fo-calc-field output { color: var(--primary); font-weight: 700; }
.fo-calc .form-range::-webkit-slider-thumb { background: var(--primary); }
.fo-calc .form-range::-moz-range-thumb { background: var(--primary); }

.fo-calc-result {
    height: 100%;
    padding: 24px;
    border-radius: 20px;
    background: var(--light);
}

.fo-calc-rx { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 18px; }
.fo-calc-rx span { width: 100%; color: #6b7394; font-size: 14px; }
.fo-calc-rx strong { font-family: 'Ubuntu', sans-serif; font-size: 2.6rem; line-height: 1; color: var(--dark); }

.fo-badge {
    font-style: normal;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #17a06b;
}

.fo-badge.is-warn { background: #e89a12; }
.fo-badge.is-bad { background: #d9433f; }
.fo-badge.is-hot { background: #7b5cff; }

.fo-meter { position: relative; margin-bottom: 20px; }
.fo-meter-zones { display: flex; height: 12px; border-radius: 999px; overflow: hidden; }
/* Escala de −30 a −5 dBm (25 dB): zonas proporcionales */
.fo-meter-zones .z-bad { flex: 3; background: #f3b4b1; }
.fo-meter-zones .z-warn { flex: 2; background: #f8d48f; }
.fo-meter-zones .z-ok { flex: 17; background: #9fe0c3; }
.fo-meter-zones .z-hot { flex: 3; background: #cbbcff; }

.fo-meter-marker {
    position: absolute;
    top: -6px;
    left: 0;
    width: 4px;
    height: 24px;
    margin-left: -2px;
    border-radius: 4px;
    background: var(--dark);
    box-shadow: 0 0 0 3px #fff;
    transition: left .45s cubic-bezier(.2, .8, .2, 1);
}

.fo-meter-scale { position: relative; height: 18px; margin-top: 6px; font-size: 11.5px; color: #6b7394; }
.fo-meter-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.fo-meter-scale span:nth-child(1) { left: 0; transform: none; }
.fo-meter-scale span:nth-child(2) { left: 12%; }
.fo-meter-scale span:nth-child(3) { left: 20%; }
.fo-meter-scale span:nth-child(4) { left: 88%; }
.fo-meter-scale span:nth-child(5) { right: 0; transform: none; }

.fo-calc-break { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.fo-calc-break li { padding: 5px 11px; border-radius: 999px; background: #fff; font-size: 13px; color: var(--dark); border: 1px solid #e3e9f7; }
.fo-calc-break li b { color: #d9433f; font-weight: 700; }

/*** Hub de marcas alrededor de MikroTik ***/
.fo-hub {
    --r: 185px;
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.fo-hub-ring {
    position: absolute;
    inset: calc(50% - var(--r));
    border-radius: 50%;
    border: 2px dashed rgba(19, 99, 198, .18);
    animation: fo-spin 60s linear infinite;
}

@keyframes fo-spin { to { transform: rotate(360deg); } }

.fo-hub-core {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 132px;
    height: 132px;
    margin: -66px 0 0 -66px;
    border: none;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    color: var(--dark);
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    box-shadow: 0 0 0 10px rgba(19, 99, 198, .08), 0 0 0 22px rgba(19, 99, 198, .04), 0 18px 40px rgba(20, 24, 62, .18);
    transition: transform .25s;
}

.fo-hub-core::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    animation: fo-core-pulse 2.4s ease-out infinite;
}

@keyframes fo-core-pulse {
    0% { transform: scale(.95); opacity: .8; }
    100% { transform: scale(1.35); opacity: 0; }
}

.fo-hub-core:hover,
.fo-hub-core:focus-visible { transform: scale(1.05); }
.fo-hub-core.is-active { box-shadow: 0 0 0 10px rgba(19, 99, 198, .16), 0 0 0 22px rgba(19, 99, 198, .06), 0 18px 40px rgba(20, 24, 62, .2); }

.fo-spoke {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--r);
    height: 0;
    transform-origin: 0 0;
    transform: rotate(var(--a));
    z-index: 2;
}

.fo-spoke-line {
    position: absolute;
    left: 60px;
    right: 48px;
    top: -1px;
    height: 2px;
    background: rgba(19, 99, 198, .15);
    overflow: hidden;
}

.fo-spoke-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    animation: fo-spoke-flow 2.2s linear infinite;
}

.fo-spoke:nth-of-type(odd) .fo-spoke-line::after { animation-delay: -1.1s; }

@keyframes fo-spoke-flow { to { left: 100%; } }

.fo-brand {
    position: absolute;
    left: var(--r);
    top: 0;
    width: 104px;
    height: 74px;
    margin: -37px 0 0 -52px;
    padding: 8px 6px 6px;
    border: 1px solid #e3e9f7;
    border-radius: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transform: rotate(calc(-1 * var(--a)));
    box-shadow: 0 8px 20px rgba(20, 24, 62, .08);
    transition: box-shadow .25s, border-color .25s, transform .25s;
}

.fo-brand img { max-width: 78px; max-height: 26px; object-fit: contain; }
.fo-brand .fo-brand-icon { width: 26px; height: 26px; }
.fo-brand span { font-size: 11.5px; font-weight: 600; color: var(--dark); line-height: 1.1; text-align: center; }
.fo-wordmark { font-family: 'Ubuntu', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: .06em; color: #2a3a6e; line-height: 26px; }
.fo-brand .fo-wordmark + span { display: none; }

.fo-brand:hover,
.fo-brand:focus-visible {
    border-color: var(--secondary);
    box-shadow: 0 12px 28px rgba(19, 99, 198, .2);
    transform: rotate(calc(-1 * var(--a))) translateY(-3px);
}

.fo-brand.is-active { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(19, 99, 198, .15), 0 12px 28px rgba(19, 99, 198, .2); }
.fo-spoke.is-active .fo-spoke-line { background: rgba(19, 99, 198, .45); }

.fo-brand-card {
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e6ecf8;
    box-shadow: 0 18px 45px rgba(20, 24, 62, .1);
    transition: opacity .2s, transform .2s;
}

.fo-brand-card.is-changing { opacity: 0; transform: translateY(6px); }
.fo-brand-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fo-brand-card-head img { width: 56px; height: 40px; object-fit: contain; }

.fo-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 56px;
    counter-reset: fostep;
}

.fo-step {
    position: relative;
    padding: 22px 20px 18px;
    border-radius: 18px;
    background: var(--light);
    transition: transform .25s, box-shadow .25s;
}

.fo-step:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 24, 62, .1); }
.fo-step > i,
.fo-step > img { font-size: 22px; color: var(--primary); margin-bottom: 10px; display: block; }
.fo-step p { margin: 0; font-size: 14px; color: #6b7394; }

.fo-step-n {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .5;
}

.fo-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
    transform: translateY(-50%) rotate(45deg);
}

/*** CTA ***/
.fo-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 48px;
    padding: 30px 34px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    box-shadow: 0 18px 40px rgba(19, 99, 198, .25);
}

.fo-cta--light {
    background: var(--light);
    border: 1px solid #e3e9f7;
    box-shadow: none;
}

.fo-cta--light p { color: #6b7394; }

/*** Módulos ópticos y alcance ***/
.fo-mod {
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e6ecf8;
    box-shadow: 0 18px 45px rgba(20, 24, 62, .08);
}

.fo-mod-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: var(--light);
}

.fo-mod-tab {
    border: none;
    padding: 8px 22px;
    border-radius: 999px;
    background: transparent;
    color: #5b6385;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
    transition: all .25s;
}

.fo-mod-tab:hover,
.fo-mod-tab:focus-visible { color: var(--primary); }
.fo-mod-tab.is-active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 6px 16px rgba(19, 99, 198, .3); }

.fo-mod-result {
    padding: 20px;
    border-radius: 18px;
    background: var(--dark);
    color: #fff;
}

.fo-mod-result-label { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .65); }
.fo-mod-result > strong { display: block; font-family: 'Ubuntu', sans-serif; font-size: 2.2rem; line-height: 1.15; margin-bottom: 14px; }

.fo-mod-pick {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(82, 227, 164, .12);
    border: 1px solid rgba(82, 227, 164, .4);
}

.fo-mod-pick i { font-size: 22px; color: #52e3a4; }
.fo-mod-pick small { display: block; color: rgba(255, 255, 255, .65); font-size: 12px; }
.fo-mod-pick b { font-family: 'Ubuntu', sans-serif; font-size: 1.1rem; }
.fo-mod-pick.is-none { background: rgba(255, 93, 93, .12); border-color: rgba(255, 93, 93, .45); }
.fo-mod-pick.is-none i { color: #ff8a80; }
.fo-mod-result .text-muted { color: rgba(255, 255, 255, .55) !important; }

.fo-reach { display: grid; gap: 12px; }

.fo-reach-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 12px;
}

.fo-reach-name { font-family: 'Ubuntu', sans-serif; font-weight: 500; color: var(--dark); line-height: 1.2; }
.fo-reach-name small { display: block; font-family: 'Open Sans', sans-serif; font-weight: 400; font-size: 12px; color: #6b7394; }

.fo-reach-track {
    position: relative;
    height: 34px;
    border-radius: 10px;
    background: repeating-linear-gradient(90deg, var(--light) 0 calc(25% - 1px), #e3e9f7 calc(25% - 1px) 25%);
    overflow: hidden;
}

.fo-reach-bar {
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 0;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width .5s cubic-bezier(.2, .8, .2, 1);
    overflow: hidden;
}

/* Luz que recorre la barra: el alcance de la señal */
.fo-reach-bar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    left: -60px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    animation: fo-reach-light 2.4s linear infinite;
}

@keyframes fo-reach-light { to { left: 100%; } }

.fo-reach-row.is-short .fo-reach-bar { background: linear-gradient(90deg, #f3b4b1, #e8857f); }
.fo-reach-row.is-pick .fo-reach-track { box-shadow: 0 0 0 2px #52e3a4; }

.fo-reach-km {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dark);
}

.fo-reach-target {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--dark);
    transition: left .4s;
}

.fo-reach-target::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -4px;
    border: 5px solid transparent;
    border-top-color: var(--dark);
}

.fo-reach-scale { position: relative; height: 18px; margin: 8px 0 0 162px; font-size: 11.5px; color: #6b7394; }
.fo-reach-scale span { position: absolute; transform: translateX(-50%); }
.fo-reach-scale span:nth-child(1) { left: 0; transform: none; }
.fo-reach-scale span:nth-child(2) { left: 25%; }
.fo-reach-scale span:nth-child(3) { left: 50%; }
.fo-reach-scale span:nth-child(4) { left: 75%; }
.fo-reach-scale span:nth-child(5) { right: 0; transform: none; white-space: nowrap; }

/*** Línea de tiempo de tecnologías PON ***/
.fo-timeline {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    gap: 16px;
    padding: 34px 4px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.fo-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: max(100%, calc(9 * 226px));
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #c4cde3, var(--primary), var(--secondary), #52e3a4);
}

.fo-tl-item {
    position: relative;
    scroll-snap-align: start;
    padding: 20px 18px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e6ecf8;
    box-shadow: 0 10px 25px rgba(20, 24, 62, .06);
    transition: transform .25s, box-shadow .25s;
}

.fo-tl-item:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(20, 24, 62, .12); }

.fo-tl-item::before {
    content: "";
    position: absolute;
    left: 22px;
    top: -27px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary);
}

.fo-tl-year { font-family: 'Ubuntu', sans-serif; font-weight: 700; font-size: 13px; color: var(--secondary); letter-spacing: .06em; }
.fo-tl-item h3 { margin: 2px 0 0; }
.fo-tl-item small { color: #6b7394; font-size: 12px; }
.fo-tl-item p { font-size: 13.5px; margin: 6px 0 10px; color: #5b6385; }
.fo-tl-item .fo-tl-speed { font-family: 'Ubuntu', sans-serif; font-weight: 700; font-size: 15px; color: var(--primary); margin: 8px 0 4px; }
.fo-tl-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--light); color: var(--primary); }

.fo-tl-item.is-old { opacity: .78; }
.fo-tl-item.is-old::before { border-color: #a9b3cc; }
.fo-tl-item.is-old .fo-tl-pill { background: #eef0f5; color: #7a8299; }
.fo-tl-item.is-main { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19, 99, 198, .12), 0 14px 30px rgba(19, 99, 198, .15); }
.fo-tl-item.is-main::before { background: var(--primary); }
.fo-tl-item.is-main .fo-tl-pill { background: var(--primary); color: #fff; }
.fo-tl-item.is-grow .fo-tl-pill { background: #e2f8ee; color: #137a4f; }
.fo-tl-item.is-grow::before { border-color: #17a06b; }
.fo-tl-item.is-next::before { border-color: #52e3a4; border-style: dashed; }
.fo-tl-item.is-next .fo-tl-pill { background: #ecfbf6; color: #128a6a; }

/*** Herramientas de campo ***/
.fo-tool {
    height: 100%;
    padding: 26px 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e6ecf8;
    box-shadow: 0 14px 35px rgba(20, 24, 62, .07);
    transition: transform .25s, box-shadow .25s;
}

.fo-tool:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(20, 24, 62, .12); }
.fo-tool > p { font-size: 14.5px; color: #6b7394; }

.fo-tool-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 8px 18px rgba(19, 99, 198, .3);
}

.fo-color-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }

.fo-color-result > div {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--light);
}

.fo-color-result small { grid-column: 2; color: #6b7394; font-size: 12px; line-height: 1.1; }
.fo-color-result b { grid-column: 2; font-family: 'Ubuntu', sans-serif; font-size: 14.5px; color: var(--dark); }

.fo-swatch {
    grid-row: 1 / 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cfd7ea, 0 3px 8px rgba(0, 0, 0, .15);
    transition: background .25s;
}

.fo-color-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }

.fo-color-chip {
    aspect-ratio: 1 / 1;
    border: 2px solid #fff;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 0 0 1px #cfd7ea;
    font-size: 0;
    transition: transform .2s;
}

.fo-color-chip:hover,
.fo-color-chip:focus-visible { transform: scale(1.2); }
.fo-color-chip.is-active { box-shadow: 0 0 0 2px var(--primary); transform: scale(1.15); }

.fo-conv-arrow { text-align: center; color: var(--secondary); margin: -8px 0 6px; }
.fo-conv-ref { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.fo-conv-ref li { padding: 7px 12px; border-radius: 10px; background: var(--light); font-size: 13.5px; }
.fo-conv-ref b { color: var(--primary); }

.fo-mini-table { width: 100%; font-size: 13.5px; margin-bottom: 14px; }
.fo-mini-table th,
.fo-mini-table td { padding: 7px 0; border-bottom: 1px dashed #e3e9f7; }
.fo-mini-table th { font-weight: 400; color: #5b6385; padding-right: 8px; }
.fo-mini-table td { text-align: right; font-weight: 700; color: var(--dark); white-space: nowrap; }

.fo-apc { display: flex; gap: 8px; margin-bottom: 8px; }
.fo-apc-chip { padding: 5px 12px 5px 30px; border-radius: 999px; font-size: 12.5px; font-weight: 700; position: relative; background: var(--light); }
.fo-apc-chip::before { content: ""; position: absolute; left: 10px; top: 50%; width: 14px; height: 10px; margin-top: -5px; border-radius: 3px; }
.fo-apc-chip--apc::before { background: #2e9e46; }
.fo-apc-chip--upc::before { background: #1f5fd1; }

/*** Responsive ***/
@media (max-width: 991.98px) {
    .fo-info { border-left: none; border-top: 1px solid #e6ecf8; }
    .fo-steps { grid-template-columns: repeat(2, 1fr); }
    .fo-step:nth-child(2)::after { display: none; }
}

@media (max-width: 767.98px) {
    /* En móvil el hub pasa a una cuadrícula: los rayos no caben bien */
    .fo-hub { aspect-ratio: auto; max-width: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .fo-hub-ring,
    .fo-spoke-line { display: none; }
    .fo-hub-core { position: relative; left: auto; top: auto; margin: 0 auto 8px; grid-column: 1 / -1; width: 110px; height: 110px; }
    .fo-spoke { position: static; width: auto; height: auto; transform: none; }
    .fo-brand,
    .fo-brand:hover,
    .fo-brand:focus-visible { position: relative; left: auto; margin: 0; width: 100%; transform: none; }
    .fo-map-tabs { overflow-x: auto; }
    /* El mapa se desliza de lado para que las etiquetas sigan siendo legibles */
    .fo-map-stage { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    #foMapSvg { min-width: 640px; }
    .fo-map-stage::after { content: "\2194  Desliza para ver todo el mapa"; position: sticky; left: 0; display: block; padding: 6px 14px; font-size: 12px; color: rgba(255, 255, 255, .6); }
    .fo-meter-scale span:nth-child(2),
    .fo-meter-scale span:nth-child(5) { display: none; }
    .fo-tab { white-space: nowrap; padding: 10px 14px; font-size: 14px; }
    .fo-ctl--alert { margin-left: 0; }
    .fo-calc,
    .fo-mod { padding: 18px; }
    .fo-reach-row { grid-template-columns: 96px 1fr; gap: 8px; }
    .fo-reach-name { font-size: 13.5px; }
    .fo-reach-scale { margin-left: 104px; }
    .fo-mod-tab { padding: 8px 16px; }
    .fo-calc-rx strong { font-size: 2.1rem; }
    .fo-cable { padding: 26px 16px 20px; }
}

@media (max-width: 575.98px) {
    .fo-steps { grid-template-columns: 1fr; }
    .fo-step::after { display: none; }
    .fo-stat strong { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .fo-beam,
    .fo-wave span::after,
    .fo-hub-ring,
    .fo-hub-core::after,
    .fo-spoke-line::after,
    .fo-reach-bar::after,
    .fm-pulse,
    .fm-link.is-cut,
    .fm-node.is-down .fm-halo { animation: none !important; }
}
