/* public_html/psl/css/estilos.css */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap');

:root {
    --primary: #0066cc;
    /* Azul eléctrico más vivo */
    --primary-dark: #004c99;
    /* Azul oscuro para contrastes */
    --accent: #00aaff;
    /* Azul cielo para detalles */
    --bg-body: #f0f4f8;
    --text-main: #1a202c;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 102, 204, 0.15);
}

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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 18px;
    /* Texto base más grande */
    line-height: 1.6;
    /* Flexbox para mantener el footer abajo */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Layout */
.main-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    flex: 1; /* Empuja el footer hacia abajo */
}

.card,
.form-card,
.table-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px;
    border-top: 6px solid var(--primary);
}

/* Tipografía */
h1,
h2,
h3 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* Formularios Grandes */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 1rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 16px;
    /* Inputs más altos */
    font-size: 1.1rem;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    background-color: #f8fafc;
    transition: all 0.3s;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
    outline: none;
    background: #fff;
}

/* Tablas */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

.data-table th {
    background: var(--primary);
    color: white;
    padding: 18px;
    text-align: left;
    font-size: 1.1rem;
}

.data-table th:first-child {
    border-top-left-radius: 8px;
}

.data-table th:last-child {
    border-top-right-radius: 8px;
}

.data-table td {
    padding: 18px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.05rem;
}

.data-table tr:hover td {
    background-color: #ebf8ff;
}

/* Botones */
.btn {
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-danger {
    background: #e53e3e;
}

.btn-danger:hover {
    background: #c53030;
}

/* Permisos Matrix */
.perm-matrix {
    display: grid;
    grid-template-columns: 200px repeat(6, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.perm-header {
    font-weight: bold;
    background: #e2e8f0;
    padding: 10px;
    text-align: center;
}

.perm-check {
    text-align: center;
}

.perm-check input {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

/* Pie de Página */
footer {
    padding: 25px 20px;
    background-color: transparent;
    border-top: 1px solid #cbd5e0;
    margin-top: auto;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-spacer,
.footer-actions {
    flex: 1; /* Divide el espacio equitativamente en 3 bloques */
}

.footer-actions {
    text-align: right;
}

.footer-copy {
    flex: 1;
    text-align: center;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

/* Botón de Miembros */
.btn-miembros {
    display: inline-block;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 20px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-miembros:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}