@font-face {
    font-family: 'Open Sans';
    src: url('fonts/Open_Sans/static/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/Open_Sans/static/OpenSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Open Sans', "Source Sans Pro", sans-serif;
    font-weight: 700;
    background: #FFFDF7;
box-shadow: 0 10px 30px rgba(223, 182, 77, 0.3);

    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 25px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
    max-width: 420px;
    width: 100%;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.container:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 28px;
    color: #C59D5F;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

#numero_documento {
    width: 100%;
    height: 55px;
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 15px;
    border: 2px solid #C59D5F;
    background: #fdfaf5;
    color: #1B3B1B;
    font-weight: 700;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition: 0.3s;
}

#numero_documento:focus {
    outline: none;
    border-color: #1B3B1B;
    box-shadow: 0 0 8px rgba(27,59,27,0.5);
}

#teclado {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

#teclado button {
    height: 65px;
    font-size: 22px;
    border: none;
    border-radius: 15px;
    background: #595959;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#teclado button:hover {
    background: #1B3B1B;
}

#teclado button.buscar {
    grid-column: span 3;
    background: #1B3B1B;
    color: #ffffff;
    font-size: 20px;
}

#teclado button.buscar:hover {
    background: #C59D5F;
    color: #1B3B1B;
}

.resultado table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

.resultado th, .resultado td {
    border: 1px solid #C59D5F;
    padding: 10px 12px;
    text-align: left;
}

.resultado th {
    background: #C59D5F;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resultado td {
    background: #fdfaf5;
    color: #1B3B1B;
}

.felicidades {
    margin-top: 15px;
    font-size: 18px;
    color: #1B3B1B;
    font-weight: 700;
}

.no-resultado {
    color: #E53935;
    font-weight: 700;
    font-size: 16px;
    margin-top: 20px;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    width: 300px;
    height: auto;
}

#teclado button.pressed {
    background-color: #d4af37;
    color: #fff;
    transform: scale(0.95);
}

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: rgba(255, 255, 255, 0.4);
}

#teclado .btn-borrar-todo {
    background: #595959;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 15px;
}

#teclado .btn-borrar-todo:hover {
    background: #1B3B1B;
}

.footer-creditos {
    margin-top: 20px;
    color: #595959;
    font-size: 14px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
}

.btn-confirmar {
    height: 65px;
    padding: 0 40px;
    font-size: 20px;
    border: none;
    border-radius: 15px;
    background: #1B3B1B;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin: 25px 0;
    font-family: 'Open Sans', sans-serif;
}

.btn-confirmar:hover {
    background: #C59D5F;
    color: #1B3B1B;
}

.modal-tabla {
    font-size: 18px;
}

@media (max-width: 500px) {
    .modal-tabla {
        font-size: 14px;
    }
    .modal-tabla th, .modal-tabla td {
        padding: 4px;
    }
    .btn-confirmar {
        font-size: 16px;
        padding: 0 20px;
        height: 50px;
    }
}