html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 100%;
    display: flex;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

/*Permite al usuario tener un scroll cuando la pantalla es muy grande*/
.main-content {
    max-height: 100vh;
    overflow-y: auto;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.responsive-paper {
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    color: white;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

    .loading-screen.hidden {
        opacity: 0;
        pointer-events: none;
    }

.step-confirm-card {
    margin: 0 auto;
    padding: 24px 16px;
    box-sizing: border-box;
}

.step-images-row {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.step-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-image {
    width: 140px;
    height: auto;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


#enrolamientoButtons {
    display: flex;
    gap: 16px;
    flex-direction: column;
}

@media (min-width: 600px) {
    #enrolamientoButtons {
        flex-direction: row;
    }
}

.stepper-fixed-actions {
    display: flex;
    flex-direction: column;
}

    .stepper-fixed-actions .mud-stepper-content {
        flex: 1;
        overflow-y: auto;
    }

    .stepper-fixed-actions .mud-stepper-actions {
        position: sticky;
        bottom: 0;
        background-color: white;
        z-index: 100;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 16px;
    }

/* Camara */

.camera-streamer {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.document-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65vw;
    height: 60vh;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.text-document-guide {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
}

@media (min-width: 640px) {
    .face-guide {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(80vw, 60vh);
        aspect-ratio: 1 / 1;
        border: 2px dashed rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
        transition: border-color 0.3s ease, border-style 0.3s ease, box-shadow 0.3s ease;
    }
}

.face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 70vh);
    aspect-ratio: 1 / 1;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease, border-style 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
}

/* Face guide — detection states */
.face-guide.state-none {
    border: 2px dashed rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.face-guide.state-invalid {
    border: 3px solid rgba(244, 67, 54, 0.9);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 20px rgba(244, 67, 54, 0.3);
}

.face-guide.state-adjusting {
    border: 3px solid rgba(255, 193, 7, 0.9);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 193, 7, 0.25);
}

.face-guide.state-valid {
    border: 3px solid rgba(76, 175, 80, 0.95);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 24px rgba(76, 175, 80, 0.35);
}

.text-face-guide {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.camera-streamer-button {
    background-color: black;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1000;
}

.confirm-header {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.confirm-title {
    font-weight: 700;
}

.meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.id-pill {
    font-size: .75rem;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    background: #EEF2FF;
    color: #3B82F6;
    font-weight: 600;
    letter-spacing: .2px;
    white-space: nowrap;
}

.meta-value {
    font-weight: 600;
}

.confirm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 8px;
}

.thumb-card {
    display: grid;
    justify-items: center;
    padding: 10px 6px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.thumb-title {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #374151;
}

.thumb-img {
    width: min(76vw, 320px);
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,.10);
}

.selfie .selfie-img {
    width: min(60vw, 220px);
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
}

@media (min-width: 640px) {
    .meta-row {
        grid-template-columns: repeat(2, max-content);
        gap: 16px;
    }

    .thumb-img {
        width: 300px;
    }

    .selfie .selfie-img {
        width: 220px;
    }
}

@media (min-width: 900px) {
    .confirm-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
    }

        .confirm-grid > .thumb-card:nth-child(1) {
            grid-column: 1 / -1;
        }

        .confirm-grid > .thumb-card.selfie {
            grid-column: 1 / -1;
        }

    .thumb-img {
        width: 340px;
    }
}

.thumb-card {
    display: grid;
    gap: 8px;
    padding: 10px 8px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
}

.thumb-title {
    font-size: .95rem;
    font-weight: 700;
    color: #374151;
    margin: 0;
}

.thumb-box {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.thumb-img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.thumb-card.selfie .thumb-box {
    aspect-ratio: 1 / 1;
    max-width: 260px;
}

.confirm-grid,
.vehicle-photos {
    gap: 12px;
}

@media (min-width: 640px) {
    .thumb-box {
        max-width: 420px;
    }

    .thumb-card.selfie .thumb-box {
        max-width: 300px;
    }
}

@media (min-width: 900px) {
    .thumb-box {
        max-width: 460px;
    }
}

.confirm-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .confirm-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.confirm-grid .thumb-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.confirm-grid .thumb-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: #374151;
    text-align: center;
}

.confirm-grid .thumb-box {
    width: 100%;
    margin-inline: auto;
    max-height: clamp(220px, 36vh, 360px);
    aspect-ratio: 3 / 2;
    background: #f8fafc;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.confirm-grid .thumb-card.selfie .thumb-box {
    aspect-ratio: 1 / 1;
    max-height: clamp(180px, 32vh, 300px);
}

.confirm-grid .thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (min-width: 1024px) {
    .confirm-grid {
        gap: 18px;
    }
}

