* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #eef4f8;
    color: #1f2937;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: #0f2f46;
    color: white;
    padding: 25px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo h1 {
    font-size: 32px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.logo p {
    font-size: 13px;
    color: #b6d7e8;
    margin-bottom: 30px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu a {
    text-decoration: none;
    color: #e5f4fb;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    transition: 0.3s;
    font-size: 15px;
}

.menu a:hover {
    background: #1d9bbf;
    color: white;
}

.main {
    margin-left: 270px;
    width: calc(100% - 270px);
    padding: 30px;
}

.topbar {
    background: white;
    padding: 25px;
    border-radius: 18px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(15, 47, 70, 0.08);
}

.topbar h2 {
    color: #0f2f46;
    margin-bottom: 8px;
}

.topbar p {
    color: #64748b;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.card-info {
    background: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(15, 47, 70, 0.08);
    border-left: 6px solid #1d9bbf;
}

.card-info h3 {
    color: #0f2f46;
    margin-bottom: 8px;
}

.card-info p {
    color: #64748b;
    font-size: 14px;
}

.contenedor {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.modulo {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(15, 47, 70, 0.08);
}

.modulo h2 {
    color: #0f2f46;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.modulo h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #1f2937;
}

form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    background: #f8fafc;
}

textarea {
    min-height: 80px;
    resize: vertical;
    grid-column: span 3;
}

label {
    font-size: 14px;
    color: #334155;
    align-self: center;
}

input:focus,
textarea:focus {
    border-color: #1d9bbf;
    background: white;
}

button {
    background: #1d9bbf;
    color: white;
    border: none;
    padding: 13px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background: #0f7897;
}

form button {
    grid-column: span 3;
}

.tabla-contenedor {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: white;
}

thead {
    background: #0f2f46;
    color: white;
}

th,
td {
    padding: 13px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

tbody tr:hover {
    background: #f1f5f9;
}

#reportes p {
    color: #64748b;
}

@media (max-width: 1000px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .layout {
        flex-direction: column;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    form {
        grid-template-columns: repeat(2, 1fr);
    }

    textarea,
    form button {
        grid-column: span 2;
    }
}

@media (max-width: 650px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    form {
        grid-template-columns: 1fr;
    }

    textarea,
    form button {
        grid-column: span 1;
    }

    .main {
        padding: 18px;
    }
}

.login-body {
    background: linear-gradient(135deg, #0f2f46, #1d9bbf);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-contenedor {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 420px;
    background: white;
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #0f2f46;
    font-size: 40px;
    margin-bottom: 8px;
}

.login-header p {
    color: #64748b;
    font-size: 14px;
}

.form-auth {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-auth h2 {
    text-align: center;
    color: #0f2f46;
    margin-bottom: 10px;
}

.form-auth input,
.form-auth select {
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
}

.form-auth button {
    background: #1d9bbf;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}

.form-auth button:hover {
    background: #0f7897;
}

.texto-cambio {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.texto-cambio span {
    color: #1d9bbf;
    font-weight: bold;
    cursor: pointer;
}

.oculto {
    display: none !important;
}
.descripcion-reporte {
    color: #64748b;
    margin-bottom: 20px;
}

.botones-reportes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 25px;
}

.botones-reportes button {
    background: #1d9bbf;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}

.botones-reportes button:hover {
    background: #0f7897;
}

.reporte-tabla {
    margin-top: 20px;
}

@media (max-width: 1100px) {
    .botones-reportes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .botones-reportes {
        grid-template-columns: 1fr;
    }
}