/* LA-ESCUELA/gestion-institucional/style.css */

.gi-container {
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
}

.gi-hero {
    position: relative;
    padding: 140px 20px 80px 20px; /* Top padding to account for header */
    background: var(--bg-elevated);
    color: var(--text);
    text-align: center;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    margin-bottom: 60px;
    margin-top: -4.75rem; /* Pull under the header */
    border-bottom: 1px solid var(--border);
}

.gi-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(251, 202, 56, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.gi-hero-content {
    position: relative;
    z-index: 2;
}

.gi-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.gi-hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.gi-sidebar {
    background: var(--bg-elevated);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: calc(var(--header-main-height, 4.75rem) + 20px);
    border: 1px solid var(--border);
}

.gi-sidebar h3 {
    color: var(--text);
    border-bottom-color: var(--border);
}

.gi-sidebar-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 12px 24px; /* Adjusted left padding for the indicator pill */
    margin-bottom: 8px;
    border-radius: 12px;
    color: var(--text-muted) !important;
    font-weight: 500;
    position: relative; /* Position relative for absolute positioning of pseudo-element */
    transition: all var(--motion-base) var(--motion-ease);
}

.gi-sidebar-link::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 25%;
    height: 50%;
    width: 4px;
    background-color: var(--accent) !important;
    border-radius: 4px;
    opacity: 0;
    transform: scaleY(0.3);
    transition: all var(--motion-base) var(--motion-ease);
}

.gi-sidebar-link:hover {
    background: var(--bg-soft);
    color: var(--accent) !important;
    transform: translateX(8px);
}

.gi-sidebar-link:hover span,
.gi-sidebar-link:hover i {
    color: var(--accent) !important;
}

.gi-sidebar-link.active {
    background: var(--bg-soft);
    color: var(--accent) !important;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(251, 202, 56, 0.12); /* Subtle yellow/gold shadow glow */
}

.gi-sidebar-link.active span,
.gi-sidebar-link.active i {
    color: var(--accent) !important;
    opacity: 1 !important;
}

.gi-sidebar-link.active::before {
    opacity: 1 !important;
    transform: scaleY(1) !important;
}

.gi-content-section {
    background: var(--bg-elevated);
    color: var(--text);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.gi-cert-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all var(--motion-base) var(--motion-ease);
}

.gi-cert-card h4 {
    color: var(--text);
}

.gi-cert-card p {
    color: var(--text-muted);
}

.gi-cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
    border-color: var(--accent);
}

.gi-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.gi-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
