/* =========================================================
   COTIZADOR · Soluciones Digitales & TI
   Paleta y tipografía de /tech (azul + Inter).
========================================================= */

:root {
    --bg: #070b14;
    --bg2: #0d1424;
    --surface-solid: #0f1729;
    --blue: #1d6ff2;
    --blue-dark: #1558cc;
    --blue-2: #00d4ff;
    --sky: #0ea5e9;
    --blue-light: #7cb4ff;
    --blue-soft: rgba(29, 111, 242, .14);
    --blue-glow: rgba(29, 111, 242, .35);

    --gradient: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
    --gradient-hover: linear-gradient(135deg, var(--blue-dark) 0%, #0284c7 100%);
    --gradient-text: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);

    --text: #e2e8f0;
    --gray: #8b9ab5;
    --muted: #5b6b86;
    --white: #ffffff;

    --card-bg: rgba(255, 255, 255, .04);
    --card-hover: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .15);

    --success: #22c55e;
    --whatsapp: #25d366;
    --warning: #f59e0b;
    --danger: #f87171;
    --focus-ring: rgba(56, 189, 248, .6);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --transition: .25s var(--ease);
    --shadow: 0 16px 48px rgba(0, 0, 0, .4);

    --nav-h: 68px;
    --stepper-h: 120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; scrollbar-color: #1e2a44 var(--bg); }

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Cuadrícula de fondo, igual que /tech */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(29, 111, 242, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 111, 242, .03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { color: var(--white); background: var(--blue); }

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text,
.quote-hero h1 span,
.step-intro h2 span,
.total-bar-item.total strong,
.summary-item.total span:last-child {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =====================================================
   NAV (idéntico a /tech)
===================================================== */

.tech-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    padding: 0 2rem;
    background: rgba(7, 11, 20, .92);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo span { color: var(--text); font-size: .85rem; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--gray); font-size: .875rem; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-links a.nav-active { color: var(--white); font-weight: 700; }
.nav-cta { padding: .5rem 1.2rem; color: #fff !important; background: var(--blue); border-radius: 8px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--blue-dark); }
.nav-hamburger { display: none; color: var(--text); background: none; border: none; font-size: 1.4rem; cursor: pointer; }

/* =====================================================
   HERO
===================================================== */

.configurator-screen {
    position: relative;
    z-index: 1;
    padding-top: var(--nav-h);
}

.quote-hero {
    position: relative;
    padding: 3.5rem 1.5rem 2rem;
    text-align: center;
}

.quote-hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: min(600px, 100%);
    height: 260px;
    background: radial-gradient(ellipse, rgba(29, 111, 242, .14) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1rem;
    color: var(--blue-2);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-tag::before {
    content: '';
    width: 20px; height: 2px;
    background: var(--blue-2);
    border-radius: 2px;
}

.quote-hero h1 {
    position: relative;
    margin-bottom: .75rem;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
}

.quote-hero p {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    color: var(--gray);
    line-height: 1.7;
}

/* =====================================================
   STEPPER
===================================================== */

.stepper-wrapper {
    position: sticky;
    top: var(--nav-h);
    z-index: 20;
    padding: 20px 0 14px;
    background: rgba(7, 11, 20, .9);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.stepper {
    --stepper-pad: 20px;
    --step-w: 120px;
    --circle: 40px;
    --step-inset: calc(var(--stepper-pad) + var(--step-w) / 2);

    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--stepper-pad);
}

.stepper::before,
.stepper-progress {
    position: absolute;
    top: calc(var(--circle) / 2 - 1px);
    left: var(--step-inset);
    height: 2px;
    border-radius: 2px;
}

.stepper::before {
    content: "";
    right: var(--step-inset);
    background: var(--border);
}

.stepper-progress {
    z-index: 1;
    width: calc((100% - 2 * var(--step-inset)) * var(--progress, 0));
    background: linear-gradient(90deg, var(--success), var(--blue) 60%, var(--blue-2));
    box-shadow: 0 0 12px var(--blue-glow);
    transition: width .5s var(--ease);
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--step-w);
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: center;
    background: none;
    border: 0;
}

.step:disabled { cursor: default; }
.step:not(:disabled) { cursor: pointer; }

.step-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--circle);
    height: var(--circle);
    margin-bottom: 8px;
    color: var(--gray);
    background: var(--surface-solid);
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    transition: all .35s var(--ease);
}

.step-circle i { display: none; }

.step-label {
    color: var(--gray);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.step-description {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.step.active .step-circle {
    color: var(--white);
    background: var(--gradient);
    border-color: var(--blue);
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(29, 111, 242, .18), 0 8px 20px var(--blue-glow);
}

.step.active .step-label { color: var(--blue-2); }
.step.active .step-description { color: var(--gray); }

.step.completed .step-circle { color: #052e16; background: var(--success); border-color: var(--success); }
.step.completed .step-circle span { display: none; }
.step.completed .step-circle i { display: block; }
.step.completed .step-label { color: var(--success); }
.step.completed:hover .step-circle { box-shadow: 0 0 0 5px rgba(34, 197, 94, .18); }

.step:focus-visible { outline: none; }
.step:focus-visible .step-circle { outline: 3px solid var(--focus-ring); outline-offset: 4px; }

/* =====================================================
   PASOS
===================================================== */

.configurator-content { padding-top: 48px; padding-bottom: 64px; }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn .4s var(--ease); }

.step-intro { margin-bottom: 32px; }

.step-counter {
    margin-bottom: 10px;
    color: var(--blue-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.step-intro h2 {
    margin-bottom: 10px;
    color: var(--white);
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.2;
}

.step-intro p { max-width: 640px; color: var(--gray); line-height: 1.6; }

.product-card:focus-visible,
.extra-card:focus-visible,
.payment-card:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

/* ---------- Paso 1 · productos ---------- */

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* 4 tipos de sitio en 2 × 2 */
    gap: 20px;
}

/* El sistema a medida ocupa toda la fila */
.products-grid .product-card:last-child { grid-column: 1 / -1; min-height: 0; }

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 26px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: var(--transition);
}

.product-card::before {
    content: "";
    position: absolute;
    top: -40%; right: -30%;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(29, 111, 242, .18) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.product-card:hover::before,
.product-card.selected::before { opacity: 1; }

.product-card:hover {
    background: var(--card-hover);
    border-color: rgba(29, 111, 242, .45);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.product-card.selected {
    background: rgba(29, 111, 242, .08);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(29, 111, 242, .14), 0 0 48px rgba(29, 111, 242, .2);
}

.product-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    color: var(--blue-2);
    background: linear-gradient(135deg, rgba(29, 111, 242, .2), rgba(0, 212, 255, .12));
    border: 1px solid rgba(29, 111, 242, .25);
    border-radius: 14px;
    font-size: 1.3rem;
    transition: var(--transition);
}

.product-card.selected .product-icon {
    color: var(--white);
    background: var(--gradient);
    box-shadow: 0 8px 20px var(--blue-glow);
}

.product-badge {
    padding: 5px 10px;
    color: var(--blue-light);
    background: rgba(29, 111, 242, .12);
    border: 1px solid rgba(29, 111, 242, .25);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.product-badge.popular { color: var(--white); background: var(--gradient); border-color: transparent; }

.product-card h3 { margin-bottom: 10px; color: var(--white); font-size: 1.3rem; font-weight: 800; }
.product-card h3 strong { color: var(--blue-2); }
.product-card p { flex: 1; color: var(--gray); font-size: .9rem; line-height: 1.6; }

.product-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0; }
.product-price small { color: var(--gray); font-size: 12px; }
.product-price strong { color: var(--white); font-size: 1.7rem; font-weight: 900; }

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    color: var(--gray);
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.product-select {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    color: var(--blue-2);
    background: rgba(29, 111, 242, .12);
    border-radius: 50%;
    transition: var(--transition);
}

.product-select .fa-check,
.product-card.selected .product-select .fa-arrow-right { display: none; }
.product-card.selected .product-select .fa-check { display: inline-block; }

.product-card:hover .product-select,
.product-card.selected .product-select { color: var(--white); background: var(--gradient); }

/* ---------- Navegación y botones ---------- */

.wizard-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.navigation-info { flex: 1; color: var(--gray); font-size: 13px; text-align: center; }
.navigation-info strong { color: var(--white); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 22px;
    color: var(--text);
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: color .2s, background .2s, box-shadow .2s, transform .2s, opacity .2s;
}

.btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: .8rem; }

.btn-primary { color: #fff; background: var(--gradient); box-shadow: 0 4px 20px var(--blue-glow); }
.btn-primary:hover { background: var(--gradient-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(29, 111, 242, .5); }

.btn-ghost { border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--blue-2); background: rgba(29, 111, 242, .08); border-color: var(--blue); }

.btn-success { color: #052e16; background: var(--whatsapp); box-shadow: 0 4px 20px rgba(37, 211, 102, .3); }
.btn-success:hover { background: #2ee271; transform: translateY(-2px); }

.btn-next, .btn-submit { min-width: 150px; }

.btn:disabled, .btn.is-loading { opacity: .45; box-shadow: none; pointer-events: none; }

/* ---------- Barra de totales ---------- */

.total-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin-bottom: 24px;
    padding: 18px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.total-bar-item { display: flex; flex-direction: column; gap: 2px; }

.total-bar-item span {
    color: var(--gray);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.total-bar-item strong { color: var(--white); font-size: 1.15rem; font-weight: 800; }
.total-bar-item.total { margin-left: auto; text-align: right; }
.total-bar-item.total strong { font-size: 1.7rem; font-weight: 900; }

/* ---------- Paso 2 · incluido ---------- */

.highlights-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.highlight-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.highlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 111, 242, .12) 0%, transparent 60%);
    pointer-events: none;
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px; height: 44px;
    color: var(--blue-2);
    background: var(--blue-soft);
    border-radius: 12px;
    font-size: 17px;
}

.highlight-text { display: flex; flex-direction: column; line-height: 1.3; }
.highlight-text strong { color: var(--white); font-size: 15px; font-weight: 800; }
.highlight-text span { color: var(--gray); font-size: 11px; letter-spacing: .4px; text-transform: uppercase; }

.features-groups { display: flex; flex-direction: column; gap: 28px; }

.features-category { animation: fadeIn .5s var(--ease) both; }

.features-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    color: var(--white);
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 800;
}

.features-category-title i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    color: var(--blue-2);
    background: var(--blue-soft);
    border-radius: 8px;
    font-size: 12px;
}

.features-count {
    margin-left: auto;
    padding: 2px 9px;
    color: var(--gray);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.features-list li:hover { background: var(--card-hover); border-color: rgba(29, 111, 242, .35); }

.feat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px; height: 40px;
    color: var(--blue-2);
    background: rgba(29, 111, 242, .12);
    border-radius: 10px;
    font-size: 15px;
}

.feat-text strong { display: block; color: var(--white); font-size: 14px; font-weight: 700; }
.feat-text small { display: block; margin-top: 2px; color: var(--gray); font-size: 12px; line-height: 1.45; }

.feat-tag, .annual-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    color: #fbbf24;
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(245, 158, 11, .25);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.info-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 28px;
    padding: 20px 22px;
    background: rgba(0, 212, 255, .05);
    border: 1px solid rgba(0, 212, 255, .2);
    border-radius: var(--radius-md);
}

.info-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px; height: 42px;
    color: var(--blue-2);
    background: rgba(0, 212, 255, .12);
    border-radius: 12px;
}

.info-note strong { display: block; margin-bottom: 4px; color: var(--white); font-size: 14px; }
.info-note p { color: var(--gray); font-size: 13px; line-height: 1.6; }
.info-note b { color: var(--text); }

/* ---------- Paso 3 · adicionales ---------- */

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.extra-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: var(--transition);
}

.extra-card:hover { background: var(--card-hover); border-color: var(--border-strong); }
.extra-card.selected { background: rgba(29, 111, 242, .1); border-color: var(--blue); }

.extra-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px; height: 44px;
    color: var(--blue-2);
    background: var(--blue-soft);
    border-radius: 12px;
    font-size: 17px;
    transition: var(--transition);
}

.extra-card.selected .extra-icon { color: var(--white); background: var(--gradient); }

.extra-info { flex: 1; min-width: 0; }
.extra-info h4 { margin-bottom: 4px; color: var(--white); font-size: 14px; font-weight: 700; }
.extra-info p { color: var(--gray); font-size: 12px; line-height: 1.45; }

.extra-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.extra-price { color: var(--success); font-size: 14px; font-weight: 800; white-space: nowrap; }

.extra-checkbox, .check-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px; height: 24px;
    color: transparent;
    border: 2px solid var(--muted);
    border-radius: 7px;
    font-size: 11px;
    transition: var(--transition);
}

.extra-card.selected .extra-checkbox { color: var(--white); background: var(--blue); border-color: var(--blue); }

/* Incluido en el plan: marcado y fijo */
.extra-card.included { cursor: default; background: rgba(34, 197, 94, .07); border-color: rgba(34, 197, 94, .45); }
.extra-card.included:hover { background: rgba(34, 197, 94, .09); border-color: rgba(34, 197, 94, .55); }
.extra-card.included .extra-icon { color: var(--white); background: var(--success); }
.extra-card.included .extra-checkbox { color: var(--white); background: var(--success); border-color: var(--success); }
.extra-card.included .extra-price { color: var(--success); }

.included-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    color: #4ade80;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .3);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.extras-empty {
    grid-column: 1 / -1;
    padding: 24px;
    color: var(--gray);
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

/* ---------- Paso 4 · pagos ---------- */

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.payment-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 20px 22px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: var(--transition);
}

.payment-card:hover { background: var(--card-hover); border-color: var(--border-strong); }
.payment-card.selected { background: rgba(29, 111, 242, .08); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 111, 242, .1); }

.payment-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px; height: 24px;
    color: transparent;
    border: 2px solid var(--muted);
    border-radius: 50%;
    font-size: 11px;
    transition: var(--transition);
}

.payment-card.selected .payment-radio { color: var(--white); background: var(--blue); border-color: var(--blue); }

.payment-info { flex: 1; min-width: 150px; }
.payment-info h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--white); font-size: 15px; font-weight: 700; }
.payment-info p { margin-top: 4px; color: var(--gray); font-size: 12.5px; }

.payment-price { color: var(--white); font-size: 1.1rem; font-weight: 800; text-align: right; }

.surcharge-badge {
    padding: 2px 9px;
    color: #fbbf24;
    background: rgba(245, 158, 11, .14);
    border: 1px solid rgba(245, 158, 11, .3);
    border-radius: 15px;
    font-size: 11px;
    font-weight: 800;
}

.discount-badge {
    padding: 2px 9px;
    color: #052e16;
    background: var(--success);
    border-radius: 15px;
    font-size: 11px;
    font-weight: 800;
}

/* ---------- Paso 5 · datos, términos y firma ---------- */

.final-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.form-col { display: flex; flex: 1.25; flex-direction: column; gap: 20px; min-width: 290px; }
.summary-col { flex: .75; align-self: stretch; min-width: 270px; }

.card-panel {
    padding: 26px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
}

.panel-title i { color: var(--blue-2); }
.panel-help { margin: -8px 0 14px; color: var(--gray); font-size: 13px; }

.form-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    color: #fecaca;
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .3);
    border-radius: var(--radius-sm);
    font-size: 13px;
    animation: shake .4s ease;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field.full { grid-column: 1 / -1; }

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray);
    font-size: 13px;
    font-weight: 700;
}

.field label span { color: var(--danger); }

.form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--text);
    font: inherit;
    font-size: .92rem;
    background-color: rgba(0, 0, 0, .28);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
    color-scheme: dark;
}

.form-control::placeholder { color: var(--muted); }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 111, 242, .18); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(248, 113, 113, .18); }

select.form-control {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%238b9ab5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    appearance: none;
}

select.form-control option { color: var(--text); background: var(--surface-solid); }
textarea.form-control { resize: vertical; }

.input-wrapper { position: relative; }

.input-wrapper > i {
    position: absolute;
    top: 50%; left: 15px;
    color: var(--gray);
    transform: translateY(-50%);
    transition: color .2s;
    pointer-events: none;
}

.input-wrapper:focus-within > i { color: var(--blue-2); }
.input-wrapper .form-control { padding-left: 43px; }
.input-wrapper:has(.is-invalid) > i { color: var(--danger); }

.invalid-feedback { display: none; margin-top: 6px; color: var(--danger); font-size: 12.5px; }
.invalid-feedback.show { display: block; }

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.terms-list li {
    display: flex;
    gap: 10px;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.55;
}

.terms-list li i { margin-top: 3px; color: var(--blue-2); font-size: 12px; }
.terms-list li strong { color: var(--text); }

.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text);
    background: rgba(0, 0, 0, .2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-row input:checked + .check-box { color: var(--white); background: var(--blue); border-color: var(--blue); }
.check-row input:focus-visible + .check-box { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.check-row.is-invalid { border-color: var(--danger); }

/* Recuadro de firma: fondo claro para que la tinta oscura quede igual en el PDF */
.signature-box {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8fafc;
    border: 2px dashed #94a3b8;
    border-radius: var(--radius-md);
    touch-action: none;
}

.signature-box.is-invalid { border-color: var(--danger); }
.signature-box.has-signature { border-style: solid; border-color: var(--blue); }

.signature-box canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; cursor: crosshair; }

.signature-placeholder {
    position: absolute;
    top: 50%; left: 50%;
    color: #94a3b8;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 600;
    transform: translate(-50%, -60%);
    pointer-events: none;
}

.signature-box.has-signature .signature-placeholder { display: none; }

.signature-line {
    position: absolute;
    right: 24px; bottom: 44px; left: 24px;
    height: 1px;
    background: #cbd5e1;
    pointer-events: none;
}

.signature-actions { display: flex; gap: 10px; margin-top: 10px; }

/* Resumen */
.quote-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + var(--stepper-h) + 16px);
    padding: 24px;
    background: linear-gradient(160deg, rgba(29, 111, 242, .12) 0%, transparent 45%), var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.quote-sidebar h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--white); font-size: 1.05rem; font-weight: 800; }
.quote-sidebar h4 i { color: var(--blue-2); }

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--gray);
    font-size: .86rem;
}

.summary-item span:last-child { color: var(--text); text-align: right; }
.summary-item.product span:last-child { font-weight: 800; color: var(--white); }
.summary-item.extra { font-size: .8rem; }
.summary-item.subtotal { padding-top: 10px; border-top: 1px dashed var(--border); }
.summary-item.discount span:last-child { color: var(--success); font-weight: 700; }

.summary-item.total {
    align-items: baseline;
    margin: 16px 0 0;
    padding-top: 16px;
    color: var(--white);
    border-top: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 800;
}

.summary-item.total span:last-child { font-size: 1.6rem; font-weight: 900; }
.summary-item.annual { margin-top: 10px; }

.summary-note {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    color: var(--gray);
    background: rgba(0, 0, 0, .2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.5;
}

.summary-note i { margin-top: 2px; color: var(--blue-2); }

/* =====================================================
   ÉXITO
===================================================== */

.success-screen {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: calc(var(--nav-h) + 60px) 20px 60px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 30%, rgba(34, 197, 94, .1) 0%, transparent 50%);
}

.success-content { max-width: 640px; animation: fadeIn .6s var(--ease); }

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px; height: 88px;
    margin: 0 auto 24px;
    color: var(--white);
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(34, 197, 94, .12), 0 15px 35px rgba(34, 197, 94, .3);
    font-size: 36px;
    animation: successPop .6s ease;
}

.success-badge { display: inline-block; margin-bottom: 14px; color: var(--success); font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.success-content h1 { margin-bottom: 14px; color: var(--white); font-size: clamp(2rem, 6vw, 3rem); font-weight: 900; }
.success-content p { color: var(--gray); line-height: 1.7; }

.success-recap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 28px;
    overflow: hidden;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.recap-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: var(--surface-solid); }
.recap-item span { color: var(--gray); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.recap-item strong { color: var(--white); font-size: 14px; }

.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* =====================================================
   FOOTER
===================================================== */

.tech-footer {
    position: relative;
    z-index: 1;
    padding: 2.5rem 1.5rem;
    color: var(--gray);
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: .875rem;
    line-height: 1.8;
}

.footer-brand { color: var(--text); font-weight: 600; }

/* =====================================================
   ANIMACIONES
===================================================== */

@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes successPop { 0% { opacity: 0; transform: scale(.5); } 80% { transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --stepper-h: 84px; }

    .tech-nav { padding: 0 1rem; }
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
    .nav-links.open {
        position: absolute;
        top: 100%; left: 0; right: 0;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem 2rem;
        background: rgba(7, 11, 20, .97);
        border-bottom: 1px solid var(--border);
    }

    .stepper { --stepper-pad: 4px; --step-w: 64px; --circle: 34px; }
    .step-label { font-size: 8.5px; letter-spacing: .2px; }
    .step-description { display: none; }

    .products-grid { grid-template-columns: 1fr; }
    .product-card { min-height: 0; }

    .wizard-navigation { flex-wrap: wrap; }
    .navigation-info { order: 3; flex-basis: 100%; }
    .wizard-navigation .btn { flex: 1; }

    .total-bar-item.total { width: 100%; margin-left: 0; text-align: left; }
    .extras-grid, .payment-options, .form-grid { grid-template-columns: 1fr; }
    .payment-price { width: 100%; padding-left: 42px; text-align: left; }

    .quote-sidebar { position: static; }
    .success-recap { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .nav-logo span { display: none; }
    .quote-hero { padding-top: 2.5rem; }
    .card-panel { padding: 20px; }
    .product-card { padding: 22px; }
    .success-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================
   PASO 2 · "¿PARA QUIÉN ES?" Y NIVELES
===================================================== */

.audience-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(29, 111, 242, .07);
    border: 1px solid rgba(29, 111, 242, .25);
    border-radius: var(--radius-md);
}

.audience-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px; height: 40px;
    color: var(--blue-2);
    background: var(--blue-soft);
    border-radius: 12px;
}

.audience-note strong { display: block; margin-bottom: 2px; color: var(--white); font-size: 14px; }
.audience-note p { color: var(--gray); font-size: 13.5px; line-height: 1.55; }

.level-picker {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--card-bg);
    border: 1.5px solid rgba(29, 111, 242, .35);
    border-radius: var(--radius-lg);
}

.levels-help {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    color: var(--gray);
    background: rgba(0, 212, 255, .05);
    border: 1px dashed rgba(0, 212, 255, .3);
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.55;
}

.levels-help > i { margin-top: 2px; color: var(--blue-2); font-size: 16px; }
.levels-help strong { display: block; margin-bottom: 2px; color: var(--white); }
.levels-help-example { margin-top: 6px; color: var(--text); font-style: italic; }

.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.level-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    background: rgba(0, 0, 0, .2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: var(--transition);
}

.level-card:hover { background: var(--card-hover); border-color: var(--border-strong); }
.level-card.selected { background: rgba(29, 111, 242, .1); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 111, 242, .12); }
.level-card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.level-card.selected .payment-radio { color: var(--white); background: var(--blue); border-color: var(--blue); }

.level-card-top { display: flex; align-items: center; justify-content: space-between; }
.level-name { color: var(--blue-2); font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.level-price { color: var(--white); font-size: 1.6rem; font-weight: 900; }
.level-summary { color: var(--white); font-size: 14px; font-weight: 700; }
.level-description { color: var(--gray); font-size: 12.5px; line-height: 1.5; }
.level-ideal { margin-top: 4px; padding-top: 8px; color: var(--text); border-top: 1px solid var(--border); font-size: 12px; line-height: 1.5; }
.level-ideal i { color: #fbbf24; }

@media (max-width: 768px) {
    .levels-grid { grid-template-columns: 1fr; }
    .level-picker { padding: 18px; }
}

/* =====================================================
   PASO 1 · TARJETA DESTACADA "SISTEMA A MEDIDA"
===================================================== */

.products-grid .custom-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 32px;
    padding: 34px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(29, 111, 242, .22) 0%, transparent 55%),
        radial-gradient(90% 120% at 100% 100%, rgba(0, 212, 255, .14) 0%, transparent 60%),
        linear-gradient(160deg, #0d1a33 0%, #0a1222 100%);
    border: 1.5px solid transparent;
    border-radius: 24px;
    isolation: isolate;
}

/* Borde con degradado animado */
.custom-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(120deg, var(--blue), var(--blue-2), rgba(255, 255, 255, .12), var(--blue));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: customBorder 8s linear infinite;
    pointer-events: none;
}

/* Cuadrícula sutil de fondo */
.custom-card::before {
    top: 0; right: 0; bottom: 0; left: auto;
    width: 55%; height: auto;
    background: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
    opacity: 1;
    z-index: -1;
}

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

.products-grid .custom-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(29, 111, 242, .22); }
.products-grid .custom-card.selected { box-shadow: 0 0 0 4px rgba(29, 111, 242, .2), 0 24px 70px rgba(29, 111, 242, .3); }

.custom-main { display: flex; flex-direction: column; min-width: 0; }
.custom-card .product-card-top { margin-bottom: 18px; }
.custom-card .product-icon { width: 58px; height: 58px; font-size: 1.45rem; color: var(--white); background: var(--gradient); box-shadow: 0 10px 26px var(--blue-glow); border: 0; }

.custom-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--white); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.custom-badge i { color: var(--blue-2); }

.custom-eyebrow {
    margin-bottom: 6px;
    color: var(--blue-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.custom-card h3 { margin-bottom: 12px; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; }
.custom-card h3 strong {
    background: linear-gradient(135deg, #7cb4ff 0%, var(--blue-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.custom-card .custom-pitch { flex: 0 0 auto; margin-bottom: 20px; color: #b6c2d9; font-size: .98rem; line-height: 1.65; }

.custom-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.custom-capabilities li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    color: var(--text);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 600;
}

.custom-capabilities li i { color: var(--blue-2); font-size: 12px; }

.custom-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.custom-bottom .product-price { flex-direction: column; gap: 2px; margin: 0; }
.custom-bottom .product-price strong { font-size: 1.5rem; }
.custom-cta { white-space: nowrap; box-shadow: 0 10px 28px var(--blue-glow); }
.custom-cta i { transition: transform var(--transition); }
.custom-card:hover .custom-cta i { transform: translateX(4px); }

/* Columna "Así funciona" */
.custom-process {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: rgba(7, 11, 20, .55);
    border: 1px solid var(--border);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.custom-process-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--white);
    font-size: .95rem;
    font-weight: 800;
}

.custom-process-title i { color: var(--blue-2); }

.custom-process ol { position: relative; flex: 1; margin: 0; padding: 0; list-style: none; }

.custom-process li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.custom-process li:last-child { padding-bottom: 0; }

/* Línea que une los pasos */
.custom-process li:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 42px; bottom: 4px; left: 19px;
    width: 2px;
    background: linear-gradient(var(--blue), rgba(29, 111, 242, .1));
}

.process-dot {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    height: 40px;
    color: var(--blue-2);
    background: rgba(29, 111, 242, .14);
    border: 1px solid rgba(29, 111, 242, .4);
    border-radius: 12px;
    font-size: .95rem;
}

.custom-process li small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.custom-process li strong { display: block; margin: 1px 0 3px; color: var(--white); font-size: .92rem; }
.custom-card .custom-process li p { color: var(--gray); font-size: .83rem; line-height: 1.5; }

.custom-free {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 12px;
    color: #86efac;
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .25);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.custom-select { position: absolute; top: 20px; right: 20px; display: none; }
.custom-card.selected .custom-select { display: flex; }
.custom-card.selected .custom-badge { visibility: hidden; }

/* =====================================================
   PASO 3 · TU PROYECTO (Sistema a Medida)
===================================================== */

.project-panel { display: grid; gap: 20px; }
.project-panel[hidden] { display: none; }

.project-block-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.project-block-head > div { flex: 1; }
.project-block-head h3 { margin-bottom: 4px; color: var(--white); font-size: 1.08rem; font-weight: 800; }
.project-block-head p { color: var(--gray); font-size: .88rem; line-height: 1.55; }

.project-number {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    height: 34px;
    color: var(--white);
    background: var(--gradient);
    border-radius: 10px;
    box-shadow: 0 6px 16px var(--blue-glow);
    font-weight: 800;
}

.modules-count {
    flex: 0 0 auto;
    padding: 6px 12px;
    color: var(--blue-light);
    background: var(--blue-soft);
    border: 1px solid rgba(29, 111, 242, .3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.modules-count.empty { color: var(--danger); background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); }

.modules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border-radius: var(--radius-md); }
.modules-grid.is-invalid { outline: 2px solid rgba(248, 113, 113, .5); outline-offset: 6px; }

.module-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .025);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.module-card:hover { background: var(--card-hover); border-color: var(--border-strong); }
.module-card.selected { background: rgba(29, 111, 242, .09); border-color: rgba(29, 111, 242, .7); }

.module-card input { position: absolute; opacity: 0; pointer-events: none; }
.module-card:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.module-icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    height: 40px;
    color: var(--gray);
    background: rgba(255, 255, 255, .05);
    border-radius: 11px;
    transition: var(--transition);
}

.module-card.selected .module-icon { color: var(--white); background: var(--gradient); }

.module-info { flex: 1; min-width: 0; }
.module-info strong { display: block; color: var(--white); font-size: .9rem; }
.module-info small { display: block; color: var(--gray); font-size: .78rem; line-height: 1.4; }

/* Interruptor */
.module-toggle {
    position: relative;
    flex: 0 0 38px;
    height: 22px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50px;
    transition: var(--transition);
}

.module-toggle::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
    transition: var(--transition);
}

.module-card.selected .module-toggle { background: var(--blue); }
.module-card.selected .module-toggle::after { transform: translateX(16px); }

/* Preguntas rápidas */
.questions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.question { min-width: 0; margin: 0; padding: 0; border: 0; }
.question legend { margin-bottom: 10px; color: var(--text); font-size: .88rem; font-weight: 700; }
.question-help { display: flex; gap: 7px; margin: -4px 0 10px; color: var(--gray); font-size: .78rem; line-height: 1.5; }
.question-help i { margin-top: 3px; color: var(--blue-2); font-size: .75rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
    display: inline-block;
    padding: 8px 14px;
    color: var(--gray);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 600;
    transition: var(--transition);
}

.chip:hover span { color: var(--white); border-color: rgba(29, 111, 242, .5); }
.chip input:checked + span { color: var(--white); background: var(--gradient); border-color: transparent; box-shadow: 0 4px 14px var(--blue-glow); }
.chip input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* Descripción con formato */
.brief-tips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; padding: 0; list-style: none; }
.brief-tips li { display: flex; align-items: center; gap: 7px; color: var(--gray); font-size: .82rem; }
.brief-tips i { color: var(--blue-2); font-size: .8rem; }

.brief-editor {
    min-height: 230px;
    overflow: hidden;
    background: rgba(0, 0, 0, .28);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.brief-editor:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 111, 242, .18); }
.brief-editor.is-invalid { border-color: var(--danger); }
.brief-editor.is-loading { background: rgba(255, 255, 255, .03) linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent) 0 0 / 200% 100%; animation: briefShimmer 1.2s linear infinite; }
.brief-editor textarea.form-control { min-height: 230px; border: 0; border-radius: 0; background: transparent; }
.brief-editor textarea.form-control:focus { box-shadow: none; }

@keyframes briefShimmer { to { background-position: -200% 0; } }

.brief-meta { display: flex; justify-content: flex-end; margin-top: 8px; }
#briefCounter { color: var(--muted); font-size: 12px; font-weight: 600; }
#briefCounter.ok { color: var(--success); }
#briefCounter.over { color: var(--danger); }

/* Quill (tema "snow") adaptado al modo oscuro */
.brief-editor .ql-toolbar.ql-snow { padding: 10px 12px; background: rgba(255, 255, 255, .04); border: 0; border-bottom: 1px solid var(--border); font-family: inherit; }
.brief-editor .ql-container.ql-snow { border: 0; font-family: inherit; font-size: .95rem; }
.brief-editor .ql-editor { min-height: 180px; padding: 16px 18px; color: var(--text); line-height: 1.65; }
.brief-editor .ql-editor.ql-blank::before { left: 18px; right: 18px; color: var(--muted); font-style: normal; }
.brief-editor .ql-editor h2 { margin: .4em 0 .3em; color: var(--white); font-size: 1.3rem; }
.brief-editor .ql-editor h3 { margin: .4em 0 .3em; color: var(--white); font-size: 1.08rem; }
.brief-editor .ql-editor blockquote { margin: .5em 0; padding-left: 14px; color: var(--gray); border-left: 3px solid var(--blue); }
.brief-editor .ql-editor a { color: var(--blue-2); }
.brief-editor .ql-snow .ql-stroke { stroke: var(--gray); }
.brief-editor .ql-snow .ql-fill { fill: var(--gray); }
.brief-editor .ql-snow .ql-picker { color: var(--gray); }
.brief-editor .ql-snow button:hover .ql-stroke,
.brief-editor .ql-snow button.ql-active .ql-stroke,
.brief-editor .ql-snow .ql-picker-label:hover .ql-stroke,
.brief-editor .ql-snow .ql-picker-label.ql-active .ql-stroke { stroke: var(--blue-2); }
.brief-editor .ql-snow button:hover .ql-fill,
.brief-editor .ql-snow button.ql-active .ql-fill { fill: var(--blue-2); }
.brief-editor .ql-snow .ql-picker-label:hover,
.brief-editor .ql-snow .ql-picker-label.ql-active,
.brief-editor .ql-snow .ql-picker-item:hover,
.brief-editor .ql-snow .ql-picker-item.ql-selected { color: var(--blue-2); }
.brief-editor .ql-snow .ql-picker-options { background: var(--surface-solid); border-color: var(--border-strong) !important; border-radius: 8px; }
.brief-editor .ql-snow .ql-tooltip { z-index: 5; color: var(--text); background: var(--surface-solid); border-color: var(--border-strong); border-radius: 10px; box-shadow: var(--shadow); }
.brief-editor .ql-snow .ql-tooltip input[type="text"] { color: var(--text); background: rgba(0, 0, 0, .3); border-color: var(--border-strong); border-radius: 6px; }
.brief-editor .ql-snow .ql-tooltip a { color: var(--blue-2); }

@media (max-width: 900px) {
    .products-grid .custom-card { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
    .custom-card::before { width: 100%; }
}

@media (max-width: 768px) {
    .modules-grid, .questions-grid { grid-template-columns: 1fr; }
    .project-block-head { flex-wrap: wrap; }
    .modules-count { margin-left: 48px; }
}

@media (max-width: 480px) {
    .products-grid .custom-card { padding: 22px; }
    .custom-bottom { flex-direction: column; align-items: stretch; }
    .custom-cta { justify-content: center; }
    .custom-process { padding: 18px; }
}

/* Página de firma: elegir forma de pago */
.sign-payments { grid-template-columns: 1fr; }
.sign-payments .payment-card { position: relative; cursor: pointer; }
.sign-payments .sr-radio { position: absolute; opacity: 0; pointer-events: none; }
.sign-payments .payment-card:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.suggested-badge {
    padding: 3px 9px;
    color: var(--blue-light);
    background: var(--blue-soft);
    border: 1px solid rgba(29, 111, 242, .35);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}
