/*=========================================
    PROYECTO AJAX - JQUERY     Archivo: estilos.css
==========================================*/
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}
body{

    background:#f4f6f9;

}
.contenedor{
    width:90%;
    max-width:1100px;
    margin:30px auto;

}

h1{
    text-align:center;
    color:#003366;
    margin-bottom:30px;
}

.caja{

    background:white;
    margin-bottom:25px;
    padding:20px;
    border-radius:10px;
    box-shadow:0px 0px 8px rgba(0,0,0,.20);
}

h2{
    color:#0066cc;
    margin-bottom:20px;
}

label{
    display:block;
    margin-top:15px;
    font-weight:bold;
    color:#333;
}

input{
    width:100%;
    padding:10px;
    margin-top:5px;
    border:1px solid #ccc;
    border-radius:5px;
    font-size:15px;
}

input:focus{
    outline:none;
    border:2px solid #0066cc;
    background:#eef7ff;
}

/*BOTONES*/
button{
    margin-top:20px;
    padding:12px 20px;
    border:none;
    border-radius:6px;
    cursor:pointer;
    color:white;
    font-size:15px;
    margin-right:10px;
    transition:.3s;
}

#btnValidar{
    background:#28a745;
}

#btnGuardar{
    background:#007bff;
}

#btnConsultar{
    background:#17a2b8;
}

#btnLoad{
    background:#6f42c1;
}

button:hover{
    opacity:.85;
    transform:scale(1.03);
}

/*RESPUESTA AJAX*/
#respuesta{
    background:#ecf8ff;
    border:1px solid #99d6ff;
    padding:15px;
    min-height:40px;
    border-radius:6px;
}

#datosServidor{
    margin-top:15px;
    background:#fff7dd;
    padding:15px;
    border-radius:6px;
    border:1px solid #f3d25e;
}

#contenidoLoad{
    margin-top:15px;
    background:#eafbea;
    padding:15px;
    border-radius:6px;
    border:1px solid #7cd67c;
}

/*BUSCADOR*/
#buscar{
    margin-bottom:20px;
}

/*TABLA*/
table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:#003366;
    color:white;
    padding:12px;
}

table td{
    padding:10px;
    border:1px solid #ddd;
}

table tr:nth-child(even){
    background:#f8f8f8;
}

table tr:hover{
    background:#d9ecff;
}

/*MENSAJES*/
.error{
    color:red;
    font-size:13px;
    margin-top:5px;
}

.correcto{
    border:2px solid green;
}

.incorrecto{
    border:2px solid red;
}

/*RESPONSIVE*/
@media(max-width:700px){
button{
    width:100%;
    margin-bottom:10px;
}
}