html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background-color: #f3f3f3;
    margin-bottom: 60px;
    font-family: 'Merriweather', serif;
    /*font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;*/
}

/* ===== FUENTE INTER PARA SUBTÍTULOS Y TEXTO SECUNDARIO ===== */

.sistema-subtitle,
.users-subtitle,
.text-muted,
.user-card p,
.sistema-card p,
.footer-custom p,
.small-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1 {
    font-weight: 900;
}

h2 {
    font-weight: 700;
}

p {
    font-weight: 300;
}

/* ====== PALETA ====== */
:root {
    --rojo-principal: #8C1B1B;
    --rojo-claro: #D42D2D;
    --rojo-oscuro: #620900;
    --beige: #B1A596;
}


.navbar-custom {
    background-color: var(--rojo-principal);
}


.hero-section {
    background: linear-gradient(135deg, var(--rojo-principal), var(--rojo-claro));
    color: white;
    padding: 100px 0;
    border-radius: 28px;
    border-radius: 28px;
}

/* ===== BOTONES ===== */
.btn-hero-primary {
    background-color: white;
    color: var(--rojo-principal);
    font-weight: 600;
}

    .btn-hero-primary:hover {
        background-color: #f2f2f2;
    }

.btn-hero-outline {
    border: 2px solid white;
    color: white;
}

    .btn-hero-outline:hover {
        background-color: white;
        color: var(--rojo-principal);
    }

/* ===== CARD TRANSPARENTE ===== */
.hero-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

/* ===== SECCI�N USUARIOS ===== */

.users-section {
    background-color: #f3f3f3;
    padding: 120px 0;
}

.users-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 42px;
    color: #1f2937;
}

.users-subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== CARDS ===== */

.user-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease;
    height: 100%;
}

    .user-card:hover {
        transform: translateY(-5px);
    }

/* Bordes superiores personalizados */
.border-estudiantes {
    border-top: 5px solid #8C1B1B;
}

.border-docentes {
    border-top: 5px solid #D42D2D;
}

.border-admin {
    border-top: 5px solid #B1A596;
}

/* T�tulos card */
.user-card h4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin-top: 15px;
}

/* Bot�n link */
.portal-link {
    color: #8C1B1B;
    font-weight: 600;
    text-decoration: none;
}

    .portal-link:hover {
        text-decoration: underline;
    }

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

/* Colores suaves de fondo */
.icon-estudiantes {
    background-color: rgba(140, 27, 27, 0.1);
    color: #8C1B1B;
}

.icon-docentes {
    background-color: rgba(212, 45, 45, 0.1);
    color: #D42D2D;
}

.icon-admin {
    background-color: rgba(177, 165, 150, 0.2);
    color: #8C1B1B;
}

.icon-box i {
    font-size: 24px;
}


/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--rojo-principal), var(--rojo-oscuro));
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-top: 80px;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
}


.footer-custom {
    background-color: #0c1b2a;
    color: #dcdcdc;
    padding: 60px 0 20px 0;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

    .footer-custom h5 {
        color: white;
    }

.sistema-card:focus,
.sistema-card:active {
    outline: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* ===== SISTEMA ESCOLAR ===== */

.sistema-section {
    padding: 120px 0;
    background-color: #f3f3f3;
}

.sistema-title {
    font-family: 'Merriweather', serif;
    font-size: 40px;
    font-weight: 700;
    color: #1f2937;
}

.sistema-subtitle {
    color: #6b7280;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Centrar cards y limitar ancho */
.sistema-section .row {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== CARD BASE ===== */

.sistema-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

    .sistema-card:hover {
        transform: translateY(-8px);
    }

    /* Quitar focus azul del navegador */
    .sistema-card:focus,
    .sistema-card:active {
        outline: none;
    }

/* ===== BORDES SUPERIORES ===== */

.border-calificaciones {
    border-top: 8px solid #D42D2D;
}

.border-servicio {
    border-top: 8px solid #B1A596;
}

/* ===== ICONOS ===== */

.sistema-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-calificaciones {
    background-color: rgba(212, 45, 45, 0.1);
    color: #D42D2D;
}

.icon-servicio {
    background-color: rgba(177, 165, 150, 0.25);
    color: #8C1B1B;
}

.sistema-icon i {
    font-size: 28px;
}

/* ===== BOTONES ===== */

/* Calificaciones */
.btn-calificaciones {
    background-color: #D42D2D;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
}

    .btn-calificaciones:hover {
        background-color: #8C1B1B;
        color: white;
    }

/* Servicio Social */
.btn-servicio {
    background-color: #B1A596;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
}

    .btn-servicio:hover {
        background-color: #8C1B1B;
        color: white;
    }

/*============ PROCEDURES ===========*/
#bulkActionsBar {
    background-color: #4a0700 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999 !important;
}

    #bulkActionsBar .btn-bulk-edit {
        background-color: #ffc107 !important;
        color: #000 !important;
        border: none;
        font-weight: 700;
    }

        #bulkActionsBar .btn-bulk-edit:hover {
            background-color: #e0a800 !important;
            transform: translateY(-2px);
        }

.row-selected {
    background-color: rgba(98, 9, 0, 0.05) !important;
}

.burgundy-header th i {
    display: none;
}

.bg-burgundy {
    background-color: #8C1B1B !important;
}

/* ===== ADMIN FORO ===== */

.admin-section {
    padding: 100px 0;
    background-color: #f3f3f3;
}

.admin-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: auto;
}

.admin-title {
    font-family: 'Merriweather', serif;
    font-size: 32px;
    font-weight: 700;
}

.preview-section {
    max-width: 900px;
    margin: auto;
}

.preview-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.07);
}

/* ===== BOTONES DE DISEÑO ===== */

.design-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.design-btn {
    border: 2px solid #D42D2D;
    background: white;
    color: #D42D2D;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s ease;
}

    .design-btn:hover {
        background: #D42D2D;
        color: white;
    }

    .design-btn.active {
        background: #8C1B1B;
        color: white;
        border-color: #8C1B1B;
    }

/* ===== ESTILOS DE VISTA PREVIA ===== */

.preview-card {
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
}

/* Clásico */
.clasico-style {
    background: white;
}

/* Destacado */
.destacado-style {
    background: linear-gradient(135deg, #8C1B1B, #D42D2D);
    color: white;
}

/* Minimalista */
.minimalista-style {
    background: #f9f9f9;
    border: 1px solid #ddd;
}

/* Banner */
.banner-style {
    background: #8C1B1B;
    color: white;
    text-align: center;
    padding: 60px;
}

/* Horizontal */
.horizontal-style {
    background: white;
    display: flex;
    flex-direction: column;
    border-left: 6px solid #D42D2D;
}
