@import url('https://fonts.googleapis.com/css2?family=Libre+Barcode+39&display=swap');
/* pagina error */

    .error-container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 80vh;
        padding: 2rem;
    }

    .error-card {
        background: #063552;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        padding: 3rem 2rem;
        text-align: center;
        max-width: 500px;
        width: 100%;
        animation: fadeInUp 0.5s ease-out;
    }

    .error-container .error-logo {
        margin-bottom: 2rem;
    }

    .error-container .error-logo img {
        max-width: 180px;
        height: auto;
    }

    .error-container .error-icon {
        margin-bottom: 1.5rem;
    }

    .error-container .error-icon img {
        width: 50px;
        height: 50px;
        animation: pulse 2s infinite;
    }

    .error-container .error-message-box {
        background: #FFF3E0;
        border-left: 4px solid #FF9800;
        padding: 1.5rem;
        border-radius: 12px;
        margin: 1.5rem 0;
    }

    .error-container .error-title {
        color: #FF6B00;
        font-size: 1.5rem;
        margin: 0 0 0.5rem 0;
        font-weight: bold;
    }

    .error-container .error-description {
        color: #666;
        font-size: 1rem;
        margin: 0;
        line-height: 1.5;
    }

    .error-container .error-details {
        margin-top: 1rem;
        padding: 0.75rem;
        background: #f5f5f5;
        border-radius: 8px;
        font-size: 0.85rem;
        color: #666;
    }

    .error-container .error-details code {
        background: #e0e0e0;
        padding: 0.2rem 0.4rem;
        border-radius: 4px;
        font-size: 0.8rem;
    }

    .error-container .error-actions {
        margin-top: 2rem;
    }

    .error-container .btn-contact {
        background: none;
        border: none;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .error-container .btn-contact:hover {
        transform: translateY(-2px);
    }

    .error-container .btn-contact img {
        max-width: 180px;
        height: auto;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
    }

    /* Responsive */
    @media (max-width: 768px) {
        .error-card {
            padding: 2rem 1.5rem;
        }

        .error-title {
            font-size: 1.2rem;
        }

        .error-description {
            font-size: 0.9rem;
        }

        .error-logo img {
            max-width: 140px;
        }

        .error-icon img {
            width: 60px;
            height: 60px;
        }
    } 
/* fin apagina error*/
/*pagina identificar*/ 
    .identificar-content {
        text-align: center;
        padding: 1rem;
    }

    .republic-logo {
        margin: 1rem 0;
    }

    .republic-logo img {
        max-width: 200px;
        height: auto;
    }

    .plate-display {
        position: relative;
        display: inline-block;
        margin: 1rem 0;
    }

    .plate-image {
        width: 250px;
        height: auto;
    }

    .plate-code {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.5rem;
        font-weight: bold;
        font-family: monospace;
        letter-spacing: 2px;
        color: #333;
    }

    .location {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 2rem;
        text-transform: uppercase;
    }

    .identify-title {
        font-size: 1.2rem;
        font-weight: bold;
        color: #ffd700;
        margin-bottom: 2rem;
        line-height: 1.4;
    }

    .options-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto 2rem;
    }

    .option-btn {
    background: #ffd700;
    color: #000000;
    padding: 0 !important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px !important;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    } 

    .option-btn:hover {
        background: #d4b70f;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .option-btn:active {
        transform: translateY(0);
    }

    .option-icon {
        font-size: 1.2rem;
        min-width: 30px;
    }

    .scan-section {
        margin-top: 2rem;
    }

    .scan-text {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 0.5rem;
    }

    .input-box {
        width: 90%;
        max-width: 300px;
        padding: 0.75rem;
        border: 2px solid #ddd;
        border-radius: 8px;
        font-size: 1rem;
        text-align: center;
        text-transform: uppercase;
        transition: border-color 0.3s ease;
    }

    .input-box:focus {
        outline: none;
        border-color: #4A90E2;
    }

    .ONvalidation {
        display: block;
        margin: 2rem auto;
        max-width: 150px;
        height: auto;
    }

    /* Estilos para el mensaje */
    .msj-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .msj {
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        padding: 1.5rem;
        min-width: 280px;
        max-width: 90%;
        display: flex;
        align-items: center;
        gap: 1rem;
        animation: slideIn 0.3s ease-out;
    }

    .msj .icon {
        width: 32px;
        height: 32px;
        background: #dc3545;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.2rem;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    .msj .icon:hover {
        background: #c82333;
        transform: scale(1.1);
    }

    .msj #textmsj {
        flex: 1;
        color: #333;
        font-size: 0.95rem;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Responsive */
    @media (max-width: 768px) {
        .plate-image {
            width: 200px;
        }

        .plate-code {
            font-size: 1.2rem;
        }
  

        .republic-logo img {
            max-width: 150px;
        }
    } 
/* fin pagina identificar*/
.barcode {
    font-family: 'Libre Barcode 39', cursive;
    font-size: 4.2em;
    letter-spacing: 0.1em;
    color: #444;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 0.2em 0.5em;
    display: inline-block;
}
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/*home*/
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}
.relative{
    position: relative;
}
.btn-back{
    position: absolute;
    left: 10px;
    top: 12px;
    width: 50px;
    background: transparent;
    border: 0;
    border-radius: 100%;
    cursor: pointer;
    z-index: 9;
}  .btn-back img{
        border: 2px solid #ffd700;
    border-radius: 100%;
}
img{
    width: 100%;
}
/* FONDO */
.app {
    min-height: 100vh;
    background: linear-gradient(to bottom, #0B5C8E 0%, #168FC2 50%, #1EA4D9 100%);
    position: relative;
    overflow: hidden;
}

/* ONDAS */
.app::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -20%;
    width: 140%;
    height: 200px;
    background: #1EA4D9;
    border-radius: 50%;
    z-index: 0;
}

.app::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -20%;
    width: 140%;
    height: 200px;
    background: #0B5C8E;
    border-radius: 50%;
    z-index: 0;
}

/* CONTENIDO */
.container {
    position: relative;
    z-index: 2;
    padding: 20px 15px 120px;
    text-align: center;
    color: white;
}

/* BOTÓN SUPERIOR */
.btn-top {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 25px;
    background: linear-gradient(to right, #6FD3FF, #2F8ECB);
    color: #FFD700;
    font-weight: bold;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.6),
                0 3px 6px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

/* ICONO */
.scan-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin: 10px auto 5px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.scan-text {
    color: #AEE3FF;
    margin-bottom: 15px;
}

/* ==========================================================================
   ESTILOS EXCLUSIVOS PARA EL ESCÁNER DE CÓDIGOS DE BARRAS
   ========================================================================== */

/* Contenedor principal del escáner */
.scanner {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Elemento donde se muestra la cámara */
#camera-scanner {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #1a1a1a;
    position: relative;
}

/* Esquinas decorativas */
.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid #fdc210;
    z-index: 10;
}

.tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* Línea de escaneo animada */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fdc210, #fdc210, transparent);
    animation: scan 2s linear infinite;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 10px #fdc210;
}

@keyframes scan {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

/* Botón detener escaneo */
.btn-stop-scan {
    position: relative;
    bottom: 30px;
    left: 0; 
    right: 0;
    margin: auto;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1000;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    transition: all 0.25s ease;
}

.btn-stop-scan:hover { 
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

 

.scan-icon:hover {
    transform: scale(1.05);
}

.IconEscanear {
    width: 70px;
    height: 70px;
    cursor: pointer;
}
 

/* Input del escáner */
.input-box {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    background: #ffffff;
}

.input-box:focus {
    outline: none;
    border-color: #fdc210;
    box-shadow: 0 0 0 3px rgba(253, 194, 16, 0.2);
}
 

.msj .icon {
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

#textmsj {
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .IconEscanear {
        width: 55px;
        height: 55px;
    }
    
    .corner {
        width: 25px;
        height: 25px;
        border-width: 2px;
    }
    
    .scan-line {
        height: 2px;
    }
    
    .input-box {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .btn-stop-scan {
        bottom: 20px;
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .msj {
        bottom: 80px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .scanner {
        max-width: 100%;
    }
    
    .corner {
        width: 20px;
        height: 20px;
    }
}

/* INPUT */
.input-box {
    display: block;
    width: 80%;
    max-width: 280px;
    margin: 12px auto;
    background: #fff;
    padding: 14px;
    border-radius: 6px;
    color: #999;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 16px;
    box-sizing: border-box;
}

/* PLACA */
.plate {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 10px auto;
    background: transparent;
    border: 0;
    cursor: pointer;
} 

/* BOTÓN INFERIOR */
.msj {
    position: fixed;
    bottom: 80px;
    left: 0;
    margin: auto;
    width: max-content;
    right: 0;
    background: linear-gradient(to right, #FFD94D, #FF9900);
    padding: 10px 18px;
    border-radius: 25px;
    color: black;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9;
}

.msj .icon {
    width: 24px;
    height: 24px;
    background: black;
    color: yellow;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/* BOTÓN ? */
.help {
    position: absolute;
    bottom: 15px;
    left: 0;
    margin: auto;
    right: 0;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 9;
}
.ONvalidation{
        display: block;
    margin: 10px auto;
        width: 140px;
cursor: pointer;
}
/* Contenedor del escáner */
.scanner {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

/* Elemento donde se renderiza la cámara */
#camera-scanner {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #1a1a1a;
    position: relative;
}

/* Esquinas decorativas */
.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #00ff00;
}

.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Línea de escaneo animada */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: scan 2s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.IconEscanear {
    width: 60px;
    height: 60px;
}
/*fin home*/
/*ticket*/
/* Estilos modernos para el ticket */
    .contenido {
        margin: 20px auto;
        max-width: 350px;
        animation: fadeInUp 0.5s ease-out;
    }

    .ticket-card {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
                    0 1px 3px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        backdrop-filter: blur(10px);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .ticket-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    }

    .ticket-header {
    background: linear-gradient(135deg, #1EA4D9 0%, #0B5C8E 100%);
    padding: 20px;
    text-align: center;
    border: 2px solid white;
    border-radius: 20px 20px 0 0;
    border-bottom: 3px solid #FFD700;
    }

    .ticket-header h2 {
        margin: 0;
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        letter-spacing: 1px;
    }

    .ticket-body {
        padding: 20px;
        background: white;
    }

    .ticket-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .ticket-row:last-of-type {
        border-bottom: none;
    }

    .label {
        font-weight: 600;
        color: #666;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .value {
        font-weight: 500;
        color: #333;
        font-size: 0.95rem;
    }

    .ticket-divider {
        height: 2px;
        background: linear-gradient(90deg, transparent, #1EA4D9, #FFD700, #1EA4D9, transparent);
        margin: 15px 0;
    }

    .ticket-placa-section {
    text-align: center;
    margin: 20px 0;
}

.placa-label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.placa-container {
    position: relative;
    display: inline-block;
    width: 300px; /* Ajusta según el tamaño de tu imagen */
    height: auto;
}

.fondoplaca {
    width: 100%;
    height: auto;
    display: block;
    margin: auto
}

.placa-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000; /* Color del texto - ajusta según el fondo */
    font-size: 24px;
    font-weight: bold;
    font-family: 'Courier New', monospace; /* Estilo típico de placas */
    letter-spacing: 2px;
    text-align: center;
    width: 90%;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Estilo para error en placa en identificar.razor */
.placa-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000; /* Color del texto - ajusta según el fondo */
    font-size: 50px;
    font-weight: bold;
    font-family: 'Courier New', monospace; /* Estilo típico de placas */
    letter-spacing: 2px;
    text-align: center;
    width: 90%;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}


    .ticket-placa-section img{
        width: 150px;
    }
    .placa-label {
        font-size: 0.8rem;
        color: #666;
        letter-spacing: 2px;
        margin-bottom: 8px;
        font-weight: 600;
    }

    .placa-number {
        font-size: 1.8rem;
        font-weight: bold;
        color: #0B5C8E;
        letter-spacing: 3px;
        font-family: 'Courier New', monospace;
        text-transform: uppercase;
        background: white;
        display: inline-block;
        padding: 5px 20px;
        border-radius: 10px;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .ticket-code {
        text-align: center;
        font-family: 'Courier New', monospace;
        font-size: 0.85rem;
        color: #888;
        letter-spacing: 1px;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
        margin-top: 10px;
        word-break: break-all;
    }

    /* Animación */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Responsive */
    @media (max-width: 480px) {
        .contenido {
            margin: 15px auto;
        }
        
        .ticket-header h2 {
            font-size: 1.2rem;
        }
        
        .placa-number {
            font-size: 1.4rem;
            letter-spacing: 2px;
        }
        
        .ticket-body {
            padding: 15px;
        }
    }
/*fin ticket*/
/*pagos*/
/* Slider 1 - Estilos Mejorados */
.slider-container {
    animation: slideIn 0.4s ease-out;
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding-top: 50px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-header {
    margin-bottom: 28px;
    text-align: center;
}

.step-indicator {
    display: inline-block;
    background: linear-gradient(135deg, #1EA4D9, #0B5C8E);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.slider-header h3 {
    margin: 0 0 8px 0;
    color: #0B5C8E;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-description {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin: 0;
}

/* Grid de 2 columnas - IMPORTANTE para que estén en la misma fila */
.form-grid {
    display: grid; 
    gap: 20px; 
}

.form-group {
    margin-bottom: 5px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.label-icon {
    font-size: 16px;
}

.required {
    color: #e74c3c;
    margin-left: 4px;
}

/* Campos de entrada - MISMA FILA */
.cedula-group, .phone-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.cedula-type, .phone-code {
    width: 80px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: #f8f9fa;
    transition: all 0.3s;
}

.cedula-group .form-control,
.phone-group .form-control {
    flex: 1;
    min-width: 0; /* Evita overflow */
}

.form-control {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
    width: 100%;
}

.bank-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.form-control:focus, .cedula-type:focus, .phone-code:focus, .bank-select:focus {
    outline: none;
    border-color: #1EA4D9;
    box-shadow: 0 0 0 3px rgba(30, 164, 217, 0.1);
}

/* Mensajes de error */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-icon {
    font-size: 12px;
}

/* Botón */
button{
    cursor: pointer;
}
.button-container {
    margin-top: 30px;
    text-align: center;
}

.btn-next { 
    color: transparent;
    background: transparent;
    border: none; 
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px; 
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px); 
}

.btn-next:disabled {
    background: transparent;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: .5;
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s;
}

.btn-next:hover:not(:disabled) .btn-arrow {
    transform: translateX(4px);
}
/* Estilos para campos inválidos */
.form-control.invalid,
.bank-select.invalid {
    border-color: #e74c3c !important;
    background-color: #fff5f5 !important;
}

/* Error general */
.general-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake 0.3s ease;
}
.pin-instruction{
    color: #000;
}
.general-error .error-icon {
    font-size: 16px;
}
.btn-resend{
      background: #ffd700;
    border: 0;
    padding: 10px 20px;
    color: black;
    border-radius: 100px;
    margin-bottom: 20px;  
}
.pin-timer{
    color: #0b5c8e;
    font-size: 13px;
    margin: 20px 0;
    font-weight: bold;
}
.pin-inputs{
    display: flex;
    justify-content: center;
    align-items: center;
}
.pin-digit{
width: 33px;
    height: 33px;
    text-align: center;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
    margin: 3px;
    padding: 2px;
}
.button-group{
    display: flex;
    justify-content: center;
    align-items: center;
    
    margin-top: 25px;
}
.btn-next img{
 width: 100%;
     max-width: 170px;
}
.error-animation h2{
    color: red;
}
.success-animation h2{
    color: green;
}
.btn-retry{
        color: transparent;
    background: transparent;
    border: none; 
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px; 
}
/* Contenedor principal */
.payment-success-card {
    max-width: 400px;  
    border-radius: 32px; 
    text-align: center;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    transition: all 0.2s ease;
}

/* Encabezado */
.success-header {
    margin-bottom: 2rem;
}

.icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    background: #e6f7ec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper img {
    width: 40px;
    height: auto;
}

.success-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
    color: #1a2e3b;
    letter-spacing: -0.3px;
}

.success-header p {
    font-size: 0.9rem;
    color: #6b7a7f;
    margin: 0;
}

/* Detalles del pago */
.payment-details {
    background: #f9fafb;
    border-radius: 24px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid #edf0f2;
    font-size: 0.95rem;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    color: #5f6c72;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.detail-item .value {
    color: #1e2f3a;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace, 'SF Mono';
    background: #ffffffcc;
    padding: 0.2rem 0.6rem;
    border-radius: 40px;
}

/* Monto destacado */
.detail-item.highlight .label,
.detail-item.highlight .value {
    font-weight: 700;
    color: #0b5e42;
}

.detail-item.highlight .value {
    background: #e0f2e9;
    font-size: 1rem;
}

/* Botón minimalista */
.action {
    margin-top: 0.5rem;
}

.btn-subtle {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s;
    opacity: 0.85;
}

.btn-subtle:hover {
    transform: scale(1.02);
    opacity: 1;
}

.btn-subtle img {
    max-width: 180px;
    height: auto;
}
/* Tarjeta de error */
.payment-error-card {
    max-width: 400px;  
    border-radius: 32px; 
    text-align: center;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Icono de error */
.icon-wrapper.error {
    background: #fee7e7;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper.error img {
    width: 36px;
    height: auto;
}

/* Título */
.payment-error-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0.5rem 0 0.75rem;
    color: #b91c1c;
    letter-spacing: -0.3px;
}

/* Mensaje de error */
.error-message {
    background: #fef2f2;
    color: #991b1b;
    padding: 0.9rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 1rem 0 0;
    line-height: 1.4;
    word-break: break-word;
    border: 1px solid #fecaca;
}

/* Botón de reintento */
.error-actions {
    margin-top: 1.75rem;
}

.btn-retry {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s;
    opacity: 0.85;
}

.btn-retry:hover {
    transform: scale(1.02);
    opacity: 1;
}

.btn-retry img {
    max-width: 160px;
    height: auto;
}
/*registro*/
/* Catálogo de vehículos - 2 columnas fijas en todos los dispositivos */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 4px;
}

/* Scroll personalizado */
.catalog-grid::-webkit-scrollbar {
    width: 6px;
}

.catalog-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.catalog-grid::-webkit-scrollbar-thumb {
    background: #1EA4D9;
    border-radius: 10px;
}

.vehicle-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.vehicle-card.selected {
    border-color: #1EA4D9;
    background: linear-gradient(135deg, #e8f4f8, #ffffff);
    box-shadow: 0 4px 12px rgba(30, 164, 217, 0.2);
}
.carros{
    width: 150px;
    margin-bottom: 20px;
}
.vehicle-image {
    width: 100%;
    height: 170px;
    border-radius: 12px;
    overflow: hidden;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-info {
    flex: 1;
    text-align: center;
}

.vehicle-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.vehicle-info p {
    margin: 0;
    font-size: 11px;
    color: #7f8c8d;
}

.vehicle-check {
    position: absolute;
    top: 8px;
    right: 8px;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #1EA4D9;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

/* Vista previa del vehículo seleccionado */
.selected-vehicle-preview {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
}

.preview-image {
    width: 100%;
    height: 160px;
    margin: 0 auto 12px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-title h4 {
    margin: 0;
    color: #0B5C8E;
    font-size: 1.2rem;
}

/* Helper text */
.helper-text {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.5rem 0;
}
/* Estilos para los selects */
.form-control select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.form-control select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-info {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-cancel {
    flex: 1;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-send {
    flex: 1;
    padding: 10px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-send:hover:not(:disabled) {
    background: #128C7E;
}

.btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-border {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}
.volver{
    background: rgb(240, 55, 55);
    color: white;
}
.option-btn i{
    position: absolute;
        left: 12px;
}
.volver:hover{
    background: rgb(194, 21, 21);
    color: white;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/*menu*/
.menu-btn {
        position: fixed;
        top: 38px;
        left: 20px;
        width: 30px;
        height: 24px;
        cursor: pointer;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: transparent;
        border: none;
        padding: 0;
    }

    .menu-btn__burger {
        width: 100%;
        height: 3px;
        background: #ffffff;
        border-radius: 3px;
        transition: all 0.3s ease;
        position: relative;
    }

    .menu-btn__burger::before,
    .menu-btn__burger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background: #ffffff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .menu-btn__burger::before {
        transform: translateY(-8px);
    }

    .menu-btn__burger::after {
        transform: translateY(8px);
    }

    /* Animación del botón cuando el menú está abierto */
    .menu-btn.open .menu-btn__burger {
        background: transparent;
    }

    .menu-btn.open .menu-btn__burger::before {
        transform: rotate(45deg);
    }

    .menu-btn.open .menu-btn__burger::after {
        transform: rotate(-45deg);
    }

    /* Menú lateral */
    .side-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: 1002;
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .side-menu.open {
        left: 0;
    }

    /* Header del menú */
    .menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #eee;
        background: #083f61;
    }

    .menu-logo img {
        max-width: 120px;
        height: auto;
    }

    .menu-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #fff;
        transition: color 0.3s ease;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .menu-close:hover {
        color: #333;
        background: rgba(0,0,0,0.05);
    }

    /* Items del menú */
    .menu-items {
        flex: 1;
        padding: 20px 0;
    background: linear-gradient(to bottom, #0B5C8E 0%, #168FC2 50%, #1EA4D9 100%);
    }

    .menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        color: #fff;
        font-weight: bold;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
        border-left: 3px solid transparent;
        position: relative;
    }.menu-item::after{
        content: '';
        position: absolute;
        bottom: 0;
        width: 85%;
        height: 1px;
        background: white;
        left: 0;
        right: 0;
        margin: auto;
    }

    .menu-item:hover {
        background: #f0f0f0;
        border-left-color: #4A90E2;
        padding-left: 24px;
        color: black;
    }

    .menu-icon {
        font-size: 1.2rem;
        min-width: 24px;
    }

    /* Footer del menú */
    .menu-footer {
        padding: 20px;
        border-top: 1px solid #eee;
        text-align: center;
            background: #083f61;
            
    }
    .menu-footer a{
        cursor: pointer;
    }
    .menu-version {
        font-size: 0.75rem;
        color: #999;
    }

    /* Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1001;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
/*fin menu*/
 
/* Responsive - mantiene 2 columnas en móvil también */
@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }

    .vehicle-card {
        padding: 10px;
    }
 

    .vehicle-info h4 {
        font-size: 12px;
    }

    .vehicle-info p {
        font-size: 10px;
    }

    .preview-image {
        width: 100px;
        height: 100px;
    }
}

/* Estilos para el campo de placa en mayúsculas */
.form-control[style*="text-transform: uppercase"] {
    text-transform: uppercase;
}
/*fin registro*/
/* Responsive */
@media (max-width: 480px) { 

    .error-message {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
}
/* Responsive */
@media (max-width: 480px) { 

    .detail-item {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .detail-item .value {
        word-break: break-word;
        text-align: right;
    }
}
.error-icon img{
        width: 56px;
}
.checkmark-circle img{
        width: 56px;
}
/* Loader Rojo Global */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(220, 38, 38, 0.3);
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

.loader-text {
    color: #dc2626;
    font-size: 16px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Responsive para móviles */
@media (max-width: 640px) { 
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
      
    
    .slider-header h3 {
        font-size: 1.3rem;
    }
    
    .btn-next {
        width: 100%;
        justify-content: center;
    }
}
/*fin pagos*/