/* ============================================================
   SISTEMA DE DISEÑO GLOBAL DEL LMS BAZÁN OPOSICIONES
============================================================ */

/* ------------------------------------------------------------
   VARIABLES CSS
------------------------------------------------------------ */
:root {
    --color-primary: #1e88e5;
    --color-primary-dark: #1565c0;
    --color-secondary: #0073e6;
    --color-bg: #f5f5f5;
    --color-bg-light: #ffffff;
    --color-text: #222;
    --color-text-light: #555;
    --color-border: #dcdcdc;

    --radius: 8px;
    --radius-small: 5px;

    --shadow: 0 2px 6px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 10px rgba(0,0,0,0.12);

    --transition: 0.2s ease;
}

/* ------------------------------------------------------------
   TIPOGRAFÍA GLOBAL
------------------------------------------------------------ */
body.bazan-campus-body {
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

/* Títulos */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    margin-top: 0;
    color: #111;
}
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }

/* ------------------------------------------------------------
   ENLACES
------------------------------------------------------------ */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   BOTONES
------------------------------------------------------------ */
button,
.bazan-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}
button:hover,
.bazan-btn:hover {
    background: var(--color-primary-dark);
}

/* Botón gris */
.bazan-btn-secundario,
.bazan-btn-secondary {
    background: #e0e0e0;
    color: #333;
}
.bazan-btn-secundario:hover,
.bazan-btn-secondary:hover {
    background: #cfcfcf;
}

/* Botón primario explícito */
.bazan-btn-primario {
    background: var(--color-primary);
    color: #fff;
}
.bazan-btn-primario:hover {
    background: var(--color-primary-dark);
}

/* ------------------------------------------------------------
   INPUTS, SELECTS, TEXTAREAS
------------------------------------------------------------ */
input,
select,
textarea,
.bazan-input,
.bazan-textarea {
    font-family: inherit;
    font-size: 16px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    width: 100%;
    box-sizing: border-box;
    background: white;
}

input:focus,
select:focus,
textarea:focus,
.bazan-input:focus,
.bazan-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(30,136,229,0.2);
}

/* ------------------------------------------------------------
   TARJETAS / BLOQUES
------------------------------------------------------------ */
.bazan-card {
    background: var(--color-bg-light);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.bazan-card:hover {
    box-shadow: var(--shadow-hover);
}

/* ------------------------------------------------------------
   TABLAS
------------------------------------------------------------ */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
}
table th,
table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}
table th {
    background: #f0f0f0;
    font-weight: 600;
}

/* ------------------------------------------------------------
   ICONOS
------------------------------------------------------------ */
.bazan-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* ------------------------------------------------------------
   CARPETAS
------------------------------------------------------------ */
.bazan-folder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}
.bazan-folder:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* ------------------------------------------------------------
   CALENDARIO
------------------------------------------------------------ */
.bazan-calendar {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.bazan-calendar-day {
    padding: 10px;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: var(--transition);
}
.bazan-calendar-day:hover {
    background: rgba(30,136,229,0.1);
}

.bazan-calendar-day.active {
    background: var(--color-primary);
    color: white;
}

/* ------------------------------------------------------------
   MODALES (CENTRADOS SIN CAMBIAR HTML)
   Se aplica solo a modales que NO son el modal de materiales
------------------------------------------------------------ */

/* Cualquier .bazan-modal que NO sea #bazan-modal-materiales */
.bazan-modal:not(#bazan-modal-materiales) {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
    z-index: 9999;
    box-sizing: border-box;
}

/* Contenido interno del modal */
.bazan-modal-contenido {
    position: relative;
    z-index: 1;
}

/* Tabs del modal */
.bazan-modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}
.bazan-modal-tabs button {
    background: #e9e9e9;
    border-radius: var(--radius-small);
    padding: 6px 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.bazan-modal-tabs button.activo {
    background: var(--color-primary);
    color: #fff;
}

/* Cuerpo del modal */
.bazan-modal-body label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--color-text-light);
}
.bazan-modal-body input,
.bazan-modal-body textarea {
    margin-bottom: 12px;
}

/* Botones del modal */
.bazan-modal-acciones {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Fondo oscuro global para cualquier modal visible
   (solo si el modal no tiene overlay propio) */
body.bazan-campus-body.modal-abierto::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9990;
}

/* ------------------------------------------------------------
   ESPACIADOS
------------------------------------------------------------ */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
