/* =========================================================
   MIOKON · Presupuesto, APU y cronograma
   Estilos propios de esta página. Reutiliza los tokens y
   componentes de /styles.css (nav, botones, secciones, pie).
   ========================================================= */

/* ---------- Encabezado principal ---------- */
.fu-hero { padding-bottom: clamp(56px, 7vw, 96px); }
.fu-hero-lay { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.fu-crumbs { margin-bottom: 18px; }
.fu-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--mut-o); }
.fu-crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(140, 192, 255, .45); }
.fu-crumbs a { color: var(--cian); text-underline-offset: 3px; }
.fu-crumbs a:hover { color: #fff; }
.fu-h1 { margin-top: 24px; font-size: clamp(36px, 4.8vw, 66px); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; font-stretch: 94%; text-wrap: balance; }
.fu-h1-a { display: block; }
.fu-h1 em { display: block; margin-top: .18em; font-style: normal; font-size: .72em; line-height: 1.12; font-weight: 700; letter-spacing: -.015em; color: #D5E2F6; }
.fu-h1 em::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 18px; background: var(--naranja); }
.fu-sub { max-width: 600px; }

.fu-hero-fig { display: grid; justify-items: center; gap: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid rgba(140, 192, 255, .2); border-radius: var(--r); background: rgba(5, 18, 39, .45); }
.fu-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.fu-doc { position: relative; display: grid; gap: 4px; padding: 16px 12px 14px; border-radius: 10px; background: #fff; color: var(--tinta); box-shadow: var(--sh-1); text-align: center; }
.fu-doc::after { content: ""; position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: linear-gradient(225deg, var(--abismo) 50%, var(--linea) 50%); border-radius: 0 10px 0 0; }
.fu-doc b { font-size: 17px; font-weight: 800; }
.fu-doc small { font-size: 12.5px; color: var(--mut); line-height: 1.3; }
.fu-ext { justify-self: center; display: inline-block; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; padding: 2px 8px; border-radius: 5px; color: #fff; background: var(--plano); }
.fu-doc-g .fu-ext, .fu-tc:last-of-type .fu-ext { background: var(--ok-t); }
.fu-join { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; height: 34px; }
.fu-join i { position: relative; }
.fu-join i::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--cian), var(--naranja)); opacity: .8; }
.fu-join-1 { grid-template-columns: 1fr; height: 28px; }
.fu-review { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; border: 1.5px dashed var(--naranja); background: rgba(255, 107, 26, .08); }
.fu-review svg { width: 22px; height: 22px; color: var(--naranja); flex: none; }
.fu-review span, .fu-hub > span:last-child { display: grid; line-height: 1.2; }
.fu-review b { font-size: 15px; }
.fu-review small, .fu-hub small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--mut-o); }
.fu-hub { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 14px; background: linear-gradient(135deg, var(--plano-2), var(--plano)); border: 1px solid rgba(140, 192, 255, .35); }
.fu-hub .mk-crop { position: relative; display: block; width: 46px; height: 46px; }
.fu-hub b { font-size: 18px; letter-spacing: .12em; font-weight: 850; }
.fu-hero-fig figcaption { margin-top: 18px; font-size: 12.5px; color: var(--mut-o); text-align: center; max-width: 380px; }

/* ---------- B. Tres fuentes ---------- */
.fu-src { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fu-card { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--linea); box-shadow: var(--sh-1); border-top: 4px solid var(--azul); }
.fu-card:nth-child(2) { border-top-color: var(--naranja); }
.fu-card:nth-child(3) { border-top-color: var(--ok); }
.fu-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fu-num { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: #fff; background: var(--plano); padding: 3px 9px; border-radius: 6px; }
.fu-fmt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--mut); text-align: right; }
.fu-card h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.fu-q { color: var(--mut); }
.fu-q strong { color: var(--tinta); }
.fu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.fu-tags li { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--hielo); color: var(--plano); }

.fu-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.fu-note { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--r); background: var(--hielo); border: 1px solid var(--linea); }
.fu-note svg { width: 26px; height: 26px; flex: none; color: var(--azul-o); margin-top: 2px; }
.fu-note h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.fu-note p { color: var(--mut); font-size: 15px; }
.fu-note strong { color: var(--tinta); }
.fu-note-alt { background: #fff; border-style: dashed; }
.fu-note-alt svg { color: var(--ok-t); }

/* ---------- C. Cómo se conectan ---------- */
.fu-flag { display: inline-flex; align-items: flex-start; max-width: 900px; gap: 10px; margin-bottom: 24px; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--warn-t); background: rgba(240, 165, 49, .14); border: 1px solid rgba(240, 165, 49, .4); }
.fu-flag svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.fu-flag b { color: inherit; }
.fu-trace { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.15fr) 40px minmax(0, 1fr); align-items: stretch; }
.fu-tc { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: var(--r); border: 1px solid var(--linea); background: #fff; box-shadow: var(--sh-1); min-width: 0; }
.fu-tc header { display: flex; align-items: center; gap: 10px; }
.fu-tc header .fu-ext { justify-self: start; }
.fu-tc h3 { font-size: 18px; font-weight: 800; }
.fu-tc-meta { font-size: 13.5px; color: var(--mut); }
.fu-tc-meta b { color: var(--tinta); }
.fu-tc-say { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--linea); font-size: 14.5px; font-weight: 600; color: var(--plano); }
.fu-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 0; }
.fu-dl div { min-width: 0; }
.fu-dl-w { grid-column: 1 / -1; }
.fu-dl dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.fu-dl dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.fu-code { display: inline-block; font-family: var(--f-mono); color: var(--naranja-t); background: rgba(255, 107, 26, .1); padding: 1px 8px; border-radius: 5px; }
.fu-tlink { position: relative; display: grid; place-items: center; }
.fu-tlink::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--naranja); }
.fu-tlink span { position: relative; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--naranja-t); background: #fff; padding: 8px 2px; border: 1.5px solid var(--naranja); border-radius: 999px; }
.fu-tc h3 small { font-size: 13px; font-weight: 600; color: var(--mut); }
.fu-apu th, .fu-apu td { font-size: 13px; vertical-align: top; }
.fu-apu thead th:nth-child(n+2), .fu-apu td { text-align: right; font-variant-numeric: tabular-nums; }
.fu-apu tbody th { text-align: left; font-weight: 700; color: var(--tinta); padding: 8px 0; border-bottom: 1px solid #EEF2F7; }
.fu-apu tfoot th, .fu-apu tfoot td { padding-top: 10px; border-top: 2px solid var(--plano); font-size: 13.5px; color: var(--tinta); }
.fu-apu tfoot th { text-align: left; }
.fu-apu tbody th, .fu-apu tfoot th { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 700; color: var(--tinta); }
.fu-calc { font-size: 15px; color: var(--mut); padding: 10px 12px; border-radius: 8px; background: var(--papel); border: 1px solid var(--linea); }
.fu-calc b { color: var(--tinta); font-size: 17px; }
.fu-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.fu-days li { display: grid; gap: 2px; padding: 8px 2px; border-radius: 6px; text-align: center; background: rgba(31, 169, 116, .12); border-bottom: 3px solid var(--ok); }
.fu-days b { font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--ok-t); }
.fu-days span { font-size: 12px; font-weight: 700; }

/* Datos que se comparan al vincular */
.fu-keys-box { margin-bottom: 28px; padding: 20px; border-radius: var(--r); background: var(--hielo); border: 1px solid var(--linea); }
.fu-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fu-keys li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: #fff; border-left: 3px solid var(--naranja); }
.fu-keys b { font-size: 16px; }
.fu-keys span { font-size: 13px; color: var(--mut); }
.fu-keys-box > p { margin-top: 14px; font-size: 15px; color: var(--tinta); }

.fu-result { margin-top: 32px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r); background: var(--plano); color: #fff; }
.fu-result h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 800; }
.fu-result ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.fu-result li { display: grid; gap: 4px; padding: 16px; border-radius: 10px; background: rgba(5, 18, 39, .45); border: 1px solid rgba(140, 192, 255, .2); }
.fu-result li b { font-size: 17px; color: #fff; }
.fu-result li span { font-size: 14px; color: var(--mut-o); }
.fu-result > p { color: #D5E2F6; max-width: 820px; }
.fu-result strong { color: #fff; border-bottom: 2px solid var(--naranja); }

/* ---------- D. Flujo ---------- */
.fu-flujo { overflow: hidden; }
.fu-flujo .wrap { position: relative; }
.fu-steps { counter-reset: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fu-steps > li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 18px; border-radius: var(--r); background: rgba(12, 42, 87, .55); border: 1px solid rgba(140, 192, 255, .2); }
.fu-steps > li:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -14px; width: 14px; height: 2px; background: var(--naranja); }
.fu-steps > li:nth-child(2) { border-color: var(--naranja); background: rgba(255, 107, 26, .08); }
.fu-sn { font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--abismo); background: var(--naranja); padding: 2px 8px; border-radius: 5px; align-self: flex-start; }
.fu-steps h3 { font-size: 18px; line-height: 1.2; font-weight: 800; }
.fu-steps p, .fu-areas li { font-size: 14.5px; color: var(--mut-o); }
.fu-areas { display: grid; gap: 8px; }
.fu-areas b { color: #fff; }

.fu-layers { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; margin-top: 36px; }
.fu-layer { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--r); background: rgba(5, 18, 39, .6); border: 1px solid rgba(140, 192, 255, .25); border-left: 4px solid var(--azul); }
.fu-layer-real { border-left-color: var(--ok); }
.fu-layer small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cian); }
.fu-layer b { font-size: 22px; font-weight: 800; }
.fu-layer p { font-size: 15px; color: var(--mut-o); }
.fu-vs { display: grid; place-items: center; font-family: var(--f-mono); font-size: 14px; font-weight: 600; color: var(--naranja); }
.fu-layers-foot { grid-column: 1 / -1; font-size: 16px; color: #D5E2F6; }

/* ---------- E. Qué revisa el equipo ---------- */
.fu-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fu-checks li { padding: 22px 22px 22px 58px; position: relative; border-radius: var(--r); background: #fff; border: 1px solid var(--linea); box-shadow: var(--sh-1); }
.fu-checks li::before { content: ""; position: absolute; left: 20px; top: 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.fu-checks h3 { font-size: 18px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.fu-checks p { font-size: 15px; color: var(--mut); }
.fu-honest { margin-top: 24px; font-size: 14.5px; color: var(--mut); max-width: 820px; }

/* ---------- F. Preguntas ---------- */
.fu-faq-lay { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.fu-faq { display: grid; gap: 10px; }
.fu-faq details { border: 1px solid var(--linea); border-radius: 12px; background: #fff; }
.fu-faq details[open] { border-color: var(--azul); box-shadow: var(--sh-1); }
.fu-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; font-size: 16.5px; font-weight: 700; }
.fu-faq summary::-webkit-details-marker { display: none; }
.fu-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hielo); color: var(--azul-o); font-size: 20px; font-weight: 600; line-height: 1; }
.fu-faq details[open] summary::after { content: "−"; background: var(--azul); color: #fff; }
.fu-faq details p { padding: 0 20px 18px; color: var(--mut); }

/* ---------- Cierre ---------- */
.fu-cierre .sh h2 { text-transform: none; font-size: clamp(30px, 4vw, 52px); }
.fu-cierre-small { margin-top: 18px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--mut-o); }
.fu-cierre-small a { color: var(--cian); text-underline-offset: 3px; }
.fu-cierre-small a:hover { color: #fff; }

/* ---------- Adaptación ---------- */
@media (max-width: 1239px) {
  .fu-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fu-steps > li:not(:last-child)::after { display: none; }
  .fu-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .fu-hero-lay { grid-template-columns: minmax(0, 1fr); }
  .fu-hero-fig { max-width: 560px; justify-self: start; width: 100%; }
  .fu-src { grid-template-columns: minmax(0, 1fr); }
  .fu-notes { grid-template-columns: minmax(0, 1fr); }
  .fu-trace { grid-template-columns: minmax(0, 1fr); }
  .fu-tlink { height: 44px; }
  .fu-tlink::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .fu-tlink span { writing-mode: horizontal-tb; transform: none; padding: 3px 10px; }
  .fu-result ul { grid-template-columns: minmax(0, 1fr); }
  .fu-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fu-faq-lay { grid-template-columns: minmax(0, 1fr); }
  .fu-faq-lay .sh { margin-bottom: 0; }
}
@media (max-width: 767px) {
  .fu-steps { grid-template-columns: minmax(0, 1fr); }
  .fu-steps > li { padding-left: 64px; }
  .fu-sn { position: absolute; left: 16px; top: 22px; }
  .fu-steps > li:not(:last-child)::after { display: block; top: auto; bottom: -14px; right: auto; left: 30px; width: 2px; height: 14px; }
  .fu-checks { grid-template-columns: minmax(0, 1fr); }
  .fu-layers { grid-template-columns: minmax(0, 1fr); }
  .fu-vs { padding: 2px 0; }
  .fu-hero-fig { padding: 16px; }
  .fu-docs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fu-doc { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-items: center; padding: 12px 14px; text-align: left; }
  .fu-doc .fu-ext { grid-row: 1 / 3; }
  .fu-doc b { font-size: 16px; }
  .fu-doc small { font-size: 12.5px; }
  .fu-join { grid-template-columns: 1fr; height: 24px; }
  .fu-join i:nth-child(n+2) { display: none; }
  .fu-review { padding: 10px 14px; }
  .fu-review small { font-size: 10.5px; }
  .fu-keys { grid-template-columns: minmax(0, 1fr); }
  .fu-tc { padding: 18px 16px; }
  .fu-apu th, .fu-apu td { font-size: 12.5px; }
  .fu-hero .btns .btn { width: 100%; }
  .fu-cierre .btns .btn { width: 100%; }
  .fu-flag { font-size: 13px; align-items: flex-start; }
}
/* Menú de escritorio en anchos intermedios: el logotipo ya enlaza a la portada */
@media (min-width: 1240px) and (max-width: 1379px) {
  .fu-page .nav-links li:first-child { display: none; }
  .fu-page .nav-links a { padding: 10px 7px; font-size: 14px; }
  .fu-page .nav-in { gap: 14px; }
}
