body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #eef2f7;
}

/* NAVBAR */
nav {
    background: #1e293b;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

nav a {
    color: white;
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #38bdf8;
}

/* CONTENEDOR */
.container {
    padding: 20px;
}

/* CARDS */
.card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* INPUTS */
input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* BOTONES */
button {
    background: #2563eb;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

/* TABLAS */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #2563eb;
    color: white;
}

td, th {
    padding: 10px;
    border: 1px solid #ddd;
}

/*Dashboard-------------------------------------------------------*/
/* DASHBOARD CONTENEDOR */
.dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CENTRAR TEXTO */
.center {
    text-align: center;
    max-width: 500px;
}

/* CONTENEDOR DE BOTONES */
.botones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

/* BOTONES MÁS BONITOS SIN CAMBIAR ESTILO */
.botones button {
    width: 100%;
}
/*FIN Dashboard-------------------------------------------------------*/
/*Direcciones-------------------------------------------------------*/
/* CONTENEDOR GENERAL */
.direcciones {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* FORMULARIO */
.card-form {
    width: 100%;
    max-width: 600px;
}

/* GRID DE INPUTS (SIN EXAGERAR) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* INPUTS GRANDES OCUPAN TODO */
.form-grid input:nth-child(1),
.form-grid input:nth-child(2),
.form-grid input:nth-child(3) {
    grid-column: span 2;
}

/* BOTÓN CENTRADO */
.card-form button {
    margin-top: 10px;
}

/* TABLA */
.card-tabla {
    width: 100%;
    max-width: 800px;
    margin-top: 15px;
}

/* TABLA MÁS LIMPIA */
table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: #60a5fa;
}

td {
    text-align: center;
}
/*FIN Direcciones-------------------------------------------------------*/
/*Listas-------------------------------------------------------*/
.lista-card {
    max-width: 1000px;
    margin: auto;
}

/* SECCIÓN FORM */
.form-section {
    margin-bottom: 20px;
}

/* GRID ORDENADO */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* BOTÓN */
.form-actions {
    margin-top: 10px;
    text-align: right;
}

/* TABLA */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #60a5fa;
    color: white;
}

td, th {
    padding: 10px;
    border: 1px solid #e5e7eb;
    text-align: center;
}
/*FIN Listas-------------------------------------------------------*/
/*Roles-----------------------------------------------------------*/
.roles-card {
    max-width: 800px;
    margin: auto;
}

/* ya lo tienes, pero lo reforzamos */
.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

/* CENTRAR CONTENIDO DEL MODAL */
.modal-content {
    text-align: center;
}

/* INPUTS EN MODAL MÁS ORDENADOS */
.modal-content input {
    width: 100%;
    max-width: 400px;
    margin: 8px auto;
    display: block;
}

/* OPCIONAL: AGRUPACIÓN MÁS LIMPIA */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-items: center;
}

/* BOTONES MODAL CENTRADOS */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}
/*Fin de roles----------------------------------------------------*/
/*Perfiles crear--------------------------------------------------*/
.perfil-card {
    max-width: 900px;
    margin: auto;
}

/* GRID BONITO */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

/* TÍTULOS DE SECCIÓN */
h3 {
    margin-top: 20px;
    color: #475569;
}

/* BOTÓN */
.form-actions {
    margin-top: 15px;
    text-align: right;
}