/**
 * Guía Web ISM · Estilos principales
 * Versión de parche: P2.0
 *
 * Organización:
 * 01 Tokens y base global
 * 02 Navegación superior
 * 03 Layout principal y progreso
 * 04 Tipografía, bienvenida y microlecciones
 * 05 Tarjetas de selección
 * 06 Resultado y recomendaciones
 * 07 Navegación inferior
 * 08 Panel lateral y footer
 * 09 Responsive / accesibilidad
 * 10 Cierre comercial y formulario de prospecto
 * 11 Upgrade P2: recomendaciones, complemento y estructura dinámica
 */

/* =========================================================================
   01. TOKENS Y BASE GLOBAL
   ========================================================================= */
:root {
    --guide-bg: #050b14;
    --guide-bg-soft: #08111f;
    --guide-panel: #0a1627;
    --guide-panel-strong: #0d1d31;
    --guide-line: rgba(125, 211, 252, 0.16);
    --guide-line-bright: rgba(56, 189, 248, 0.42);
    --guide-text: #f8fafc;
    --guide-muted: #9fb4c7;
    --guide-muted-soft: #6e879c;
    --guide-cyan: #38bdf8;
    --guide-cyan-bright: #67e8f9;
    --guide-green: #4ade80;
    --guide-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--guide-text);
    background:
        radial-gradient(circle at 88% 8%, rgba(0, 212, 255, 0.11), transparent 28%),
        radial-gradient(circle at 8% 88%, rgba(37, 99, 235, 0.1), transparent 30%),
        linear-gradient(145deg, var(--guide-bg) 0%, #07111f 48%, #06101e 100%);
    font-family: Manrope, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.028) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at 50% 45%, #000 18%, transparent 78%);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(103, 232, 249, 0.82);
    outline-offset: 4px;
}

.guide-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================================================
   02. NAVEGACIÓN SUPERIOR
   ========================================================================= */

.guide-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 82px;
    padding: 10px clamp(18px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(5, 11, 20, 0.82);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
}

.guide-brand {
    width: 204px;
    display: block;
}

.guide-brand img {
    width: 100%;
    height: auto;
    display: block;
}

.guide-nav-actions,
.guide-duration,
.guide-back-link {
    display: flex;
    align-items: center;
}

.guide-nav-actions {
    gap: 12px;
}

.guide-duration {
    min-height: 38px;
    gap: 8px;
    padding: 0 13px;
    color: #cbefff;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.06);
    font-size: 12px;
    font-weight: 800;
}

.guide-duration svg,
.guide-back-link svg {
    width: 16px;
    height: 16px;
}

.guide-back-link {
    min-height: 40px;
    gap: 8px;
    padding: 0 12px;
    color: var(--guide-muted);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    transition: color 180ms ease, background 180ms ease;
}

.guide-back-link:hover {
    color: #fff;
    background: rgba(56, 189, 248, 0.08);
}

/* =========================================================================
   03. LAYOUT PRINCIPAL, CONTENEDORES Y PROGRESO
   ========================================================================= */

.guide-shell {
    width: min(1240px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 42px;
    flex: 1;
    display: flex;
    align-items: center;
}

.guide-experience {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.56fr);
    gap: 22px;
    align-items: stretch;
}

.guide-main,
/* =========================================================================
   08. PANEL LATERAL, MAPA DE PROGRESO Y FOOTER
   ========================================================================= */

.guide-aside {
    overflow: hidden;
    border: 1px solid var(--guide-line);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(13, 29, 49, 0.86), rgba(6, 16, 30, 0.92));
    box-shadow: var(--guide-shadow);
}

.guide-main {
    min-height: 680px;
    scroll-margin-top: 96px;
    display: flex;
    flex-direction: column;
}

.guide-main-top {
    padding: 22px 28px 0;
}

.guide-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guide-progress-copy span:last-child {
    color: #7890a7;
    letter-spacing: 0;
    text-transform: none;
}

.guide-progress {
    height: 6px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
}

.guide-progress > span {
    width: 4%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--guide-cyan), var(--guide-cyan-bright));
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
    transition: width 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.guide-screen {
    min-height: 0;
    padding: 30px 28px 22px;
    display: none;
    flex: 1;
}

.guide-screen.is-active {
    display: flex;
    flex-direction: column;
    animation: guide-screen-in 340ms ease both;
}

@keyframes guide-screen-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================================
   04. TIPOGRAFÍA, BIENVENIDA Y MICROLECCIONES
   ========================================================================= */

.guide-eyebrow,
.guide-result-kicker {
    width: fit-content;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guide-eyebrow svg,
.guide-result-kicker svg {
    width: 16px;
    height: 16px;
}

.guide-title {
    margin: 0 0 14px;
    color: #f8fafc;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.guide-title span {
    color: var(--guide-cyan);
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.22);
}

.guide-lead {
    max-width: 740px;
    margin: 0 0 22px;
    color: #afc1d1;
    font-size: 16px;
    line-height: 1.62;
    text-wrap: pretty;
}

.guide-intro-layout {
    margin: auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 28px;
    align-items: center;
}

.guide-intro-points {
    margin-top: 26px;
    display: grid;
    gap: 11px;
}

.guide-intro-points > div {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.guide-intro-points span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--guide-cyan);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 9px;
    background: rgba(56, 189, 248, 0.07);
    font-size: 10px;
    font-weight: 900;
}

.guide-intro-points span svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
}

.guide-intro-points p {
    margin: 0;
    color: #c8d6e3;
    font-size: 14px;
}

.guide-main.is-welcome {
    position: relative;
    isolation: isolate;
    background-color: #07182a;
    background-image:
        linear-gradient(90deg,
            #07182a 0%,
            #07182a 37%,
            rgba(7, 24, 42, 0.98) 43%,
            rgba(7, 24, 42, 0.82) 51%,
            rgba(7, 24, 42, 0.32) 64%,
            rgba(7, 24, 42, 0.06) 78%),
        linear-gradient(180deg, rgba(6, 18, 32, 0.12), rgba(3, 12, 23, 0.4)),
        url("../img/guia-asistida-colaboracion.webp");
    background-position: center, center, right 42%;
    background-repeat: no-repeat;
    background-size: cover, cover, auto 100%;
}

.guide-main.is-welcome .guide-screen {
    overflow: hidden;
}

.guide-main.is-welcome::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(56, 189, 248, 0.035), transparent 53%),
        linear-gradient(180deg, rgba(4, 14, 27, 0.06) 58%, rgba(4, 14, 27, 0.6));
}

.guide-main.is-welcome .guide-main-top,
.guide-main.is-welcome .guide-actions,
.guide-main.is-welcome .guide-intro-copy {
    position: relative;
    z-index: 1;
}

.guide-main.is-welcome /* =========================================================================
   07. NAVEGACIÓN INFERIOR ENTRE PASOS
   ========================================================================= */

.guide-actions {
    justify-content: flex-end;
}

.guide-main.is-welcome #nextBtn {
    margin-left: auto;
}

.guide-main.is-welcome .guide-intro-copy {
    width: 100%;
    max-width: 58%;
    padding-right: 10px;
}

.guide-main.is-welcome .guide-title {
    max-width: 480px;
}

.guide-main.is-welcome .guide-lead {
    max-width: 440px;
}

.guide-lesson {
    margin: 0 0 12px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    color: #cbefff;
    border-left: 2px solid var(--guide-cyan);
    border-radius: 0 12px 12px 0;
    background: rgba(56, 189, 248, 0.055);
    font-size: 11px;
    line-height: 1.42;
}

.guide-lesson--spaced {
    margin-top: 18px;
}

.guide-lesson svg {
    width: 17px;
    height: 17px;
    color: var(--guide-cyan);
}

.guide-lesson p {
    margin: 0;
}

.guide-lesson strong {
    color: #7dd3fc;
}

/* =========================================================================
   05. TARJETAS DE SELECCIÓN Y ELEMENTOS INCLUIDOS
   ========================================================================= */

.guide-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.guide-choice-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-choice {
    position: relative;
    width: 100%;
    min-height: 72px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #dce9f5;
    border: 1px solid rgba(148, 210, 230, 0.14);
    border-radius: 13px;
    background: rgba(3, 14, 27, 0.52);
    text-align: left;
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.guide-choice::before {
    position: absolute;
    right: -30px;
    bottom: -44px;
    width: 120px;
    height: 120px;
    content: "";
    pointer-events: none;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.07);
    filter: blur(24px);
    opacity: 0;
    transition: opacity 200ms ease;
}

.guide-choice:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(14, 165, 233, 0.075);
}

.guide-choice:hover::before,
.guide-choice.is-selected::before {
    opacity: 1;
}

.guide-choice.is-selected {
    border-color: rgba(56, 189, 248, 0.76);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(3, 14, 27, 0.65));
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.12), 0 14px 34px rgba(0, 0, 0, 0.18);
}

.guide-choice-head {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
}

.guide-choice-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.guide-choice-icon,
.guide-essential-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--guide-cyan);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.065);
}

.guide-choice-icon svg,
.guide-essential-icon svg {
    width: 17px;
    height: 17px;
}

.guide-choice.is-selected .guide-choice-icon {
    color: #03111e;
    border-color: var(--guide-cyan-bright);
    background: linear-gradient(135deg, var(--guide-cyan), var(--guide-cyan-bright));
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.22);
}

.guide-choice strong {
    color: #f8fafc;
    font-size: 12px;
    line-height: 1.25;
}

.guide-choice small {
    position: relative;
    z-index: 2;
    display: block;
    color: #7890a7;
    font-size: 9px;
    line-height: 1.32;
}

.guide-selection-status {
    width: 100%;
    min-height: 16px;
    margin: 8px 0 0;
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.guide-essentials {
    margin: 10px 0 20px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.guide-essential {
    padding: 16px 10px;
    color: #dce9f5;
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 14px;
    background: rgba(3, 14, 27, 0.5);
    text-align: center;
}

.guide-essential-icon {
    margin: 0 auto 10px;
}

.guide-essential strong,
.guide-essential small {
    display: block;
}

.guide-essential strong {
    color: #f8fafc;
    font-size: 12px;
}

.guide-essential small {
    margin-top: 5px;
    color: #7890a7;
    font-size: 10px;
    line-height: 1.4;
}

.guide-included {
    width: fit-content;
    margin: 0;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #86efac;
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.06);
    font-size: 11px;
    font-weight: 900;
}

.guide-included svg {
    width: 16px;
    height: 16px;
}

/* =========================================================================
   06. RESULTADO, ETIQUETAS Y RECOMENDACIONES
   ========================================================================= */

.guide-result-hero {
    position: relative;
    margin-bottom: 14px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.14), transparent 34%),
        rgba(3, 14, 27, 0.54);
}

.guide-result-hero::after {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 52px;
    height: 52px;
    content: "";
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.035);
    transform: rotate(12deg);
}

.guide-result-kicker {
    margin-bottom: 7px;
    font-size: 10px;
}

.guide-result-hero h3 {
    position: relative;
    z-index: 2;
    max-width: calc(100% - 68px);
    margin: 0 0 7px;
    color: #fff;
    font-size: 26px;
    line-height: 1.12;
}

.guide-result-hero > p:not(.guide-result-kicker) {
    margin: 0;
    color: #90a5b8;
    font-size: 12px;
    line-height: 1.5;
}

.guide-tags {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.guide-tag {
    padding: 6px 9px;
    color: #bcecff;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.06);
    font-size: 10px;
    font-weight: 800;
}



.guide-section-label {
    margin: 6px 0 10px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.guide-recommendations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.guide-recommendation {
    padding: 15px;
    border: 1px solid rgba(56, 189, 248, 0.17);
    border-radius: 15px;
    background: rgba(3, 14, 27, 0.46);
}

.guide-recommendation.is-featured {
    border-color: rgba(251, 191, 36, 0.23);
    background: rgba(251, 191, 36, 0.035);
}

.guide-recommendation span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guide-recommendation.is-featured span {
    color: #fcd34d;
}

.guide-recommendation span svg {
    width: 14px;
    height: 14px;
}

.guide-recommendation h3 {
    margin: 8px 0 6px;
    color: #f8fafc;
    font-size: 15px;
}

.guide-recommendation p {
    margin: 0;
    color: #8299ad;
    font-size: 11px;
    line-height: 1.45;
}

.guide-result-summary {
    margin-bottom: 17px;
    padding: 15px 17px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 15px;
    background: rgba(3, 14, 27, 0.5);
}

.guide-result-summary > span {
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.guide-result-summary strong {
    margin-top: 5px;
    display: block;
    color: #fff;
    font-size: 20px;
}

.guide-result-summary p {
    margin: 5px 0 0;
    color: #8299ad;
    font-size: 11px;
}

.guide-screen.guide-screen--finish {
    overflow: hidden;
}

.guide-finish-layout {
    width: min(100%, 690px);
    margin: auto;
    text-align: center;
}

.guide-finish-layout .guide-result-kicker {
    margin-inline: auto;
}

.guide-finish-layout .guide-title {
    margin-bottom: 8px;
}

.guide-finish-layout > .guide-lead {
    max-width: 620px;
    margin-inline: auto;
}

.guide-finish-layout .guide-result-summary {
    margin: 0 auto 13px;
    text-align: left;
}

.guide-actions {
    margin-top: auto;
    padding: 0 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.guide-actions.is-final {
    justify-content: flex-start;
}

.guide-button {
    min-height: 46px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #d9f4ff;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
    transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.guide-button svg {
    width: 17px;
    height: 17px;
}

.guide-button--primary {
    color: #04101d;
    border-color: rgba(125, 229, 255, 0.45);
    background: linear-gradient(135deg, var(--guide-cyan), var(--guide-cyan-bright));
    box-shadow: 0 14px 34px rgba(56, 189, 248, 0.2);
}

.guide-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(56, 189, 248, 0.28);
}

.guide-button--secondary {
    color: #d9f4ff;
    border-color: rgba(56, 189, 248, 0.22);
    background: rgba(56, 189, 248, 0.05);
}

.guide-button--secondary:hover,
.guide-button--ghost:hover {
    color: #fff;
    border-color: rgba(56, 189, 248, 0.38);
    background: rgba(56, 189, 248, 0.09);
}

.guide-button--ghost {
    color: #8298aa;
    border-color: rgba(148, 210, 230, 0.08);
}

.guide-button:disabled {
    opacity: 0.36;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.guide-aside {
    min-height: 680px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(8, 24, 42, 0.92), rgba(4, 13, 25, 0.96));
}

.guide-aside-heading > span,
.guide-aside-label,
.guide-maturity > span {
    color: #6f879a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.guide-aside-heading {
    text-align: center;
}

.guide-aside-heading h2 {
    margin: 7px 0 5px;
    color: #fff;
    font-size: 21px;
    line-height: 1.15;
}

.guide-aside-heading p {
    margin: 0 0 16px;
    color: #72899c;
    font-size: 11px;
    line-height: 1.48;
}

.guide-project-map {
    padding: 10px 0 18px;
    display: grid;
    gap: 8px;
}

.guide-map-node {
    min-height: 50px;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(148, 210, 230, 0.12);
    border-radius: 12px;
    background: rgba(2, 11, 22, 0.5);
    transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.guide-map-node.is-active {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(14, 165, 233, 0.075);
    transform: translateX(2px);
}

.guide-map-node > span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #6f879a;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
}

.guide-map-node > span svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.9;
}

.guide-map-node.is-active > span {
    color: #06111f;
    border-color: var(--guide-cyan);
    background: var(--guide-cyan);
}

.guide-map-node strong,
.guide-map-node small {
    display: block;
}

.guide-map-node strong {
    color: #d9e6f0;
    font-size: 11px;
}

.guide-map-node small {
    margin-top: 2px;
    color: #637c91;
    font-size: 9px;
}

.guide-aside-divider {
    height: 1px;
    margin: 4px 0 16px;
    background: rgba(255, 255, 255, 0.05);
}

.guide-aside-label {
    margin: 0 0 10px;
}



.guide-maturity {
    margin-top: auto;
    padding: 14px;
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.04);
}

.guide-maturity strong {
    margin-top: 5px;
    display: block;
    color: #cbefff;
    font-size: 12px;
}

.guide-maturity p {
    margin: 5px 0 0;
    color: #70889b;
    font-size: 10px;
    line-height: 1.45;
}

.guide-footer {
    min-height: 52px;
    padding: 12px clamp(18px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #5e7487;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 10px;
}

.guide-footer a:hover {
    color: #7dd3fc;
}

/* =========================================================================
   09. RESPONSIVE Y PREFERENCIAS DE ACCESIBILIDAD
   ========================================================================= */

@media (max-width: 980px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .guide-app {
        height: 100svh;
        min-height: 0;
        overflow: hidden;
    }

    .guide-nav {
        min-height: 64px;
        height: 64px;
        flex: 0 0 auto;
    }

    .guide-shell {
        min-height: 0;
        padding: 9px 0;
        overflow: hidden;
        align-items: stretch;
    }

    .guide-experience {
        min-height: 0;
        height: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr);
        gap: 0;
    }

    .guide-aside {
        display: none;
    }

    .guide-aside-heading p,
    .guide-maturity,
    .guide-aside-divider {
        display: none;
    }

    .guide-project-map {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-bottom: 0;
        gap: 7px;
    }

    .guide-map-node {
        min-height: 46px;
    }

    .guide-main {
        min-height: 0;
        height: 100%;
    }

    .guide-screen {
        overflow: auto;
    }

    .guide-footer {
        min-height: 30px;
        height: 30px;
        padding-block: 5px;
        flex: 0 0 auto;
    }
}

@media (min-width: 721px) and (max-width: 980px) {
    .guide-nav {
        min-height: 72px;
        height: 72px;
        padding-block: 7px;
    }

    .guide-brand {
        width: 145px;
    }

    .guide-shell {
        padding-block: 6px;
    }

    .guide-aside {
        padding: 8px 12px;
    }

    .guide-aside-heading > span,
    .guide-aside-heading h2 {
        display: none;
    }

    .guide-map-node {
        min-height: 40px;
        padding: 5px 7px;
    }

    .guide-main-top {
        padding: 10px 18px 0;
    }

    .guide-progress {
        margin-top: 7px;
    }

    .guide-screen {
        padding: 10px 18px 8px;
    }

    .guide-eyebrow {
        margin-bottom: 7px;
        font-size: 9px;
    }

    .guide-title {
        margin-bottom: 7px;
        font-size: clamp(25px, 4vw, 34px);
    }

    .guide-lead {
        max-width: 440px;
        margin-bottom: 8px;
        font-size: 11px;
        line-height: 1.42;
    }

    .guide-intro-points {
        margin-top: 18px;
        gap: 5px;
        transform: translateY(12px);
    }

    .guide-main.is-welcome .guide-intro-copy {
        transform: translateY(12px);
    }

    .guide-main.is-welcome .guide-eyebrow,
    .guide-main.is-welcome .guide-title,
    .guide-main.is-welcome .guide-lead {
        transform: translateY(8px);
    }

    .guide-intro-points > div {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 8px;
    }

    .guide-intro-points span {
        width: 26px;
        height: 26px;
    }

    .guide-intro-points p {
        font-size: 10px;
    }

    .guide-main.is-welcome .guide-intro-copy,
    .guide-main.is-welcome .guide-eyebrow,
    .guide-main.is-welcome .guide-title,
    .guide-main.is-welcome .guide-lead,
    .guide-intro-points {
        transform: none;
    }

    .guide-actions {
        padding: 0 18px 8px;
    }

    .guide-button {
        min-height: 40px;
    }

    .guide-footer {
        min-height: 26px;
        height: 26px;
    }
}

@media (max-width: 980px) and (max-height: 640px) {
    .guide-nav {
        min-height: 56px;
        height: 56px;
        padding-block: 5px;
    }

    .guide-brand {
        width: 132px;
    }

    .guide-shell {
        padding-block: 4px;
    }

    .guide-main-top {
        padding: 8px 16px 0;
    }

    .guide-progress {
        margin-top: 5px;
    }

    .guide-screen {
        padding: 8px 16px 6px;
    }

    .guide-actions {
        padding: 0 16px 7px;
    }

    .guide-button {
        min-height: 38px;
    }

    .guide-eyebrow {
        margin-bottom: 6px;
        font-size: 9px;
    }

    .guide-title {
        margin-bottom: 6px;
        font-size: clamp(24px, 4vw, 30px);
    }

    .guide-lead {
        margin-bottom: 8px;
        font-size: 10px;
        line-height: 1.38;
    }

    .guide-intro-points {
        margin-top: 13px;
        gap: 4px;
    }

    .guide-intro-points > div {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 7px;
    }

    .guide-intro-points span {
        width: 24px;
        height: 24px;
    }

    .guide-intro-points p {
        font-size: 9px;
    }

    .guide-result-hero {
        margin-bottom: 7px;
        padding: 10px 12px;
    }

    .guide-result-hero .guide-result-kicker {
        margin-bottom: 3px;
        font-size: 8px;
    }

    .guide-result-hero h3 {
        margin-bottom: 3px;
        font-size: 19px;
    }

    .guide-result-hero > p:not(.guide-result-kicker) {
        font-size: 9px;
        line-height: 1.35;
    }

    .guide-tags {
        margin-top: 6px;
        gap: 4px;
    }

    .guide-tag {
        padding: 3px 6px;
        font-size: 8px;
    }


    .guide-section-label {
        margin: 3px 0 5px;
        font-size: 9px;
    }

    .guide-recommendations {
        gap: 7px;
    }

    .guide-recommendation {
        padding: 8px 10px;
    }

    .guide-recommendation span {
        font-size: 8px;
    }

    .guide-recommendation h3 {
        margin: 4px 0 2px;
        font-size: 12px;
    }

    .guide-recommendation p {
        font-size: 9px;
        line-height: 1.3;
    }

    .guide-screen--finish {
        padding-top: 6px;
    }

    .guide-finish-layout .guide-result-kicker {
        margin-bottom: 5px;
        font-size: 8px;
    }

    .guide-finish-layout .guide-title {
        margin-bottom: 4px;
        font-size: 25px;
    }

    .guide-finish-layout > .guide-lead {
        margin-bottom: 7px;
        font-size: 9px;
        line-height: 1.35;
    }

    .guide-finish-layout .guide-result-summary {
        margin-bottom: 7px;
        padding: 8px 10px;
    }

    .guide-finish-layout .guide-result-summary strong {
        margin-top: 2px;
        font-size: 15px;
    }

    .guide-finish-layout .guide-result-summary p {
        margin-top: 2px;
        font-size: 9px;
    }




    .guide-footer {
        min-height: 24px;
        height: 24px;
        padding-block: 3px;
    }
}

@media (max-width: 720px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .guide-app {
        height: 100svh;
        min-height: 0;
        overflow: hidden;
    }

    .guide-nav {
        min-height: 64px;
        height: 64px;
        padding: 8px 16px;
        flex: 0 0 auto;
    }

    .guide-brand {
        width: 152px;
    }

    .guide-duration {
        display: none;
    }

    .guide-back-link {
        padding-inline: 9px;
        font-size: 11px;
    }

    .guide-shell {
        width: min(100% - 20px, 1240px);
        min-height: 0;
        padding: 8px 0;
        overflow: hidden;
        align-items: stretch;
    }

    .guide-experience {
        min-height: 0;
        height: 100%;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 10px;
    }

    .guide-main,
    .guide-aside {
        border-radius: 20px;
    }

    .guide-aside {
        padding: 14px;
    }

    .guide-aside-heading > span,
    .guide-aside-heading h2 {
        display: none;
    }

    .guide-project-map {
        padding: 0;
    }

    .guide-map-node {
        min-height: 42px;
        padding: 7px;
        justify-content: center;
    }

    .guide-map-node > div {
        display: none;
    }

    .guide-map-node > span {
        width: 29px;
        height: 29px;
    }

    .guide-main-top {
        padding: 16px 16px 0;
    }

    .guide-screen {
        padding: 22px 16px 16px;
    }

    .guide-title {
        font-size: clamp(31px, 9vw, 38px);
    }

    .guide-lead {
        font-size: 14px;
    }

    .guide-intro-layout {
        grid-template-columns: 1fr;
    }

    .guide-main.is-welcome {
        background-image:
            linear-gradient(90deg, #07182a 0%, rgba(7, 24, 42, 0.98) 70%, rgba(7, 24, 42, 0.78) 100%),
            linear-gradient(180deg, rgba(6, 18, 32, 0.45), rgba(3, 12, 23, 0.82)),
            url("../img/guia-asistida-colaboracion.webp");
        background-position: center, center, 68% center;
        background-size: cover, cover, cover;
    }

    .guide-main.is-welcome .guide-intro-copy {
        max-width: 100%;
        padding-right: 0;
    }

    .guide-choice-grid,
    .guide-choice-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .guide-recommendations {
        grid-template-columns: 1fr;
    }

    .guide-choice {
        min-height: 68px;
        padding: 8px;
    }

    .guide-choice-head {
        gap: 7px;
    }

    .guide-choice-icon {
        width: 30px;
        height: 30px;
    }

    .guide-choice strong {
        font-size: 11px;
    }

    .guide-choice small {
        font-size: 8px;
    }

    .guide-essentials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-essential:last-child {
        grid-column: 1 / -1;
    }

    .guide-main {
        min-height: 0;
        height: 100%;
    }

    .guide-screen {
        overflow: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(56, 189, 248, 0.28) transparent;
    }

    .guide-actions {
        padding: 0 16px 16px;
    }

    .guide-button {
        min-height: 44px;
        padding-inline: 14px;
    }

    .guide-screen--finish {
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .guide-finish-layout .guide-result-kicker {
        margin-bottom: 7px;
    }

    .guide-finish-layout .guide-title {
        margin-bottom: 6px;
        font-size: clamp(26px, 8vw, 32px);
    }

    .guide-finish-layout > .guide-lead {
        margin-bottom: 10px;
        font-size: 11px;
        line-height: 1.4;
    }

    .guide-finish-layout .guide-result-summary {
        margin-bottom: 9px;
        padding: 10px 12px;
    }

    .guide-finish-layout .guide-result-summary strong {
        font-size: 16px;
    }





    .guide-result-hero h3 {
        max-width: 100%;
        font-size: 23px;
    }

    .guide-result-hero::after {
        display: none;
    }

    .guide-footer {
        min-height: 30px;
        height: 30px;
        padding-block: 5px;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 10px 16px;
    }
}

@media (min-width: 981px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .guide-app {
        height: 100svh;
        min-height: 0;
        overflow: hidden;
    }

    .guide-nav {
        min-height: 78px;
        height: 78px;
        padding-block: 7px;
        flex: 0 0 auto;
    }

    .guide-brand {
        width: 160px;
    }

    .guide-shell {
        min-height: 0;
        padding: 11px 0;
        overflow: hidden;
        align-items: stretch;
    }

    .guide-experience {
        min-height: 0;
        height: 100%;
        gap: 16px;
    }

    .guide-main,
    .guide-aside {
        min-height: 0;
        height: 100%;
        border-radius: 22px;
    }

    .guide-main-top {
        padding: 16px 24px 0;
    }

    .guide-progress {
        margin-top: 9px;
    }

    .guide-screen {
        padding: 16px 24px 12px;
        overflow: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(56, 189, 248, 0.28) transparent;
    }

    .guide-title {
        margin-bottom: 8px;
        font-size: clamp(27px, 2.8vw, 39px);
    }

    .guide-lead {
        margin-bottom: 12px;
        font-size: 13px;
        line-height: 1.48;
    }

    .guide-intro-layout {
        height: 100%;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .guide-main.is-welcome .guide-intro-copy {
        transform: translateY(38px);
    }

    .guide-main.is-welcome .guide-eyebrow,
    .guide-main.is-welcome .guide-title,
    .guide-main.is-welcome .guide-lead {
        transform: translateY(16px);
    }

    .guide-intro-points {
        margin-top: 30px;
        gap: 7px;
        transform: translateY(28px);
    }

    .guide-intro-points p {
        font-size: 11px;
    }

    .guide-actions {
        padding: 0 24px 12px;
    }

    .guide-aside {
        padding: 14px 15px;
    }

    .guide-aside-heading h2 {
        margin-top: 5px;
        font-size: 19px;
    }

    .guide-aside-heading p {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .guide-project-map {
        padding: 4px 0 8px;
        gap: 5px;
    }

    .guide-map-node {
        min-height: 39px;
        padding: 5px 7px;
    }

    .guide-map-node > span {
        width: 25px;
        height: 25px;
    }

    .guide-map-node strong {
        font-size: 10px;
    }

    .guide-map-node small {
        font-size: 8px;
    }

    .guide-aside-divider {
        margin: 1px 0 8px;
    }

    .guide-aside-label {
        margin-bottom: 7px;
    }



    .guide-maturity {
        padding: 9px 11px;
    }

    .guide-maturity strong {
        margin-top: 3px;
        font-size: 11px;
    }

    .guide-maturity p {
        margin-top: 3px;
        font-size: 9px;
        line-height: 1.35;
    }

    .guide-footer {
        min-height: 34px;
        height: 34px;
        padding-block: 6px;
        flex: 0 0 auto;
    }
}

@media (min-width: 981px) and (max-height: 760px) {
    .guide-nav {
        min-height: 70px;
        height: 70px;
    }

    .guide-brand {
        width: 150px;
    }

    .guide-shell {
        padding-block: 10px;
    }

    .guide-footer {
        min-height: 30px;
        height: 30px;
    }

    .guide-screen {
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .guide-main.is-welcome .guide-intro-copy {
        transform: translateY(28px);
    }

    .guide-main.is-welcome .guide-eyebrow,
    .guide-main.is-welcome .guide-title,
    .guide-main.is-welcome .guide-lead {
        transform: translateY(12px);
    }

    .guide-main-top {
        padding-top: 11px;
    }

    .guide-eyebrow {
        margin-bottom: 8px;
        font-size: 10px;
    }

    .guide-title {
        font-size: clamp(25px, 2.65vw, 36px);
    }

    .guide-lead {
        margin-bottom: 9px;
        font-size: 12px;
    }

    .guide-intro-points {
        margin-top: 24px;
        gap: 5px;
        transform: translateY(20px);
    }

    .guide-intro-points > div {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 9px;
    }

    .guide-intro-points span {
        width: 28px;
        height: 28px;
    }

    .guide-actions {
        padding-bottom: 9px;
    }

    .guide-aside-heading p {
        display: none;
    }

    .guide-project-map {
        padding-bottom: 7px;
    }
}

@media (min-width: 981px) and (max-height: 680px) {
    .guide-maturity {
        display: none;
    }

    .guide-aside {
        padding-block: 11px;
    }

    .guide-project-map {
        padding-bottom: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================================
   10. CIERRE COMERCIAL Y FORMULARIO DEL PROSPECTO
   Se mantiene al final para aislar el upgrade P1 del diseño base de la guía.
   ========================================================================= */

.guide-screen.guide-screen--finish {
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.28) transparent;
}

.guide-contact-form {
    margin-top: 12px;
    text-align: left;
}

.guide-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.guide-field {
    display: grid;
    gap: 6px;
}

.guide-field > span {
    color: #dff6ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.guide-field > span b {
    color: var(--guide-cyan-bright);
}

.guide-field > span small {
    margin-left: 4px;
    color: #70889c;
    font-size: 9px;
    font-weight: 600;
}

.guide-field input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    color: #f8fafc;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 11px;
    outline: none;
    background: rgba(3, 14, 27, 0.72);
    font: inherit;
    font-size: 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.guide-field input::placeholder {
    color: #577084;
}

.guide-field input:focus {
    border-color: rgba(103, 232, 249, 0.62);
    background: rgba(4, 19, 35, 0.94);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.guide-consent {
    margin-top: 11px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #8299ad;
    font-size: 9px;
    line-height: 1.45;
}

.guide-consent input {
    margin-top: 2px;
    accent-color: var(--guide-cyan);
}

.guide-consent a {
    color: #7dd3fc;
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ==========================================================================
   21. CIERRE SEGURO · FRANJA DE CONFIANZA + CTA
   P4.1 compacta seguridad y plazo de respuesta en una misma franja. Cuando
   Turnstile ya validó al visitante, el bloque conserva solo el estado útil.
   ========================================================================== */

.guide-submit-zone {
    margin-top: 9px;
    padding: 10px;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 14px;
    background: rgba(4, 15, 27, 0.62);
}

.guide-submit-meta {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: 8px;
}

.guide-security-check,
.guide-response-promise {
    min-width: 0;
    margin: 0;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(125, 211, 252, 0.1);
    border-radius: 11px;
    background: rgba(7, 23, 39, 0.64);
}

.guide-security-check {
    position: relative;
    flex-wrap: wrap;
}

.guide-security-heading {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #dff7ff;
}

.guide-security-heading > span,
.guide-response-promise > span {
    width: 28px;
    height: 28px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--guide-cyan-bright);
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.06);
}

.guide-security-heading > div,
.guide-response-promise > div {
    min-width: 0;
}

.guide-security-heading strong,
.guide-response-promise strong {
    display: block;
    color: #e8f8ff;
    font-size: 9.5px;
    line-height: 1.25;
}

.guide-security-heading svg,
.guide-response-promise svg {
    width: 15px;
    height: 15px;
}

.guide-turnstile {
    width: 100%;
    min-height: 1px;
    margin: 3px 0 0 37px;
}

.guide-turnstile iframe {
    max-width: 100%;
}

.guide-turnstile-status,
.guide-response-promise p {
    margin: 2px 0 0;
    color: #7890a4;
    font-size: 8.5px;
    line-height: 1.3;
}

.guide-turnstile-status[data-tone="success"] {
    color: #86efac;
}

.guide-turnstile-status[data-tone="error"] {
    color: #fca5a5;
}

.guide-security-check.is-verified .guide-turnstile {
    display: none;
}

.guide-security-check.is-verified .guide-security-heading > span {
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.18);
    background: rgba(134, 239, 172, 0.07);
}

.guide-submit-button {
    width: 100%;
    min-height: 43px;
    margin-top: 8px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #03111e;
    border: 1px solid rgba(103, 232, 249, 0.7);
    border-radius: 11px;
    background: linear-gradient(135deg, var(--guide-cyan), var(--guide-cyan-bright));
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.12);
    font: inherit;
    font-size: 10.5px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.guide-submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(56, 189, 248, 0.18);
}

.guide-submit-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.guide-submit-button svg {
    width: 15px;
    height: 15px;
}

.guide-submit-status {
    min-height: 14px;
    margin: 5px 0 0;
    text-align: center;
    color: #7dd3fc;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.35;
}

.guide-submit-status:empty {
    min-height: 0;
    margin-top: 0;
}

.guide-submit-status[data-tone="success"] {
    color: #86efac;
}

.guide-submit-status[data-tone="error"] {
    color: #fca5a5;
}

.guide-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 640px) {
    .guide-submit-meta {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .guide-security-check,
    .guide-response-promise {
        padding: 7px 9px;
    }

    .guide-turnstile {
        margin-left: 0;
    }

    .guide-contact-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .guide-field input {
        min-height: 40px;
    }

}

/* =========================================================================
   11. UPGRADE P2 · RECOMENDACIONES, COMPLEMENTO Y ESTRUCTURA DINÁMICA
   - Las recomendaciones ahora pueden agregarse o descartarse.
   - La base técnica incluida se presenta al final como complemento.
   - El panel lateral representa la estructura real elegida por el usuario.
   ========================================================================= */

/* Recomendaciones con decisión explícita del usuario. */
.guide-recommendation {
    display: flex;
    flex-direction: column;
}

.guide-recommendation.is-accepted {
    border-color: rgba(74, 222, 128, 0.32);
    background: rgba(34, 197, 94, 0.045);
}

.guide-recommendation.is-rejected {
    opacity: 0.62;
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.32);
}

.guide-recommendation-label {
    min-height: 18px;
}

.guide-recommendation-actions {
    margin-top: auto;
    padding-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.guide-recommendation-button {
    min-height: 31px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #9bb1c3;
    border: 1px solid rgba(148, 210, 230, 0.14);
    border-radius: 9px;
    background: rgba(2, 11, 22, 0.46);
    font-size: 9px;
    font-weight: 800;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.guide-recommendation-button svg {
    width: 13px;
    height: 13px;
}

.guide-recommendation-button:hover {
    color: #f8fafc;
    border-color: rgba(56, 189, 248, 0.34);
    background: rgba(56, 189, 248, 0.07);
}

.guide-recommendation.is-accepted .guide-recommendation-button--accept {
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.28);
    background: rgba(34, 197, 94, 0.08);
}

.guide-recommendation.is-rejected .guide-recommendation-button--reject {
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(148, 163, 184, 0.07);
}

/* Complemento técnico ISM: se muestra después de la recomendación principal. */
.guide-included-complement {
    margin-top: 16px;
    padding: 15px;
    border: 1px solid rgba(74, 222, 128, 0.13);
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.025);
}

.guide-included-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.guide-included-heading .guide-section-label {
    margin-top: 0;
}

.guide-included-heading h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 16px;
    line-height: 1.25;
}

.guide-included-heading h3 span {
    color: #86efac;
}

.guide-included-copy {
    margin: 7px 0 0;
    color: #7890a7;
    font-size: 10px;
    line-height: 1.4;
}

.guide-included-complement .guide-essentials {
    margin: 12px 0 0;
    gap: 7px;
}

.guide-included-complement .guide-essential {
    min-height: 92px;
    padding: 11px 8px;
}

.guide-included-complement .guide-essential-icon {
    width: 29px;
    height: 29px;
    margin-bottom: 7px;
}

.guide-included-complement .guide-essential strong {
    font-size: 10px;
}

.guide-included-complement .guide-essential small {
    margin-top: 3px;
    font-size: 8px;
    line-height: 1.3;
}

/* El mapa lateral deja de ser un stepper y pasa a mostrar la solución elegida. */
.guide-project-map {
    position: relative;
}

.guide-map-node {
    position: relative;
}

.guide-map-node.is-recommended {
    border-color: rgba(74, 222, 128, 0.28);
    background: rgba(34, 197, 94, 0.045);
}

.guide-map-node.is-recommended > span {
    color: #052e16;
    border-color: #86efac;
    background: #86efac;
}


.guide-project-note {
    padding: 10px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    color: #6f879a;
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 11px;
    background: rgba(56, 189, 248, 0.025);
}

.guide-project-note svg {
    width: 18px;
    height: 18px;
    color: #7dd3fc;
}

.guide-project-note p {
    margin: 0;
    font-size: 9px;
    line-height: 1.4;
}

/* P2 elimina estilos residuales de exportación PDF/Excel y reduce repetición. */
@media (max-width: 720px) {
    .guide-included-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .guide-included-complement .guide-essentials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-included-complement .guide-essential:last-child {
        grid-column: 1 / -1;
    }

    .guide-recommendation-actions {
        padding-top: 8px;
    }

    .guide-recommendation-button {
        flex: 1 1 auto;
    }
}

@media (min-width: 981px) and (max-height: 760px) {
    .guide-included-complement {
        margin-top: 10px;
        padding: 10px;
    }

    .guide-included-copy {
        display: none;
    }

    .guide-included-complement .guide-essentials {
        margin-top: 8px;
    }

    .guide-included-complement .guide-essential {
        min-height: 68px;
        padding: 7px 5px;
    }

    .guide-included-complement .guide-essential-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }

    .guide-included-complement .guide-essential small {
        display: none;
    }

    .guide-recommendation-actions {
        padding-top: 7px;
    }

    .guide-recommendation-button {
        min-height: 27px;
        font-size: 8px;
    }
}


/* ==========================================================================
   22. P5 · RECORRIDO CON SCROLL, ALINEACIÓN Y CONFIRMACIÓN 8/8
   Ajustes de UX solicitados tras las pruebas reales en producción.
   ========================================================================== */

/* El recorrido conserva todos los elementos elegidos y activa scroll cuando
   supera el espacio disponible, evitando resúmenes del tipo “+ 2 elementos”. */
.guide-project-map {
    max-height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.42) rgba(255, 255, 255, 0.04);
    padding-right: 5px;
}

.guide-project-map::-webkit-scrollbar {
    width: 6px;
}

.guide-project-map::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.guide-project-map::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.42);
}

/* El estado de madurez se presenta como una conclusión, no como una nota
   lateral alineada a la izquierda. */
.guide-maturity {
    text-align: center;
}

.guide-maturity > span,
.guide-maturity strong,
.guide-maturity p {
    text-align: center;
}

/* Consentimiento centrado, manteniendo checkbox y texto juntos como una sola
   unidad legible. */
.guide-consent {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.guide-consent input {
    margin-top: 0;
    flex: 0 0 auto;
}

.guide-consent span {
    max-width: 620px;
}

/* El paso de éxito ocupa la experiencia principal completa para entregar un
   cierre claro y visible después del envío. */
.guide-experience.is-success {
    grid-template-columns: minmax(0, 1fr);
}

.guide-experience.is-success .guide-aside {
    display: none;
}

.guide-main.is-success {
    min-height: min(650px, calc(100vh - 150px));
}

.guide-main.is-success .guide-main-top {
    margin-bottom: 0;
}

.guide-screen--success {
    min-height: 500px;
    place-items: center;
    text-align: center;
}

.guide-screen--success.is-active {
    display: grid;
}

.guide-success-layout {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 54px);
    display: grid;
    justify-items: center;
    gap: 14px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(8, 26, 43, 0.82), rgba(3, 13, 25, 0.94));
}

.guide-success-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    color: #06111f;
    border-radius: 22px;
    background: var(--guide-cyan);
}

.guide-success-icon svg {
    width: 38px;
    height: 38px;
    stroke-width: 2;
}

.guide-success-step {
    margin: 2px 0 0;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.guide-success-title {
    max-width: 680px;
    margin: 0;
    color: #f8fafc;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.04;
}

.guide-success-title span {
    color: var(--guide-cyan);
}

.guide-success-copy {
    max-width: 590px;
    margin: 0;
    color: #91a7b9;
    font-size: 14px;
    line-height: 1.6;
}

.guide-success-promise {
    width: min(560px, 100%);
    margin-top: 4px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #d9e6f0;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.045);
    text-align: left;
}

.guide-success-promise > svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    color: #7dd3fc;
}

.guide-success-promise strong {
    display: block;
    font-size: 12px;
}

.guide-success-promise p {
    margin: 3px 0 0;
    color: #71899d;
    font-size: 10px;
}

.guide-success-actions {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 720px) {
    .guide-project-map {
        max-height: 280px;
    }

    .guide-success-layout {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .guide-success-promise {
        align-items: flex-start;
    }

    .guide-success-actions {
        width: 100%;
        flex-direction: column;
    }

    .guide-success-actions .guide-button {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   23. P5.1 · CORRECCIÓN DE RENDERIZADO Y JERARQUÍA FINAL
   Corrige el bloque P5 que había quedado serializado con saltos inválidos.
   ========================================================================== */

/* Consentimiento: unidad centrada y compacta. */
.guide-consent {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.guide-consent span {
    flex: 0 1 auto;
}

/* El recorrido scrollea solo en la lista; nota y momento digital permanecen fijos. */
.guide-project-map {
    min-height: 0;
    max-height: min(360px, 44vh);
    overflow-y: auto;
    overflow-x: hidden;
}

.guide-maturity {
    width: 100%;
    text-align: center;
}

/* Confirmación 8/8: cierre grande, centrado y sin competir con el panel lateral. */
.guide-screen--success.is-active {
    display: grid;
    place-items: center;
    padding: clamp(24px, 4vw, 46px);
}

.guide-success-layout {
    width: min(820px, 100%);
    min-height: 430px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.guide-success-icon {
    margin-inline: auto;
}

.guide-success-step {
    text-align: center;
}

.guide-success-title {
    text-align: center;
    font-size: clamp(34px, 5vw, 56px);
}

.guide-success-copy {
    text-align: center;
    font-size: 15px;
}

.guide-success-promise {
    text-align: center;
}

.guide-success-promise > div {
    text-align: center;
}

@media (max-width: 720px) {
    .guide-project-map {
        max-height: 300px;
    }

    .guide-screen--success.is-active {
        padding: 20px 14px;
    }

    .guide-success-layout {
        min-height: 390px;
    }
}
