* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: #f4f7fb;
    color: #1f2937;
}

.contenedor {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 60px;

    padding: 40px;
}

.presentacion {
    max-width: 500px;
}

.logo {
    font-size: 42px;
    font-weight: bold;
    color: #0b6efd;

    margin-bottom: 20px;
}

.presentacion h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.presentacion p {
    font-size: 18px;
    line-height: 1.6;
    color: #6b7280;
}

.tarjeta-login {
    width: 380px;

    background: white;

    padding: 35px;

    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tarjeta-login h2 {
    margin-bottom: 25px;
}

.tarjeta-login form {
    display: flex;
    flex-direction: column;
}

.tarjeta-login label {
    margin-bottom: 8px;
    font-weight: bold;
}

.tarjeta-login input {
    padding: 13px;

    margin-bottom: 20px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    font-size: 15px;
}

.tarjeta-login button {
    padding: 14px;

    border: none;
    border-radius: 8px;

    background: #0b6efd;
    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}

.tarjeta-login button:hover {
    background: #0957c3;
}

.tarjeta-login a {
    display: block;

    margin-top: 20px;

    text-align: center;

    color: #0b6efd;

    text-decoration: none;
}

@media (max-width: 800px) {

    .contenedor {
        flex-direction: column;

        gap: 30px;

        padding: 25px;
    }

    .presentacion {
        text-align: center;
    }

    .presentacion h1 {
        font-size: 32px;
    }

    .tarjeta-login {
        width: 100%;
        max-width: 380px;
    }
}
/* =========================
   DASHBOARD VIDRA
========================= */

.app-layout {
    min-height: 100vh;
    display: flex;
    background: #f4f7fb;
}

.sidebar {
    width: 250px;
    min-height: 100vh;

    background: #0f2133;
    color: white;

    padding: 30px 20px;

    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    font-size: 32px;
    font-weight: bold;
}

.sidebar-subtitle {
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 35px;

    color: #b9c8d6;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu a {
    color: #dce7f0;
    text-decoration: none;

    padding: 12px 14px;

    border-radius: 8px;
}

.sidebar-menu a:hover,
.sidebar-menu a.activo {
    background: #0b6efd;
    color: white;
}

.logout {
    margin-top: auto;

    color: white;
    text-decoration: none;

    padding: 12px 14px;
}

.dashboard {
    flex: 1;
    padding: 35px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.dashboard-header p {
    color: #6b7280;
}

.usuario-info {
    background: white;

    padding: 10px 16px;

    border-radius: 10px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.resumen-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 30px;
}

.resumen-card {
    background: white;

    padding: 24px;

    border-radius: 14px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.resumen-card span {
    display: block;

    color: #6b7280;

    margin-bottom: 10px;
}

.resumen-card strong {
    font-size: 32px;
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.panel {
    background: white;

    padding: 25px;

    border-radius: 14px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.panel h2 {
    margin-bottom: 15px;
}

.panel p {
    color: #6b7280;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .sidebar {
        width: 210px;
    }

    .resumen-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .sidebar-menu {
        display: none;
    }

    .logout {
        margin-top: 15px;
    }

    .dashboard {
        padding: 20px;
    }

    .dashboard-header {
        align-items: flex-start;
        gap: 15px;
    }

    .resumen-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}
.btn-principal {
    display: inline-block;
    padding: 12px 18px;
    background: #0b6efd;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.btn-secundario {
    display: inline-block;
    padding: 12px 18px;
    background: #e5e7eb;
    color: #1f2937;
    border-radius: 8px;
    text-decoration: none;
}

.formulario {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.formulario div {
    display: flex;
    flex-direction: column;
}

.formulario label {
    margin-bottom: 8px;
    font-weight: bold;
}

.formulario input,
.formulario textarea {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
}

.campo-completo {
    grid-column: 1 / -1;
}

.acciones-formulario {
    flex-direction: row !important;
    justify-content: flex-end;
    gap: 15px;
}

@media (max-width: 700px) {
    .formulario {
        grid-template-columns: 1fr;
    }

    .campo-completo {
        grid-column: auto;
    }
}
/* =========================
   CLIENTES
========================= */

.clientes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}

.clientes-header h2 {
    margin-bottom: 5px;
}

.clientes-header p {
    color: #6b7280;
}

.buscador-clientes input {
    width: 280px;

    padding: 11px 14px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    font-size: 15px;
}

.tabla-responsive {
    width: 100%;
    overflow-x: auto;
}

.tabla {
    width: 100%;

    border-collapse: collapse;
}

.tabla th,
.tabla td {
    padding: 14px;

    text-align: left;

    border-bottom: 1px solid #e5e7eb;
}

.tabla th {
    color: #6b7280;
    font-size: 14px;

    background: #f8fafc;
}

.tabla tbody tr:hover {
    background: #f8fafc;
}

.estado-vacio {
    text-align: center;

    padding: 45px 20px;
}

.estado-vacio h3 {
    margin-bottom: 10px;
}

.estado-vacio p {
    color: #6b7280;

    margin-bottom: 25px;
}


@media (max-width: 700px) {

    .clientes-header {
        flex-direction: column;
        align-items: stretch;
    }

    .buscador-clientes input {
        width: 100%;
    }

}