        /* ═══════════════════════════════════
           DESIGN TOKENS
        ═══════════════════════════════════ */
        :root {
            --primary: #13357b;
            --primary-dark: #0b1f4d;
            --primary-mid: #1a4a9e;
            --primary-soft: #eef1fd;
            --success: #2ab57d;
            --warning: #ffbc00;
            --danger: #fd625e;
            --body-bg: #f5f6f8;
            --card-bg: #ffffff;
            --border: #e9ebee;
            --text: #495057;
            --text-muted: #74788d;
            --heading: #1e2d4a;
            --shadow-sm: 0 1px 4px rgba(0, 0, 0, .06);
            --shadow: 0 2px 12px rgba(0, 0, 0, .08);
            --shadow-lg: 0 8px 32px rgba(19, 53, 123, .12);
            --radius: 14px;
            --radius-sm: 9px;
            --transition: all .22s ease;
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        body {
            font-family: 'Nunito', sans-serif;
            background: var(--body-bg);
            color: var(--text);
            font-size: 0.875rem;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
        }

        /* ═══════════════════════════════════
           FONDO
        ═══════════════════════════════════ */
        .page-bg {
            position: fixed;
            inset: 0;
            z-index: -2;
            background-image: url('https://pagos.ieshercar.com/public/images/fondo-login.jpg');
            background-size: cover;
            background-position: center;
            opacity: .55;
        }

        .page-bg-overlay {
            position: fixed;
            inset: 0;
            z-index: -1;
            background: linear-gradient(160deg, rgba(19, 53, 123, .08) 0%, rgba(245, 246, 248, .92) 60%);
        }

        /* ═══════════════════════════════════
           NAVBAR
        ═══════════════════════════════════ */
        .main-header {
            background: #fff;
            border-bottom: 1px solid var(--border);
            box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
            padding: .6rem 0;
            position: sticky;
            top: 0;
            z-index: 1030;
        }

        .navbar-brand {
            display: flex;
            align-items: center;
            gap: .65rem;
            text-decoration: none;
        }

        .navbar-brand img {
            height: 36px;
            width: auto;
        }

        .navbar-brand .brand-text {
            font-weight: 800;
            font-size: .96rem;
            color: var(--primary);
            letter-spacing: -.2px;
            line-height: 1.2;
        }

        .navbar-toggler {
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            padding: .35rem .55rem;
        }

        .navbar-toggler:focus {
            box-shadow: none;
        }

        /* ═══════════════════════════════════
           HERO HEADER
        ═══════════════════════════════════ */
        .hero {
            padding: 3.5rem 0 2rem;
        }

        .hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--primary-soft);
            color: var(--primary);
            border-radius: 20px;
            padding: 5px 14px;
            font-size: .72rem;
            font-weight: 700;
            letter-spacing: .4px;
            text-transform: uppercase;
            margin-bottom: 1rem;
        }

        .hero h1 {
            font-size: clamp(1.5rem, 3vw, 2rem);
            font-weight: 800;
            color: var(--heading);
            line-height: 1.2;
            margin-bottom: .75rem;
        }

        .hero h1 .accent {
            color: var(--primary);
        }

        .hero .lead {
            font-size: .92rem;
            color: var(--text-muted);
            max-width: 520px;
            margin-bottom: 1.5rem;
            font-weight: 500;
        }

        /* Pills */
        .info-pills {
            display: flex;
            flex-wrap: wrap;
            gap: .5rem;
        }

        .info-pill {
            background: #fff;
            color: var(--primary);
            border: 1px solid rgba(19, 53, 123, .15);
            border-radius: 20px;
            padding: .3rem .9rem;
            font-size: .72rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            box-shadow: var(--shadow-sm);
        }

        /* ═══════════════════════════════════════
           CARD
        ═══════════════════════════════════════ */
        .card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 1.5rem;
        }

        .card-header {
            background: linear-gradient(135deg, var(--primary) 0%, #5580f0 100%);
            padding: 1.1rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.85rem;
        }

        .card-header .hdr-icon {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, .18);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: #fff;
            flex-shrink: 0;
        }

        .card-header h5 {
            color: #fff;
            font-size: 0.95rem;
            font-weight: 700;
            margin: 0;
        }

        .card-header p {
            color: rgba(255, 255, 255, .75);
            font-size: 0.78rem;
            margin: 0.15rem 0 0;
        }

        .card-body {
            padding: 1.5rem;
        }

        /* ═══════════════════════════════════════
           SECTION DIVIDER
        ═══════════════════════════════════════ */
        .section-title {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-bottom: 1.1rem;
            margin-top: 0.25rem;
        }

        .section-title span {
            font-size: 0.72rem;
            font-weight: 800;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 0.7px;
            white-space: nowrap;
        }

        .section-title hr {
            flex: 1;
            margin: 0;
            border-color: var(--border);
            opacity: 1;
        }

        #formulario-pasos {
            display: none;
        }


        /* ═══════════════════════════════════════
           STEP INDICATOR
        ═══════════════════════════════════════ */
        .step-indicator {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            gap: 0;
            margin-bottom: 2rem;
            padding: 1.25rem 1rem 1rem;
            background: var(--primary-soft);
            border-radius: var(--radius-sm);
            position: relative;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            position: relative;
            z-index: 1;
        }

        .step:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 17px;
            left: calc(50% + 17px);
            right: calc(-50% + 17px);
            height: 2px;
            background: var(--border);
            z-index: 0;
        }

        .step.completed:not(:last-child)::after {
            background: var(--primary);
        }

        .step-number {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #fff;
            border: 2px solid var(--border);
            color: var(--text-muted);
            font-weight: 800;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.4rem;
            transition: all .25s;
            position: relative;
            z-index: 1;
        }

        .step.active .step-number {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
            box-shadow: 0 0 0 4px rgba(55, 98, 234, .18);
        }

        .step.completed .step-number {
            background: var(--success);
            border-color: var(--success);
            color: #fff;
        }

        .step-label {
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--text-muted);
            text-align: center;
            line-height: 1.3;
        }

        .step.active .step-label {
            color: var(--primary);
        }

        .step.completed .step-label {
            color: var(--success);
        }

        /* ═══════════════════════════════════════
           FORM ELEMENTS
        ═══════════════════════════════════════ */
        .label {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--heading);
            margin-bottom: 0.35rem;
            display: block;
        }

        .label .req {
            color: var(--danger);
            margin-left: 2px;
        }

        /* Standard inputs */
        .input,
        .form-control {
            border: 1.5px solid var(--border) !important;
            border-radius: var(--radius-sm) !important;
            font-family: 'Nunito', sans-serif !important;
            font-size: 0.85rem !important;
            color: var(--text) !important;
            padding: 0.48rem 0.85rem !important;
            width: 100%;
            background: #fafbfc !important;
            transition: border-color .2s, box-shadow .2s !important;
            outline: none;
            height: 38px !important;
        }

        .input:focus,
        .form-control:focus {
            border-color: var(--primary) !important;
            box-shadow: 0 0 0 3px rgba(55, 98, 234, .12) !important;
            background: #fff !important;
        }

        .input[readonly],
        .form-control[readonly],
        .input:disabled,
        .form-control:disabled {
            background: #f0f2f5 !important;
            color: var(--text-muted) !important;
            cursor: default;
        }

        /* Select */
        select.form-control {
            height: 38px !important;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2374788d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: right 10px center !important;
            padding-right: 2rem !important;
        }

        /* Input with search button */
        .input-container {
            display: flex;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            overflow: hidden;
            background: #fafbfc;
            transition: border-color .2s, box-shadow .2s;
        }

        .input-container:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(55, 98, 234, .12);
            background: #fff;
        }

        .input-container input {
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            background: transparent !important;
            flex: 1;
            padding: 0.48rem 0.85rem !important;
            font-family: 'Nunito', sans-serif;
            font-size: 0.85rem;
            color: var(--text);
            outline: none;
            height: 36px !important;
        }

        .input-container button {
            background: var(--primary);
            border: none;
            color: #fff;
            padding: 0 1rem;
            cursor: pointer;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 4px;
            font-family: 'Nunito', sans-serif;
            font-weight: 600;
            transition: background .2s;
            white-space: nowrap;
        }

        .input-container button:hover {
            background: var(--primary-dark);
        }

        /* Radio buttons */
        .radio-group {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            padding-top: 0.2rem;
        }

        .radio-opt {
            display: flex;
            align-items: center;
            gap: 6px;
            background: #fafbfc;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 0.38rem 0.85rem;
            cursor: pointer;
            transition: all .2s;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text);
        }

        .radio-opt:hover {
            border-color: var(--primary);
            background: var(--primary-soft);
        }

        .radio-opt input[type="radio"] {
            accent-color: var(--primary);
            width: 14px;
            height: 14px;
            cursor: pointer;
            margin: 0;
        }

        /* ═══════════════════════════════════════
           ALERTS
        ═══════════════════════════════════════ */
        .alert {
            border-radius: var(--radius-sm);
            padding: 0.8rem 1rem;
            font-size: 0.82rem;
            font-weight: 600;
            display: flex;
            align-items: flex-start;
            gap: 0.6rem;
            border: 1px solid transparent;
        }

        .alert i {
            font-size: 1rem;
            flex-shrink: 0;
            margin-top: 1px;
        }

        .alert-warning {
            background: var(--warning-soft);
            border-color: #ffe599;
            border-left: 4px solid var(--warning);
            color: #7a6000;
        }

        .alert-warning i {
            color: var(--warning);
        }

        .alert-info {
            background: var(--info-soft);
            border-color: #b8ddf8;
            border-left: 4px solid var(--info);
            color: #1a5f8a;
        }

        .alert-info i {
            color: var(--info);
        }

        .alert-success {
            background: var(--success-soft);
            border-color: #a3e6cc;
            border-left: 4px solid var(--success);
            color: #1a6645;
        }

        .alert-success i {
            color: var(--success);
        }

        .alert-danger {
            background: var(--danger-soft);
            border-color: #fbb;
            border-left: 4px solid var(--danger);
            color: #a32020;
        }

        /* ═══════════════════════════════════════
           FILE UPLOAD
        ═══════════════════════════════════════ */
        .file-upload {
            border: 2px dashed var(--border);
            border-radius: var(--radius);
            background: #fafbfc;
            padding: 2.5rem 1.5rem;
            text-align: center;
            cursor: pointer;
            transition: all .25s;
        }

        .file-upload:hover {
            border-color: var(--primary);
            background: var(--primary-soft);
        }

        .file-upload .upload-icon {
            width: 60px;
            height: 60px;
            background: var(--primary-soft);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-size: 1.5rem;
            color: var(--primary);
        }

        .file-upload h5 {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--heading);
            margin-bottom: 0.35rem;
        }

        .file-upload p {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin: 0;
        }

        /* ═══════════════════════════════════════
           SUMMARY CARD (paso 4)
        ═══════════════════════════════════════ */
        .summary-card {
            background: #fafbfc;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            overflow: hidden;
        }

        .summary-header {
            background: var(--primary-soft);
            padding: 0.7rem 1rem;
            font-size: 0.82rem;
            font-weight: 800;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .summary-body {
            padding: 1rem;
        }

        /* Checkbox */
        .check {
            display: flex;
            align-items: flex-start;
            gap: 0.6rem;
            background: var(--primary-soft);
            border: 1.5px solid rgba(55, 98, 234, .2);
            border-radius: var(--radius-sm);
            padding: 0.85rem 1rem;
            margin-top: 1rem;
            cursor: pointer;
        }

        .check input[type="checkbox"] {
            accent-color: var(--primary);
            width: 16px;
            height: 16px;
            cursor: pointer;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .check label {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--primary);
            cursor: pointer;
            margin: 0;
        }

        /* ═══════════════════════════════════════
           BUTTONS
        ═══════════════════════════════════════ */
        .btn-mn {
            font-family: 'Nunito', sans-serif;
            font-weight: 700;
            font-size: 0.85rem;
            border-radius: var(--radius-sm);
            padding: 0.5rem 1.4rem;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all .2s;
        }

        .btn-blue {
            background: var(--primary);
            color: #fff;
        }

        .btn-blue:hover {
            background: var(--primary-dark);
            box-shadow: 0 4px 14px rgba(55, 98, 234, .35);
            transform: translateY(-1px);
        }

        .btn-grey {
            background: #e9ebee;
            color: var(--secondary);
        }

        .btn-grey:hover {
            background: #d9dce2;
        }

        .btn-green {
            background: var(--success);
            color: #fff;
        }

        .btn-green:hover {
            background: #22a070;
            box-shadow: 0 4px 14px rgba(42, 181, 125, .35);
            transform: translateY(-1px);
        }

        .btn-primary {
            background: var(--primary);
            color: #fff;
            border: none;
            padding: 10px 22px;
            border-radius: var(--radius-sm);
            font-weight: 700;
            font-size: .82rem;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            box-shadow: 0 2px 8px rgba(19, 53, 123, .2);
            transition: var(--transition);
            text-decoration: none;
            letter-spacing: .2px;
            font-family: inherit;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            color: #fff;
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(19, 53, 123, .28);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        .btn-success {
            background: var(--success);
            box-shadow: 0 2px 8px rgba(42, 181, 125, .2);
        }

        .btn-success:hover {
            background: #229a68;
        }

        .btn-warning {
            background: #e6a800;
            box-shadow: 0 2px 8px rgba(230, 168, 0, .25);
        }

        .btn-warning:hover {
            background: #cc9600;
        }

        /* ═══════════════════════════════════════
           STEP NAV BAR
        ═══════════════════════════════════════ */
        .step-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1.25rem;
            border-top: 1px solid var(--border);
            margin-top: 1.25rem;
        }

        /* ═══════════════════════════════════════
           MENSAJE RESULTADO
        ═══════════════════════════════════════ */
        .mensaje-resultado {
            font-size: 0.78rem;
            margin-top: 0.3rem;
            font-weight: 600;
        }

        /* ═══════════════════════════════════════
           SECURITY BADGE
        ═══════════════════════════════════════ */
        .security {
            display: flex;
            align-items: flex-start;
            gap: 0.6rem;
            background: var(--warning-soft);
            border: 1px solid #ffe599;
            border-left: 4px solid var(--warning);
            border-radius: var(--radius-sm);
            padding: 0.75rem 1rem;
            font-size: 0.79rem;
            font-weight: 600;
            color: #7a6000;
            margin-top: 1rem;
        }

        .security i {
            color: var(--warning);
            flex-shrink: 0;
            margin-top: 1px;
        }

        /* ═══════════════════════════════════════
           STEP CONTENT VISIBILITY
        ═══════════════════════════════════════ */
        .step-content {
            display: none;
        }

        .step-content.active {
            display: block;
        }

        /* ═══════════════════════════════════════
           CONTENT SPACING
        ═══════════════════════════════════════ */
        .content {
            padding: 0 0 2rem;
        }


        /* Footer */
        .footer-minia {
            background: #ffffff;
            border-top: 1px solid #dee2e6;
            padding: 12px 20px;
            font-size: .9rem;
            color: #6c757d;
        }

        .footer-minia strong {
            font-weight: 500;
        }

        .footer-minia a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }

        .footer-minia a:hover {
            color: var(--primary-dark);
        }

        .footer-minia i {
            color: var(--primary);
        }