/********** Página de configuraciones de red (configuraciones.html) **********/
/* Paleta del diagrama de balanceo (price.html): azul ISP 1, ámbar ISP 2, verde VoIP, rojo failover */

/*** Manchas orgánicas de fondo ***/
.cf-blob {
    position: absolute;
    z-index: 0;
    width: 420px;
    height: 420px;
    pointer-events: none;
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    filter: blur(50px);
    opacity: .45;
    animation: cf-morph 18s ease-in-out infinite alternate;
}

.cf-blob--a { top: 10%; left: -120px; background: radial-gradient(circle at 30% 30%, #4fa3ff, transparent 70%); }
.cf-blob--b { bottom: -80px; right: -100px; background: radial-gradient(circle at 60% 40%, #15ACE1, transparent 70%); animation-delay: -6s; opacity: .35; }
.cf-blob--c { top: 80px; right: -160px; background: radial-gradient(circle, rgba(19, 99, 198, .35), transparent 70%); opacity: .5; }
.cf-blob--d { top: -140px; left: 30%; background: radial-gradient(circle, rgba(255, 193, 7, .35), transparent 70%); opacity: .5; }

@keyframes cf-morph {
    0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(0, 0) rotate(0); }
    50% { border-radius: 63% 37% 45% 55% / 55% 62% 38% 45%; transform: translate(30px, -20px) rotate(40deg); }
    100% { border-radius: 38% 62% 35% 65% / 62% 38% 62% 38%; transform: translate(-20px, 25px) rotate(-30deg); }
}


/*** Hero ***/
.cf-hero { overflow: hidden; }
.cf-hero .container { position: relative; z-index: 2; }

.cf-hl {
    background: linear-gradient(90deg, #8fc2ff, #63e6be, #ffc107, #8fc2ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: cf-shift 8s linear infinite;
}

@keyframes cf-shift { to { background-position: 300% 0; } }

.cf-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cf-hero-tags span {
    --c: #8fc2ff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 999px;
    font: 600 13px "Ubuntu", sans-serif;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
}

.cf-hero-tags span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 10px var(--c);
    animation: cf-led 2.4s ease-in-out infinite;
}

.cf-hero-tags span:nth-child(2)::before { animation-delay: .4s; }
.cf-hero-tags span:nth-child(3)::before { animation-delay: .8s; }
.cf-hero-tags span:nth-child(4)::before { animation-delay: 1.2s; }
.cf-hero-tags span:nth-child(5)::before { animation-delay: 1.6s; }
.cf-hero-tags span:nth-child(6)::before { animation-delay: 2s; }

@keyframes cf-led { 50% { opacity: .35; } }

@media (min-width: 992px) {
    .cf-hero-tags { justify-content: flex-start; }
}

/* Consola */
.cf-console {
    position: relative;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(20, 24, 62, .92) 0%, rgba(27, 34, 87, .92) 100%);
    border: 1px solid rgba(143, 194, 255, .35);
    box-shadow: 0 30px 60px rgba(5, 10, 40, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
    animation: cf-float 7s ease-in-out infinite;
}

@keyframes cf-float { 50% { transform: translateY(-10px); } }

.cf-console-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .8);
    font: 500 13px "Ubuntu", sans-serif;
}

.cf-dots { display: inline-flex; gap: 6px; }
.cf-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }
.cf-dots i:nth-child(2) { background: #ffc107; }
.cf-dots i:nth-child(3) { background: #2ecc71; }

.cf-console-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-console-title .fa { color: #8fc2ff; margin-right: 4px; }

.cf-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #2ecc71;
}

.cf-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    animation: cf-led 1.4s ease-in-out infinite;
}

.cf-console-body {
    margin: 0;
    height: 196px;
    padding: 16px 18px;
    overflow: hidden;
    color: #d0e4ff;
    font: 12.5px/1.65 Consolas, "SFMono-Regular", Menlo, monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.cf-console-body .p { color: #63e6be; }
.cf-console-body .k { color: #ffc107; }
.cf-console-body .o { color: rgba(208, 228, 255, .6); }
.cf-console-body .ok { color: #2ecc71; }
.cf-console-body .bad { color: #ff6b6b; }

.cf-caret {
    display: inline-block;
    width: 8px;
    height: 15px;
    vertical-align: -2px;
    background: #8fc2ff;
    animation: cf-blink 1s steps(1) infinite;
}

@keyframes cf-blink { 50% { opacity: 0; } }

.cf-wan {
    display: grid;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.cf-wan-row {
    --c: #8fc2ff;
    display: grid;
    grid-template-columns: 118px 1fr 42px;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .85);
    font: 500 12.5px "Ubuntu", sans-serif;
}

.cf-wan-row span .fa { color: var(--c); font-size: 8px; vertical-align: 2px; margin-right: 4px; }
.cf-wan-row b { text-align: right; color: var(--c); font-weight: 700; }

.cf-wan-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
}

.cf-wan-bar i {
    display: block;
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: repeating-linear-gradient(110deg, var(--c) 0 12px, rgba(255, 255, 255, .55) 12px 14px, var(--c) 14px 20px);
    background-size: 40px 100%;
    box-shadow: 0 0 12px var(--c);
    transition: width .9s cubic-bezier(.4, 0, .2, 1);
    animation: cf-stripes 1s linear infinite;
}

.cf-wan-row.is-down { --c: #ff6b6b; }

@keyframes cf-stripes { to { background-position: 40px 0; } }

@media (max-width: 575.98px) {
    .cf-console { border-radius: 18px; margin-bottom: 1.5rem; }
    .cf-console-body { height: 170px; font-size: 11.5px; padding: 12px 14px; }
    .cf-wan-row { grid-template-columns: 100px 1fr 38px; font-size: 11.5px; gap: 8px; }
}


/*** Cinta de tecnologías ***/
.cf-ticker {
    position: relative;
    overflow: hidden;
    padding: 14px 0;
    background: linear-gradient(90deg, var(--dark), #1b2257, var(--dark));
}

.cf-ticker-track {
    display: flex;
    width: max-content;
    animation: cf-marquee 40s linear infinite;
}

.cf-ticker:hover .cf-ticker-track { animation-play-state: paused; }

.cf-ticker-track span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 26px;
    color: rgba(255, 255, 255, .85);
    font: 500 15px "Ubuntu", sans-serif;
    white-space: nowrap;
}

.cf-ticker-track span .fa { color: #8fc2ff; }
.cf-ticker-track span:nth-child(3n+2) .fa { color: #ffc107; }
.cf-ticker-track span:nth-child(3n) .fa { color: #2ecc71; }

@keyframes cf-marquee { to { transform: translateX(-50%); } }


/*** Laboratorio ***/
.cf-lab-wrap {
    position: relative;
    background:
        radial-gradient(600px 300px at 10% 0%, rgba(19, 99, 198, .07), transparent 70%),
        radial-gradient(500px 300px at 95% 100%, rgba(21, 172, 225, .08), transparent 70%);
}

.cf-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.75rem;
}

.cf-tab {
    --c: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px 8px 8px;
    border: 1px solid rgba(20, 24, 62, .1);
    border-radius: 999px;
    background: #fff;
    color: var(--dark);
    font: 600 14.5px "Ubuntu", sans-serif;
    box-shadow: 0 4px 14px rgba(20, 24, 62, .06);
    transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}

.cf-tab i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--c);
    font-size: 14px;
    transition: background .25s, color .25s;
}

.cf-tab:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 8px 20px rgba(20, 24, 62, .12); }

.cf-tab.is-active {
    color: #fff;
    background: var(--c);
    border-color: var(--c);
    box-shadow: 0 10px 24px rgba(20, 24, 62, .22);
}

.cf-tab.is-active i { color: var(--c); background: #fff; }

.cf-tab:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }

@media (max-width: 767.98px) {
    /* Fila deslizable en celular */
    .cf-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin: 0 -12px 1.25rem;
        padding: 4px 12px 10px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .cf-tabs::-webkit-scrollbar { display: none; }
    .cf-tab { flex: none; scroll-snap-align: start; font-size: 13.5px; }
}

/* Escenario */
.cf-stage {
    --c: #4fa3ff;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 16px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(160deg, var(--dark) 0%, #1b2257 100%);
    box-shadow: 0 24px 50px rgba(20, 24, 62, .28);
    overflow: hidden;
}

.cf-stage-glow {
    position: absolute;
    top: -35%;
    right: -15%;
    width: 70%;
    height: 90%;
    border-radius: 50%;
    background: var(--c);
    opacity: .22;
    filter: blur(60px);
    transition: background .6s;
    pointer-events: none;
}

.cf-stage-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.cf-stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--c);
    font: 600 13px "Ubuntu", sans-serif;
}

.cf-stage-pill .fa { color: var(--c); }

.cf-stage-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .85);
    font: 500 12.5px "Ubuntu", sans-serif;
}

.cf-stage-btn:hover { background: rgba(255, 255, 255, .14); }

.cf-stage svg {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin: auto 0;
}

/* Elementos del SVG */
.cf-link { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2.5; transition: stroke .4s; }
.cf-link-flow { fill: none; stroke: var(--lc, #4fa3ff); stroke-width: 2; stroke-dasharray: 5 9; opacity: .75; animation: cf-dash 1.1s linear infinite; transition: opacity .4s; }
.cf-link-flow.is-off { opacity: 0; }
.cf-link.is-dead { stroke: rgba(255, 107, 107, .5); stroke-dasharray: 4 6; }

@keyframes cf-dash { to { stroke-dashoffset: -28; } }

.cf-node rect { fill: #222a66; stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.cf-node .cf-accent { stroke: none; }
.cf-node { transition: opacity .4s; }
.cf-node.is-down rect.cf-box { fill: #4a1d2f; stroke: #ff6b6b; }
.cf-node.is-dim { opacity: .35; }
.cf-node--router rect.cf-box { fill: var(--primary); stroke: #8fc2ff; stroke-width: 2; }
.cf-halo { fill: none; stroke: #8fc2ff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: cf-halo 2.6s ease-out infinite; }

@keyframes cf-halo {
    0% { opacity: .6; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.15, 1.3); }
}

.cf-label { fill: #fff; font: 600 14.5px "Ubuntu", sans-serif; text-anchor: middle; }
.cf-sub { fill: rgba(255, 255, 255, .66); font: 400 11.5px "Open Sans", sans-serif; text-anchor: middle; }
.cf-label--router { font-size: 17px; }
/* Diagrama vertical (celular): cajas más angostas */
#cfSvg[data-mode="v"] .cf-label { font-size: 13px; }
#cfSvg[data-mode="v"] .cf-sub { font-size: 10.5px; }
#cfSvg[data-mode="v"] .cf-label--router { font-size: 15px; }
.cf-node--router .cf-sub { fill: #e3f0ff; }
.cf-ico { font: 900 14px "Font Awesome 5 Free"; text-anchor: middle; }
.cf-x { fill: #ff6b6b; font: 700 16px "Ubuntu", sans-serif; text-anchor: middle; opacity: 0; transition: opacity .3s; }
.cf-node.is-down .cf-x { opacity: 1; }
.cf-node.is-down .cf-led { fill: #ff6b6b; }

.cf-tag {
    fill: #ff6b6b;
    font: 700 11px "Ubuntu", sans-serif;
    text-anchor: middle;
    letter-spacing: .04em;
    paint-order: stroke;
    stroke: #1b2257;
    stroke-width: 5px;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity .3s;
}

.cf-tag.is-on { opacity: 1; }

.cf-burst { fill: none; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: cf-burst .6s ease-out forwards; }

@keyframes cf-burst {
    from { opacity: 1; transform: scale(.4); }
    to { opacity: 0; transform: scale(2.6); }
}

.cf-shield { opacity: .45; transition: opacity .25s; }
.cf-shield.is-hit { opacity: 1; }

.cf-status {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
    border-left: 4px solid var(--c);
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .9);
    transition: border-color .4s;
}

.cf-status .fa { color: var(--c); margin-top: 4px; }
.cf-status.is-alert { border-left-color: #ff6b6b; }
.cf-status.is-alert .fa { color: #ff6b6b; }

.cf-legend {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 10px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .72);
}

.cf-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cf-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 8px var(--lc); }

@media (max-width: 575.98px) {
    .cf-stage { padding: 14px 12px 12px; border-radius: 20px; }
    .cf-stage-btn span { display: none; }
    .cf-status { font-size: 13px; }
}

/* Panel explicativo */
.cf-panel {
    --c: var(--primary);
    position: relative;
    height: 100%;
    padding: 30px 28px 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(20, 24, 62, .08);
    box-shadow: 0 18px 40px rgba(20, 24, 62, .08);
    overflow: hidden;
}

.cf-panel-blob {
    position: absolute;
    top: -90px;
    right: -90px;
    width: 220px;
    height: 220px;
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    background: var(--c);
    opacity: .12;
    animation: cf-morph 14s ease-in-out infinite alternate;
    transition: background .5s;
    pointer-events: none;
}

.cf-panel > * { position: relative; }
.cf-panel > .cf-panel-blob { position: absolute; }

.cf-panel-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    color: #fff;
    font-size: 22px;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 55%), var(--c);
    border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
    box-shadow: 0 10px 22px rgba(20, 24, 62, .18);
    animation: cf-morph-sm 8s ease-in-out infinite alternate;
}

@keyframes cf-morph-sm {
    0% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; }
    100% { border-radius: 58% 42% 40% 60% / 40% 58% 42% 60%; }
}

.cf-panel-tag { margin-bottom: 4px; color: var(--c); font: 600 13px "Ubuntu", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.cf-panel-title { margin-bottom: 10px; font-size: 1.55rem; }
.cf-panel-text { margin-bottom: 14px; }

.cf-panel-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; }

.cf-panel-list li {
    position: relative;
    padding-left: 30px;
    line-height: 1.5;
}

.cf-panel-list li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font: 900 10px "Font Awesome 5 Free";
    color: #fff;
    background: var(--c);
}

.cf-panel.is-swap > :not(.cf-panel-blob) { animation: cf-in .45s ease both; }

@keyframes cf-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.cf-panel #cfPanelCta { background: var(--c); border-color: var(--c); }
.cf-panel #cfPanelCta:hover { filter: brightness(1.1); }

.cf-code { border-radius: 14px; background: #f1f5fb; }

.cf-code summary {
    padding: 11px 14px;
    cursor: pointer;
    color: var(--dark);
    font: 600 14px "Ubuntu", sans-serif;
    list-style: none;
}

.cf-code summary::-webkit-details-marker { display: none; }
.cf-code summary::after { content: "\f107"; float: right; font: 900 14px "Font Awesome 5 Free"; transition: transform .25s; }
.cf-code[open] summary::after { transform: rotate(180deg); }
.cf-code summary .fa { color: var(--c); margin-right: 4px; }

.cf-code-box { position: relative; margin: 0 10px; }

.cf-code-box pre {
    margin: 0;
    max-height: 260px;
    padding: 14px;
    overflow: auto;
    border-radius: 10px;
    background: var(--dark);
    color: #d0e4ff;
    font: 12px/1.6 Consolas, "SFMono-Regular", Menlo, monospace;
    white-space: pre;
}

.cf-code-box pre .c { color: #7f8bb8; }

.cf-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    padding: 4px 10px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font: 500 12px "Ubuntu", sans-serif;
}

.cf-copy:hover { background: rgba(255, 255, 255, .25); }

.cf-code-note { margin: 10px 14px 0; padding-bottom: 12px; font-size: 12.5px; color: #6c757d; }

@media (max-width: 575.98px) {
    .cf-panel { padding: 24px 20px 22px; border-radius: 20px; }
    .cf-panel-title { font-size: 1.35rem; }
}


/*** Catálogo ***/
.cf-cat-wrap { position: relative; overflow: hidden; }

.cf-card {
    --c: var(--primary);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px 22px 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(20, 24, 62, .08);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(20, 24, 62, .05);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.165, .84, .44, 1), box-shadow .35s, border-color .35s;
}

/* Mancha del color del servicio en la esquina */
.cf-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 170px;
    height: 170px;
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    background: var(--c);
    opacity: .09;
    transition: transform .6s, opacity .35s;
}

/* Línea de datos en la base, como los enlaces del diagrama */
.cf-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--c) 0 10px, transparent 10px 18px);
    background-size: 36px 100%;
    opacity: .35;
    animation: cf-stripes-x 1.4s linear infinite;
    transition: opacity .35s, height .35s;
}

@keyframes cf-stripes-x { to { background-position: 36px 0; } }

.cf-card > * { position: relative; }

.cf-card:hover,
.cf-card:focus-visible {
    color: inherit;
    transform: translateY(-8px);
    border-color: var(--c);
    box-shadow: 0 22px 40px rgba(20, 24, 62, .14);
}

.cf-card:hover::before { transform: scale(1.5) rotate(60deg); opacity: .15; }
.cf-card:hover::after { opacity: 1; height: 5px; }

.cf-card-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    color: #fff;
    font-size: 21px;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 55%), var(--c);
    border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
    box-shadow: 0 10px 20px rgba(20, 24, 62, .15);
    transition: border-radius .6s, transform .35s;
}

.cf-card:hover .cf-card-icon { border-radius: 58% 42% 40% 60% / 40% 58% 42% 60%; transform: rotate(-8deg) scale(1.06); }

.cf-card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.cf-card p { margin-bottom: 14px; font-size: 14.5px; line-height: 1.55; }

.cf-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.cf-card-tags em {
    padding: 2px 9px;
    border-radius: 999px;
    font: 600 11.5px "Ubuntu", sans-serif;
    font-style: normal;
    color: var(--c);
    border: 1px solid currentColor;
}

.cf-card-go {
    margin-top: auto;
    color: var(--c);
    font: 600 14px "Ubuntu", sans-serif;
}

.cf-card-go .fa { margin-left: 4px; transition: transform .25s; }
.cf-card:hover .cf-card-go .fa { transform: translateX(5px); }


/*** Nivel empresarial ***/
.cf-photo {
    --c: var(--primary);
    position: relative;
    display: block;
    height: 100%;
    border-radius: 22px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(20, 24, 62, .07);
    transition: transform .35s cubic-bezier(.165, .84, .44, 1), box-shadow .35s;
}

.cf-photo:hover { color: inherit; transform: translateY(-8px); box-shadow: 0 22px 40px rgba(20, 24, 62, .16); }

.cf-photo-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.cf-photo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.cf-photo:hover .cf-photo-img img { transform: scale(1.07); }

.cf-photo-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, var(--c));
    opacity: .55;
}

.cf-photo-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--c);
    font: 600 12.5px "Ubuntu", sans-serif;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

.cf-photo-body { display: block; padding: 20px 22px 22px; }
.cf-photo-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.cf-photo-body p { margin-bottom: 0; font-size: 14.5px; }


/*** Video y pasos ***/
.cf-video {
    position: relative;
    z-index: 0;
    padding: 12px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 24px 50px rgba(19, 99, 198, .25);
}

.cf-video::before {
    content: "";
    position: absolute;
    top: -18px;
    left: -18px;
    width: 110px;
    height: 110px;
    z-index: -1;
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    background: rgba(255, 193, 7, .5);
    animation: cf-morph 12s ease-in-out infinite alternate;
}

.cf-video iframe { border: 0; border-radius: 16px; }

.cf-steps {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    counter-reset: cf-step;
}

.cf-steps li {
    --c: var(--primary);
    position: relative;
    padding: 0 0 14px 48px;
    counter-increment: cf-step;
}

.cf-steps li::before {
    content: counter(cf-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
    color: #fff;
    font: 700 14px "Ubuntu", sans-serif;
    background: var(--c);
    box-shadow: 0 6px 14px rgba(20, 24, 62, .15);
}

/* Enlace punteado y animado entre pasos */
.cf-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 38px;
    bottom: 2px;
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--c) 0 5px, transparent 5px 10px);
    background-size: 2px 20px;
    animation: cf-down 1s linear infinite;
    opacity: .6;
}

@keyframes cf-down { to { background-position: 0 20px; } }

.cf-steps b { display: block; color: var(--dark); font-family: "Ubuntu", sans-serif; }
.cf-steps span { display: block; font-size: 14.5px; }


/*** CTA ***/
.cf-cta {
    position: relative;
    padding: 40px 36px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--dark) 0%, #1b2257 55%, var(--primary) 100%);
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(20, 24, 62, .25);
}

@media (max-width: 575.98px) {
    .cf-cta { padding: 30px 20px; border-radius: 22px; }
    .cf-cta h2 { font-size: 1.5rem; }
}


/*** Movimiento reducido ***/
@media (prefers-reduced-motion: reduce) {
    .cf-blob, .cf-hl, .cf-console, .cf-ticker-track, .cf-wan-bar i, .cf-link-flow,
    .cf-halo, .cf-panel-blob, .cf-panel-icon, .cf-card::after,
    .cf-video::before, .cf-steps li::after, .cf-hero-tags span::before, .cf-live::before { animation: none !important; }
    .cf-ticker { overflow-x: auto; }
}
