body{
    margin:800;
    font-family:Arial, sans-serif;
    background:linear-gradient(135deg,#0b57b7,#1d4ed8);
    min-height:100vh;
}

/* CONTENEDOR */

.page{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:40px 20px;
}

/* TARJETA */

.form-card{
    width:100%;
    max-width:1000px;
    background:#f5f5f5;
    padding:30px;
    border-radius:22px;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

/* TITULOS */

h2{
    text-align:center;
    margin-top:0;
    margin-bottom:30px;
    color:#1f2937;
    font-size:32px;
}

h3{
    margin-top:25px;
    margin-bottom:15px;
    color:#1f2937;
}

/* GRID */

.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin-bottom:15px;
}

.grid-2{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-top:15px;
}

/* INPUTS */

input,
textarea{
    width:100%;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:12px 14px;
    font-size:14px;
    background:white;
    box-sizing:border-box;
    transition:.3s;
}

/* ALTURA INPUT */

input{
    height:48px;
}

/* TEXTAREA */

textarea{
    resize:none;
    min-height:100px;
    padding-top:14px;
}

/* EFECTO */

input:focus,
textarea:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 10px rgba(37,99,235,.2);
}

/* LABEL */

label{
    display:block;
    margin-bottom:8px;
    font-weight:bold;
    color:#374151;
}

.campo-full{
    margin-top:10px;
}

/* MAPA */

#map{
    width:100%;
    height:320px;
    border-radius:18px;
    overflow:hidden;
    margin-top:15px;
    border:3px solid #ddd;
}

/* CAMARA */

.camera-card{

    /*margin-top:25px;
    border-radius:20px;
    overflow:hidden;
    background:black;
    box-shadow:0 8px 20px rgba(0,0,0,.25);*/

     margin-top:25px;
    border-radius:20px;
    overflow:hidden;
    background:black;
    box-shadow:0 8px 20px rgba(0,0,0,.25);

    max-width:350px;

    margin-left:auto;
    margin-right:auto;
}

/* VIDEO */



video{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    display:block;
}



/* CONTROLES */

.controles{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:35px;
    padding:20px;
    background:#111827;
}

/* BOTON FOTO */

.btn-captura{
    width:95px;
    height:95px;
    border-radius:50%;
    border:6px solid white;
    background:#2563eb;
    color:white;
    font-size:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 5px 20px rgba(0,0,0,.4);
}

.btn-captura:hover{
    transform:scale(1.08);
    background:#1d4ed8;
}

/* BOTON CAMBIO */

.btn-cambiar{
    width:60px;
    height:60px;
    border:none;
    border-radius:50%;
    background:#374151;
    color:white;
    font-size:24px;
    cursor:pointer;
    transition:.3s;
}

.btn-cambiar:hover{
    background:#4b5563;
    transform:rotate(180deg);
}

/* BOTON GUARDAR */

.btn-save{
    width:100%;
    height:55px;
    margin-top:25px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:white;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

.btn-save:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

/* RESPONSIVE */

@media(max-width:768px){

    .form-card{
        padding:20px;
    }

    .grid-3{
        grid-template-columns:1fr;
    }

    .grid-2{
        grid-template-columns:1fr;
    }

    h2{
        font-size:24px;
    }

    video{
        height:280px;
    }

    .btn-captura{
        width:80px;
        height:80px;
        font-size:32px;
    }

    .btn-cambiar{
        width:50px;
        height:50px;
        font-size:20px;
    }

}

.btn-retomar{
    width:100%;
    height:45px;
    border:none;
    background:#ef4444;
    color:white;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    display:none;
}

/*lists depliegue*/

/* =========================
BUSCADOR CLIENTES
========================= */

.buscador-box{
    position:relative;
    width:100%;
}

#lista-clientes{

    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:white;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    z-index:999;
    max-height:250px;
    overflow-y:auto;
    margin-top:5px;

}

.item-cliente{

    padding:14px;
    cursor:pointer;
    border-bottom:1px solid #eee;
    transition:.2s;
    font-size:14px;

}

.item-cliente:hover{

    background:#2563eb;
    color:white;

}











.autocomplete-box{
    position: relative;
    width: 100%;
}

.sugerencias{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 999;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sugerencia-item{
    padding: 12px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid #f1f1f1;
}

.sugerencia-item:hover{
    background: #f5f7ff;
}

.sugerencia-nombre{
    font-weight: bold;
    color: #222;
}

.sugerencia-extra{
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}