* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
}

.header {
    text-align: center;
    padding: 20px 0;
    background: white;
}

.header img,
img,
canvas {
    max-width: 100%;
    height: auto;
}

.contenedor,
.contenedor-formulario,
.menu,
.container {
    width: min(100%, 1100px);
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
    width: 100%;
    max-width: 100%;
}

table {
    width: 100%;
}

@media (max-width: 900px) {
    body {
        font-size: 15px;
        overflow-x: hidden;
    }

    .header {
        padding: 10px 0 !important;
    }

    .contenedor,
    .contenedor-formulario,
    .menu,
    .container {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 14px !important;
    }

    form {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .campo-grupo,
    .tablas-inline,
    .tablas-dos {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 0 !important;
    }

    .campo,
    .tabla-chica {
        width: 100% !important;
        min-width: 0 !important;
    }

    .firma-canvas {
        width: 100% !important;
        max-width: 100% !important;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        font-size: 14px;
        padding: 6px !important;
    }

    button,
    input[type="submit"],
    input[type="button"],
    .btn,
    .btn-volver a,
    .menu-link {
        width: 100% !important;
        max-width: 100%;
        justify-content: center;
    }
}
