/* RNOVA · movimiento */
.mv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botón de menú */
.mv-menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: 4px; border: 1px solid var(--line, #ffffff22); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; flex: none; }
.mv-menu-btn:hover, .mv-menu-btn:focus-visible { border-color: var(--red, #ff3348); }
.mv-burger { display: grid; gap: 4px; width: 18px; }
.mv-burger i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: width .25s; }
.mv-burger i:nth-child(2) { width: 70%; justify-self: end; }
.mv-menu-btn:hover .mv-burger i:nth-child(2) { width: 100%; }
@media (max-width: 620px) {
  .mv-js .site-header nav[aria-label="Principal"], .mv-js .site-header nav[aria-label="Ruta de navegación"] { display: none; }
  .mv-js .header-inner { flex-wrap: nowrap; padding-block: 10px; }
  .mv-js .header-inner > .brand { margin-right: auto; }
}
@media (max-width: 440px) { .mv-js .site-header .header-cta { display: none; } }

/* Menú a pantalla completa */
.mv-locked { overflow: hidden; }
.mv-menu { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto 1fr auto; padding: 18px clamp(20px, 5vw, 60px) 28px; color: #fff;
  background: linear-gradient(115deg, #101a3a 0%, #3b1a55 42%, #b0234f 78%, #ff3348 100%);
  clip-path: inset(0 0 100% 0); transition: clip-path .55s cubic-bezier(.7, 0, .2, 1); }
.mv-menu.is-open { clip-path: inset(0 0 0 0); }
.mv-menu-close { justify-self: end; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #ffffff55; background: transparent; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.mv-menu-close:hover, .mv-menu-close:focus-visible { background: #ffffff18; }
.mv-menu nav { align-self: center; justify-self: center; }
.mv-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(4px, 1.2vh, 14px); text-align: center; }
.mv-menu li { opacity: 0; transform: translateY(22px); transition: opacity .45s, transform .45s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 60ms + 200ms); }
.mv-menu.is-open li { opacity: 1; transform: none; }
.mv-menu nav a { position: relative; display: inline-block; padding: 4px 6px; font: 700 clamp(28px, 5.2vw, 58px)/1.15 var(--display, sans-serif); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.mv-menu nav a::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 3px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.mv-menu nav a:hover::after, .mv-menu nav a:focus-visible::after { transform: scaleX(1); }
.mv-menu-foot { text-align: center; font-size: 14px; color: #ffffffcc; }
.mv-menu-foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Entrada del titular */
.mv-js .hero .hero-label, .mv-js .hero h1, .mv-js .hero .lead, .mv-js .hero .actions, .mv-js .hero .stats { animation: mv-up .9s cubic-bezier(.2, .7, .2, 1) both; }
.mv-js .hero h1 { animation-delay: .12s; }
.mv-js .hero .lead { animation-delay: .3s; }
.mv-js .hero .actions { animation-delay: .45s; }
.mv-js .hero .stats { animation-delay: .6s; }
@keyframes mv-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Fondo animado del titular */
.mv-hero-fx { position: absolute; z-index: -1; inset: 0 0 0 38%; pointer-events: none; overflow: hidden; }
.mv-line { position: absolute; top: var(--t); right: 6%; width: var(--w); height: 7px; border-radius: 7px; opacity: .5; animation: mv-drift var(--dur) ease-in-out infinite alternate; }
.mv-line-r { background: linear-gradient(90deg, transparent, #ff3348aa 30%, #ff334866); }
.mv-line-g { background: linear-gradient(90deg, transparent, #ffffff26 35%, #ffffff12); }
@keyframes mv-drift { from { transform: translateX(var(--off)); } to { transform: translateX(calc(var(--off) * -1)); } }
.mv-star { position: absolute; left: var(--x); top: var(--y); width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .2; animation: mv-twinkle 4s ease-in-out var(--d) infinite; }
@keyframes mv-twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .8; } }
@media (max-width: 620px) { .mv-hero-fx { inset: 0 0 0 20%; opacity: .55; } }

/* Revelados */
.mv { opacity: 0; transform: translateX(-28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--mv-d, 0ms); }
.mv.mv-in { opacity: 1; transform: none; }
.partner-grid > li.mv, .service-list > li.mv, .application-cards > li.mv, .faq-list > details.mv, .contact-data > li.mv { transform: translateY(24px); }
.partner-grid > li.mv.mv-in, .service-list > li.mv.mv-in, .application-cards > li.mv.mv-in, .faq-list > details.mv.mv-in, .contact-data > li.mv.mv-in { transform: none; }

/* Barra roja que descubre */
.mv-wipe { position: relative; }
.mv-cover { position: absolute; inset: -2px; z-index: 4; background: var(--bg, #0b0c0e); transform-origin: right center; pointer-events: none; }
.mv-wipe.mv-in .mv-cover { animation: mv-cover 1s cubic-bezier(.7, 0, .2, 1) var(--mv-d, 0ms) forwards; }
@keyframes mv-cover { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.mv-bar { position: absolute; top: 0; bottom: 0; left: 0; width: 12px; z-index: 5; background: var(--red, #ff3348); opacity: 0; pointer-events: none; border-radius: 2px; }
.mv-wipe.mv-in .mv-bar { animation: mv-bar 1s cubic-bezier(.7, 0, .2, 1) var(--mv-d, 0ms) forwards; }
@keyframes mv-bar { 0% { left: 0; opacity: 1; } 88% { left: calc(100% - 12px); opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }

/* Números grandes de sección */
.mv-num-host { position: relative; }
.mv-num { position: absolute; right: max(var(--pad, 20px), calc((100% - 1260px) / 2)); top: clamp(24px, 5vw, 70px); z-index: 0; pointer-events: none;
  font: 800 clamp(72px, 11vw, 170px)/1 var(--display, sans-serif); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px #ff334870;
  opacity: 0; transform: translateY(24px); transition: opacity 1s ease .25s, transform 1s cubic-bezier(.2, .7, .2, 1) .25s; }
.mv-num.mv-in { opacity: 1; transform: none; }
.mv-num-host > *:not(.mv-num) { position: relative; z-index: 1; }
@media (max-width: 620px) { .mv-num { font-size: 64px; top: 18px; } }

/* Indicador de secciones */
.mv-rail { position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 50; display: none; }
@media (min-width: 1360px) { .mv-rail { display: block; } }
.mv-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mv-rail a { display: flex; align-items: center; gap: 10px; min-height: 22px; color: #c9c9d2; }
.mv-rail-dash { display: block; width: 14px; height: 2px; background: #ffffff55; transition: width .3s, background .3s; }
.mv-rail-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; white-space: nowrap; background: #0b0c0ecc; padding: 2px 6px; border-radius: 4px; }
.mv-rail a:hover .mv-rail-label, .mv-rail a:focus-visible .mv-rail-label { opacity: 1; transform: none; }
.mv-rail a[aria-current="true"] .mv-rail-dash { width: 30px; background: var(--red, #ff3348); }

/* Sin movimiento para quien lo pide */
@media (prefers-reduced-motion: reduce) {
  .mv, .mv-num { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mv-bar, .mv-cover, .mv-hero-fx { display: none !important; }
  .mv-js .hero .hero-label, .mv-js .hero h1, .mv-js .hero .lead, .mv-js .hero .actions, .mv-js .hero .stats { animation: none !important; }
  .mv-menu, .mv-menu li { transition: none !important; }
}

/* Esquema "Tu servidor en España" */
.infra-diagram { margin: 0; padding: clamp(10px, 2vw, 22px); border: 1px solid var(--line, #ffffff1f); border-radius: 13px; background: radial-gradient(ellipse at 50% 50%, #2a1219 0%, #14161b 62%); }
.infra-diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.ifx-ring { fill: none; stroke: #ff334855; stroke-width: 1.5; stroke-dasharray: 4 7; }
.ifx-glow { fill: #ff33481a; }
.ifx-link { stroke: #ff3348; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .75; }
.ifx-node rect { fill: #1d2027; stroke: #ffffff30; }
.ifx-node text { fill: #f1f1f4; font: 600 13px/1 var(--body, sans-serif); text-anchor: middle; }
.ifx-core rect { fill: #ff3348; }
.ifx-core-t { fill: #fff; font: 800 17px/1 var(--display, sans-serif); text-anchor: middle; letter-spacing: -.02em; }
.ifx-core-s { fill: #ffffffd9; font: 600 12px/1 var(--body, sans-serif); text-anchor: middle; letter-spacing: .08em; }
.ifx-shield path { fill: none; stroke: #ff7380; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ifx-cap { margin-top: 10px; color: #c9c9d2; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
@media (max-width: 620px) { .ifx-node text { font-size: 17px; } .ifx-core-t { font-size: 20px; } .ifx-core-s { font-size: 14px; } }
.ifx-packet { fill: #fff; opacity: 0; }
.mv-js .infra-diagram .ifx-link { stroke-dashoffset: 1; }
.mv-js .infra-diagram .ifx-node, .mv-js .infra-diagram .ifx-core, .mv-js .infra-diagram .ifx-shield, .mv-js .infra-diagram .ifx-cap { opacity: 0; }
.mv-js .infra-diagram .ifx-ring { stroke-dashoffset: 0; opacity: 0; }
.mv-js .infra-diagram.mv-in .ifx-core { animation: ifx-pop .6s cubic-bezier(.2,.7,.2,1) .7s forwards; transform-box: fill-box; transform-origin: center; }
.mv-js .infra-diagram.mv-in .ifx-link { animation: ifx-draw .7s ease calc(1s + var(--k) * .12s) forwards; }
.mv-js .infra-diagram.mv-in .ifx-node { animation: ifx-pop .5s cubic-bezier(.2,.7,.2,1) calc(1.3s + var(--k) * .12s) forwards; transform-box: fill-box; transform-origin: center; }
.mv-js .infra-diagram.mv-in .ifx-ring { animation: ifx-fade 1s ease 2.1s forwards, ifx-spin 60s linear 2.1s infinite; transform-box: fill-box; transform-origin: center; }
.mv-js .infra-diagram.mv-in .ifx-shield, .mv-js .infra-diagram.mv-in .ifx-cap { animation: ifx-fade .8s ease 2.3s forwards; }
.mv-js .infra-diagram.mv-in .ifx-packet { animation: ifx-travel 2.8s ease-in-out calc(2.4s + var(--k) * .45s) infinite; }
.mv-js .infra-diagram.mv-in .ifx-glow { animation: ifx-pulse 3.2s ease-in-out 1s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ifx-draw { to { stroke-dashoffset: 0; } }
@keyframes ifx-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes ifx-fade { to { opacity: 1; } }
@keyframes ifx-spin { to { transform: rotate(360deg); } }
@keyframes ifx-travel { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 70% { opacity: 1; transform: translate(var(--dx), var(--dy)); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes ifx-pulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.18); opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .mv-js .infra-diagram .ifx-link { stroke-dashoffset: 0 !important; }
  .mv-js .infra-diagram .ifx-node, .mv-js .infra-diagram .ifx-core, .mv-js .infra-diagram .ifx-shield, .mv-js .infra-diagram .ifx-cap, .mv-js .infra-diagram .ifx-ring { opacity: 1 !important; animation: none !important; }
  .infra-diagram .ifx-packet { display: none; }
  .infra-diagram .ifx-glow { animation: none !important; }
}

/* Esquemas de flujo */
.flowfx { margin: 0 0 28px; padding: clamp(10px, 2vw, 20px); border: 1px solid var(--line, #ffffff1f); border-radius: 13px; background: radial-gradient(ellipse at 50% 30%, #24121a 0%, #14161b 70%); }
.flowfx svg { display: block; width: 100%; height: auto; overflow: visible; }
.flowfx .ffx-v { display: none; max-width: 420px; margin-inline: auto; }
.ffx-nube .ffx-v { display: block; }
@media (max-width: 760px) { .flowfx .ffx-h { display: none; } .flowfx .ffx-v { display: block; } .ffx-ia .ffx-sub { font-size: 15px; } .ffx-ia .ffx-ptitle { font-size: 21px; } }
.ffx-node rect { fill: #1d2027; stroke: #ffffff30; }
.ffx-core rect { fill: #ff3348; stroke: none; }
.ffx-num { fill: #ff7380; font: 700 12px/1 var(--body, sans-serif); letter-spacing: .14em; }
.ffx-core .ffx-num { fill: #ffffffcc; }
.ffx-title { fill: #f4f4f6; font: 800 17px/1 var(--display, sans-serif); letter-spacing: -.01em; }
.ffx-sub { fill: #b9b9c4; font: 500 12.5px/1 var(--body, sans-serif); }
.ffx-core .ffx-sub { fill: #ffffffd9; }
.ffx-link { stroke: #ff3348; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ffx-arrow { fill: none; stroke: #ff3348; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ffx-ltext { fill: #ff9aa4; font: 600 12px/1 var(--body, sans-serif); text-anchor: middle; letter-spacing: .04em; }
.ffx-ltext-v { text-anchor: start; }
.ffx-packet { fill: #fff; opacity: 0; }
.ffx-frame { fill: #ffffff05; stroke: #ffffff26; stroke-dasharray: 5 6; }
.ffx-frame-in { stroke: #ff334880; }
.ffx-ptitle { fill: #fff; font: 800 18px/1 var(--display, sans-serif); }
.ffx-cap { fill: #c9c9d2; }
.ffx-shield path { fill: none; stroke: #ff7380; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mv-js .flowfx .ffx-node, .mv-js .flowfx .ffx-arrow, .mv-js .flowfx .ffx-ltext, .mv-js .flowfx .ffx-panel { opacity: 0; }
.mv-js .flowfx .ffx-link { stroke-dashoffset: 1; }
.mv-js .flowfx.mv-in .ffx-panel { animation: ifx-fade .6s ease calc(.5s + var(--k) * .35s) forwards; }
.mv-js .flowfx.mv-in .ffx-node { animation: ifx-pop .5s cubic-bezier(.2,.7,.2,1) calc(.7s + var(--k) * .35s) forwards; transform-box: fill-box; transform-origin: center; }
.mv-js .flowfx.mv-in .ffx-link { animation: ifx-draw .45s ease calc(1s + var(--k) * .35s) forwards; }
.mv-js .flowfx.mv-in .ffx-arrow, .mv-js .flowfx.mv-in .ffx-ltext { animation: ifx-fade .3s ease calc(1.35s + var(--k) * .35s) forwards; }
.mv-js .flowfx.mv-in .ffx-packet { animation: ifx-travel 2.6s ease-in-out calc(2.8s + var(--k) * .5s) infinite; }
@media (prefers-reduced-motion: reduce) {
  .mv-js .flowfx .ffx-node, .mv-js .flowfx .ffx-arrow, .mv-js .flowfx .ffx-ltext, .mv-js .flowfx .ffx-panel { opacity: 1 !important; animation: none !important; }
  .mv-js .flowfx .ffx-link { stroke-dashoffset: 0 !important; animation: none !important; }
  .flowfx .ffx-packet { display: none; }
}

/* Esquemas en estrella y contacto */
.ffx-hub .ifx-node text { font-size: 14px; }
@media (max-width: 620px) { .ffx-hub .ifx-node text { font-size: 15px; } }
.ffx-contact { margin: 22px 0 6px; }

.ffx-caption { margin: 0 0 10px; color: #ff7380; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

/* patch10: contacto a todo el ancho */
.ffx-contact-wrap { margin-top: 56px; }
.ffx-contact-wide { margin: 0; padding: 28px 28px 18px; }
.ffx-contact-wide .ffx-h { max-width: 1060px; margin-inline: auto; }
.ffx-contact-wide .ffx-caption { text-align: center; }
@media (max-width: 760px) { .ffx-contact-wrap { margin-top: 36px; } .ffx-contact-wide { padding: 20px 14px 10px; } .ffx-contact-wide .ffx-v { max-width: 380px; margin-inline: auto; } }

/* patch11: clientes actuales */
.clients-band { padding-block: clamp(44px, 7vw, 80px); background: radial-gradient(ellipse at 15% 50%, #3a1520, transparent 60%), #121318; border-block: 1px solid #ffffff14; }
.clients-band-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 5vw, 64px); }
.clients-band h2 { margin-top: 10px; font-size: clamp(30px, 4vw, 54px); line-height: 1.04; letter-spacing: -.06em; }
.clients-band p:not(.eyebrow) { max-width: 58ch; margin-top: 14px; color: var(--muted, #b9b7c2); }
.clients-band .button { flex: none; }
.application-clients .application-intro .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.application-clients .ffx-hub svg { width: 100%; height: auto; }
#client-check { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 16px; }
#client-check .check-results { position: sticky; top: 90px; }
#client-check #recommendations a { color: #ff9ba7; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.client-cta { display: flex; justify-content: center; margin-top: 18px; }
.client-cta[hidden] { display: none; }
.clients-contact-text { max-width: 60ch; margin: 14px auto 0; color: var(--muted, #b9b7c2); }
.clients-contact-text a { color: #ff9ba7; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .clients-band-inner { flex-direction: column; align-items: flex-start; } }
@media (max-width: 680px) { #client-check { grid-template-columns: minmax(0, 1fr); } #client-check .check-results { position: static; } }

/* patch13: carrusel de clientes en móvil */
@media (hover: none) { .client-marquee:hover .client-logos { animation-play-state: running; } }
@media (prefers-reduced-motion: reduce) {
  .client-marquee { display: flex; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .client-marquee::-webkit-scrollbar { display: none; }
  .client-marquee .client-logos { display: flex; min-width: max-content; animation: none; }
  .client-marquee .client-logos li { width: 118px; scroll-snap-align: start; }
  .client-marquee .client-logos[aria-hidden="true"] { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 700px) { .client-marquee .client-logos li { width: 92px; } }

/* patch14: web orientada a problemas */
.partner-diag { margin-top: 22px; color: var(--muted, #b9b7c2); }
.partner-diag a { color: #ff9ba7; text-decoration: underline; text-underline-offset: 4px; }
.diag-title { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.04; }
.application-diag .cyber-panel { padding-top: clamp(48px, 8vw, 96px); }
.sector-more { margin: 34px 0 18px; padding: clamp(18px, 3vw, 28px); border: 1px solid #ff4d6040; border-radius: 12px; background: linear-gradient(135deg, #2a1820, #17181d 65%); }
.legal-page .legal .sector-more h2 { margin-top: 0; }
.sector-more p { margin-top: 8px; }
.sector-more a { color: #ff9ba7; text-decoration: underline; text-underline-offset: 3px; }
