﻿body {
    font-family: Arial, sans-serif;
    padding: 12px;
    background: #f4f4f4;
}

.contenedor {
    max-width: 480px;
    margin: 0 auto;
}

.step {
    background: #ffffff;
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.hidden {
    display: none;
}

h2 {
    font-size: 1.2rem;
    margin-top: 0;
}

label {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
}

input[type="text"],
select,
input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border-radius: 5px;
    border: 1px solid #bbb;
    box-sizing: border-box;
}

input[type="file"] {
    width: 100%;
    margin: 6px 0 10px 0;
}

.txt-upper {
    text-transform: uppercase;
}

.btn {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: #0078d4;
    border: none;
    color: #fff;
    font-size: 1rem;
    border-radius: 6px;
}

.btn-sec {
    background: #555;
}

#cronometro {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.subtitulo {
    font-weight: bold;
    margin-top: 10px;
}

.subtitulo-vb {
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 10px;
}

.firma-container {
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    padding: 8px;
}

canvas {
    border: 1px solid #888;
    width: 100%;
    height: 150px;
    touch-action: none;
}

/* === OVERLAY GUARDAR MANTENIMIENTO === */
.overlay-guardado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    display: none; /* se muestra sólo cuando guardas */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.overlay-panel {
    background: #ffffff;
    padding: 20px 18px;
    border-radius: 14px;
    box-shadow: 0 0 14px rgba(0,0,0,0.35);
    text-align: center;
    max-width: 260px;
    width: 80%;
}

.overlay-spinner {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    border: 6px solid #f3f3f3;
    border-top-color: #0078d4; /* azul ADMINGAS */
    animation: overlaySpin 0.9s linear infinite;
}

.overlay-titulo {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #004a99;
}

.overlay-texto {
    font-size: 0.85rem;
    color: #333;
}

@keyframes overlaySpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
