/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;1,400&display=swap');

/* ── CSS Variables ── */
:root {
    --crimson:    #821b2d;
    --crimson-dk: #5f1320;
    --sand:       #b58b63;
    --navy:       #2f4358;
    --cream:      #fffdf8;
    --warm-100:   #f5e6d3;
    --warm-200:   #efe3d3;
    --ink:        #241b1f;
    --muted:      #5f565a;

    --radius:     10px;
    --shadow-sm:  0 4px 16px rgba(36,27,31,.07);
    --shadow-md:  0 14px 35px rgba(36,27,31,.10);
    --shadow-lg:  0 24px 50px rgba(36,27,31,.16);
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .section-heading h2, .role-card h3,
.feature-card h3, .cta-panel h2, .values-intro h2, .impact-band h2 {
    font-family: 'Sora', system-ui, sans-serif;
}

/* ──────────────────────────────────────────────────
   SCROLL ANIMATIONS
────────────────────────────────────────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease calc(var(--delay, 0s)),
                transform .55s ease calc(var(--delay, 0s));
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

/* ──────────────────────────────────────────────────
   HERO — NEW ELEMENTS
────────────────────────────────────────────────── */
.home-hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: .08;
}

.shape-1 {
    width: 480px; height: 480px;
    top: -160px; right: -80px;
    background: #fff;
    animation: float1 9s ease-in-out infinite;
}

.shape-2 {
    width: 280px; height: 280px;
    bottom: -60px; left: 10%;
    background: var(--sand);
    animation: float2 11s ease-in-out infinite;
}

.shape-3 {
    width: 180px; height: 180px;
    top: 40%; left: 52%;
    background: var(--sand);
    animation: float1 13s ease-in-out infinite reverse;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-22px) scale(1.04); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(18px) scale(.97); }
}

.home-hero { position: relative; }

/* Hero pill badge */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    font-family: 'Sora', sans-serif;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .07rem;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hero-pill-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,.22);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,.22); }
    50%       { box-shadow: 0 0 0 6px rgba(74,222,128,.08); }
}

/* Hero title */
.hero-title {
    max-width: 720px;
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.02em;
}

.hero-title em {
    font-style: normal;
    color: var(--sand);
}

.hero-text-col {
    animation: slideInLeft .7s ease both;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: none; }
}

/* Hero action buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    border-radius: var(--radius);
    background: #fff;
    color: var(--crimson);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(0,0,0,.18);
    transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-hero-primary:hover {
    background: var(--warm-100);
    color: var(--crimson-dk);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    border-radius: var(--radius);
    border: 2px solid rgba(255,255,255,.5);
    background: transparent;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.85);
    transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────
   NEWS TYPE BADGES
────────────────────────────────────────────────── */
.news-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'Sora', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07rem;
    text-transform: uppercase;
    width: fit-content;
}

.badge-comunicado { background: rgba(181,139,99,.22); color: #f5d8b0; }
.badge-noticia    { background: rgba(74,222,128,.18); color: #a7f3d0; }
.badge-actividad  { background: rgba(96,165,250,.18); color: #bfdbfe; }
.badge-logro      { background: rgba(250,204,21,.18); color: #fde68a; }

/* News day number */
.news-day {
    display: block;
    margin-top: 32px;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: clamp(4.5rem, 10vw, 7rem);
    font-weight: 800;
    line-height: .82;
    letter-spacing: -.04em;
}

/* ──────────────────────────────────────────────────
   FEATURE CARDS — enhancements
────────────────────────────────────────────────── */
.section-lead {
    color: var(--muted);
    font-size: 1.06rem;
    margin-top: 4px;
    margin-bottom: 0;
}

.feature-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--crimson);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    transition: gap .2s, color .2s;
}

.feature-card:hover .feature-link { color: var(--crimson-dk); }

/* Feature icon variants */
.fi-noticias  { background: var(--crimson) !important; }
.fi-repositorio { background: var(--navy) !important; }
.fi-identidad { background: var(--sand) !important; }
.fi-contacto  { background: #3f7d68 !important; }

.feature-icon svg { display: block; }

/* ──────────────────────────────────────────────────
   VALUES BAND (home version — reuses .values-band from about)
────────────────────────────────────────────────── */
.values-band {
    padding: 80px 0;
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.values-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255,255,255,.03) 0 1px,
        transparent 1px 22px
    );
    pointer-events: none;
}

.values-intro {
    padding-right: 48px;
}

.values-intro h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 18px;
}

.values-intro p {
    color: rgba(255,255,255,.72);
    font-size: 1.05rem;
    line-height: 1.7;
}

.values-cta-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--sand);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    text-decoration: none;
    font-size: .95rem;
    transition: color .2s;
}

.values-cta-link:hover { color: #f5d8b0; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    height: 100%;
}

.value-item {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(6px);
    transition: background .25s, border-color .25s, transform .25s;
}

.value-item:hover {
    background: rgba(255,255,255,.11);
    border-color: rgba(181,139,99,.4);
    transform: translateY(-3px);
}

.value-num {
    display: block;
    margin-bottom: 14px;
    color: var(--sand);
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.value-item h4 {
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.value-item p {
    color: rgba(255,255,255,.65);
    font-size: .93rem;
    line-height: 1.6;
    margin: 0;
}

/* ──────────────────────────────────────────────────
   IMPACT BAND — enhancements
────────────────────────────────────────────────── */
.impact-band h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.impact-cta {
    display: inline-block;
    margin-top: 22px;
    color: var(--crimson);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    text-decoration: none;
    font-size: .95rem;
    transition: color .2s;
}

.impact-cta:hover { color: var(--crimson-dk); }

/* ──────────────────────────────────────────────────
   ROLE CARDS — enhancements
────────────────────────────────────────────────── */
.role-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    margin-bottom: 20px;
    border-radius: var(--radius);
}

.role-docente { background: rgba(130,27,45,.1); color: var(--crimson); }
.role-coord   { background: var(--crimson); color: #fff; }
.role-dir     { background: rgba(47,67,88,.1); color: var(--navy); }

.role-card-featured {
    background: var(--crimson) !important;
    border-color: var(--crimson) !important;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(130,27,45,.3) !important;
}

.role-card-featured h3,
.role-card-featured p { color: #fff; }
.role-card-featured p { opacity: .85; }

.role-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--crimson);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: color .2s;
}

.role-card-featured .role-link { color: rgba(255,255,255,.85); }
.role-card-featured .role-link:hover { color: #fff; }
.role-link:hover { color: var(--crimson-dk); text-decoration: underline; }

/* ──────────────────────────────────────────────────
   CTA PANEL — enhancements
────────────────────────────────────────────────── */
.cta-panel {
    background: linear-gradient(120deg, var(--navy) 60%, #1e2f40) !important;
    position: relative;
    overflow: hidden;
}

.cta-panel::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(181,139,99,.12);
    pointer-events: none;
}

.cta-panel-text { position: relative; z-index: 1; }
.cta-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    z-index: 1;
}

/* Stat tile polish */
.stat-tile {
    border-left: 4px solid var(--crimson);
    transition: transform .2s, box-shadow .2s;
}
.stat-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Section heading polish */
.section-heading h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: -.02em;
}

/* Mobile adjustments for new sections */
@media (max-width: 991.98px) {
    .values-intro { padding-right: 0; margin-bottom: 32px; }
    .values-grid  { grid-template-columns: 1fr; }
    .cta-panel-actions { margin-top: 8px; }
}

@media (max-width: 767.98px) {
    .values-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn-hero-primary, .btn-hero-outline { justify-content: center; text-align: center; }
}

.hero {
    background: linear-gradient(to right, #821b2d, #b58b63);
    color: white;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.btn-dark {
    background: #821b2d;
    border: none;
}

.btn-dark:hover {
    background: #5f1320;
}

.site-navbar {
    padding: 12px 0;
    background: #821b2d;
    box-shadow: 0 10px 24px rgba(36, 27, 31, .12);
}

.site-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.site-nav {
    align-items: center;
    gap: 4px;
}

.site-nav .nav-item {
    display: flex;
    align-items: center;
}

.site-nav .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    color: rgba(255,255,255,.84);
    font-weight: 700;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: #fff;
}

.site-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-left: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #fffdf8;
    color: #821b2d;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(36, 27, 31, .16);
}

.site-admin-link:hover,
.site-admin-link:focus {
    background: #f5e6d3;
    color: #5f1320;
}

.home-hero {
    min-height: 82vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(130,27,45,.96) 0%, rgba(47,67,88,.90) 60%, rgba(25,40,58,.95) 100%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 22px);
    overflow: hidden;
}

.home-hero h1 {
    max-width: 720px;
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1;
}

.home-hero-carousel {
    width: 100%;
    padding-bottom: 58px;
}

.home-hero-carousel .carousel-item {
    min-height: 560px;
}

.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next {
    width: 44px;
}

.home-hero-carousel .carousel-control-prev {
    left: -54px;
}

.home-hero-carousel .carousel-control-next {
    right: -54px;
}

.home-hero-carousel .carousel-indicators {
    bottom: 0;
    margin-bottom: 0;
}

.home-hero-carousel .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 999px;
}

.home-news-hero-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 24px 50px rgba(0,0,0,.22);
    backdrop-filter: blur(12px);
}

.home-news-media {
    height: 190px;
    margin: -8px -8px 22px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255,255,255,.16);
}

.home-news-media img,
.home-news-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-news-hero-card span,
.home-news-hero-card small,
.home-news-hero-card p {
    color: rgba(255,255,255,.82);
}

.home-news-hero-card span {
    margin-bottom: auto;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08rem;
    text-transform: uppercase;
}

.home-news-hero-card strong {
    display: block;
    margin-top: 46px;
    color: #fff;
    font-size: clamp(4.5rem, 10vw, 7rem);
    font-weight: 800;
    line-height: .82;
}

.home-news-hero-card small {
    display: block;
    margin: 12px 0 20px;
    font-size: 1.1rem;
}

.home-news-hero-card p {
    margin-bottom: 0;
}

.hero-copy {
    max-width: 620px;
    margin-bottom: 32px;
    color: rgba(255,255,255,.88);
    font-size: 1.16rem;
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: #b58b63;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08rem;
    text-transform: uppercase;
}

.hero-panel {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 24px 50px rgba(0,0,0,.24);
    backdrop-filter: blur(12px);
}

.hero-panel-header,
.hero-metric-grid,
.platform-preview {
    border-radius: 8px;
}

.hero-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    color: rgba(255,255,255,.82);
}

.hero-panel-header strong {
    color: #fff;
}

.hero-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.hero-metric-grid div {
    min-height: 100px;
    padding: 16px;
    border-radius: 8px;
    background: #fffdf8;
    color: #241b1f;
}

.hero-metric-grid strong {
    display: block;
    margin-bottom: 6px;
    color: #821b2d;
    font-size: 1.75rem;
    line-height: 1;
}

.hero-metric-grid span,
.stat-tile span {
    color: #5f565a;
}

.platform-preview {
    display: grid;
    grid-template-columns: 74px 1fr;
    min-height: 250px;
    overflow: hidden;
    background: #fffdf8;
}

.preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    background: #2f4358;
}

.preview-sidebar span,
.preview-line,
.preview-cards span {
    display: block;
    border-radius: 8px;
    background: rgba(255,255,255,.9);
}

.preview-sidebar span {
    width: 30px;
    height: 30px;
}

.preview-content {
    padding: 24px;
}

.preview-line {
    width: 70%;
    height: 14px;
    margin-bottom: 14px;
    background: #d9d5ce;
}

.preview-line.wide {
    width: 92%;
    height: 22px;
    background: #821b2d;
}

.preview-progress {
    height: 12px;
    margin: 28px 0;
    overflow: hidden;
    border-radius: 8px;
    background: #eadfce;
}

.preview-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #3f7d68;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.preview-cards span {
    min-height: 78px;
    background: #f1e7d8;
}

.home-section {
    padding-top: 72px;
    padding-bottom: 72px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.section-heading h2,
.impact-band h2,
.cta-panel h2 {
    margin-bottom: 12px;
    color: #241b1f;
    font-weight: 800;
}

.feature-card,
.role-card,
.stat-tile {
    height: 100%;
    border: 1px solid #efe3d3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(36,27,31,.08);
}

.feature-card {
    display: block;
    padding: 24px;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #b58b63;
    box-shadow: 0 18px 45px rgba(36,27,31,.13);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #821b2d;
    color: #fff;
    font-weight: 800;
}

.feature-card h3,
.role-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.feature-card p,
.role-card p,
.impact-band p,
.cta-panel p {
    color: #5f565a;
}

.impact-band {
    padding: 64px 0;
    background: #f5e6d3;
}

.stat-tile {
    padding: 24px;
}

.stat-tile strong {
    display: block;
    margin-bottom: 18px;
    color: #821b2d;
    font-size: 2rem;
}

.role-card {
    padding: 28px;
}

.role-card a {
    color: #821b2d;
    font-weight: 700;
    text-decoration: none;
}

.role-card a:hover {
    color: #5f1320;
    text-decoration: underline;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    border-radius: 8px;
    color: #fff;
    background: #2f4358;
}

.cta-panel h2,
.cta-panel p {
    color: #fff;
}

.about-hero {
    min-height: 66vh;
    display: flex;
    align-items: center;
    padding: 68px 0;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(47, 67, 88, .92), rgba(130, 27, 45, .9)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 1px, transparent 1px 18px);
}

.about-hero h1 {
    max-width: 820px;
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.02;
}

.identity-panel {
    padding: 26px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 24px 50px rgba(0,0,0,.22);
    backdrop-filter: blur(12px);
}

.identity-panel strong {
    display: block;
    margin-bottom: 6px;
    font-size: 2.1rem;
    line-height: 1;
}

.identity-panel > div:first-child span {
    color: rgba(255,255,255,.82);
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.identity-grid span {
    min-height: 82px;
    display: flex;
    align-items: end;
    padding: 16px;
    border-radius: 8px;
    background: #fffdf8;
    color: #821b2d;
    font-weight: 800;
}

.purpose-card,
.value-card,
.team-card,
.anthem-panel {
    border: 1px solid #efe3d3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(36,27,31,.08);
}

.purpose-card {
    min-height: 320px;
    padding: 30px;
}

.purpose-card-dark {
    color: #fff;
    background: #2f4358;
}

.purpose-card h3,
.value-card h3,
.team-card h3,
.anthem-panel h2 {
    font-weight: 800;
}

.purpose-card p,
.value-card p,
.team-card p,
.anthem-text p,
.section-heading p,
.values-band p {
    color: #5f565a;
}

.purpose-card-dark p {
    color: rgba(255,255,255,.84);
}

.purpose-number {
    display: inline-flex;
    margin-bottom: 44px;
    color: #b58b63;
    font-size: 2.2rem;
    font-weight: 800;
}

.values-band {
    padding: 64px 0;
    background: #f5e6d3;
}

.value-card {
    min-height: 170px;
    padding: 24px;
}

.team-card {
    height: 100%;
    padding: 24px;
}

.team-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #821b2d;
    color: #fff;
    font-weight: 800;
}

.anthem-panel {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) 1.2fr;
    gap: 32px;
    padding: 34px;
}

.anthem-text {
    columns: 2;
    column-gap: 32px;
}

.anthem-text p {
    margin-bottom: 10px;
    break-inside: avoid;
    font-size: 1.05rem;
}

.news-hero {
    min-height: 62vh;
    display: flex;
    align-items: center;
    padding: 68px 0;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(130, 27, 45, .92), rgba(47, 67, 88, .92)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 1px, transparent 1px 18px);
}

.news-hero h1 {
    max-width: 820px;
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.02;
}

.news-summary-panel {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 24px 50px rgba(0,0,0,.22);
    backdrop-filter: blur(12px);
}

.news-summary-panel div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: 8px;
    background: #fffdf8;
    color: #241b1f;
}

.news-summary-panel strong {
    color: #821b2d;
    font-size: 1.6rem;
    line-height: 1;
}

.news-summary-panel span {
    color: #5f565a;
    text-align: right;
}

.empty-news,
.featured-news,
.news-card {
    border: 1px solid #efe3d3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(36,27,31,.08);
}

.empty-news {
    max-width: 760px;
    margin: 0 auto;
    padding: 42px;
    text-align: center;
}

.empty-news h2 {
    font-weight: 800;
}

.empty-news p {
    color: #5f565a;
}

.featured-news {
    overflow: hidden;
}

.featured-news-date {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    color: #fff;
    background: #2f4358;
}

.featured-news-date span {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 800;
    line-height: .9;
}

.featured-news-date strong {
    margin-top: 16px;
    font-size: 1.6rem;
}

.featured-news-date small {
    color: rgba(255,255,255,.76);
    font-size: 1rem;
}

.featured-news-content {
    height: 100%;
    padding: 42px;
}

.featured-news-content h2 {
    margin-bottom: 16px;
    font-weight: 800;
}

.featured-news-content p {
    color: #5f565a;
    font-size: 1.06rem;
}

.featured-news-content small {
    color: #821b2d;
    font-weight: 700;
}

.news-month {
    margin-top: 44px;
}

.news-month-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eadfce;
}

.news-month-heading h2 {
    margin: 0;
    font-weight: 800;
}

.news-month-heading span {
    color: #821b2d;
    font-weight: 700;
}

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: #b58b63;
    box-shadow: 0 18px 45px rgba(36,27,31,.13);
}

.news-card-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 22px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f5e6d3;
    color: #821b2d;
}

.news-card-date span,
.news-card h3,
.news-card-footer strong {
    font-weight: 800;
}

.news-card h3 {
    font-size: 1.22rem;
}

.news-media,
.news-card-media,
.admin-news-media {
    overflow: hidden;
    border-radius: 8px;
    background: #f5e6d3;
}

.news-media {
    min-height: 100%;
}

.news-media img,
.news-media video,
.news-card-media img,
.news-card-media video,
.admin-news-media img,
.admin-news-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-card-media {
    height: 180px;
    margin-bottom: 18px;
}

.news-media-carousel .carousel-inner,
.news-media-carousel .carousel-item {
    height: 100%;
}

.news-media-carousel .carousel-control-prev,
.news-media-carousel .carousel-control-next {
    width: 38px;
}

.news-media-carousel .carousel-control-prev-icon,
.news-media-carousel .carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.news-card p {
    flex: 1;
    color: #5f565a;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #efe3d3;
}

.news-card-footer span {
    color: #5f565a;
}

.news-card-footer strong {
    color: #3f7d68;
}

.repository-hero {
    min-height: 74vh;
    display: flex;
    align-items: center;
    padding: 68px 0;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(47, 67, 88, .93), rgba(130, 27, 45, .88)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 1px, transparent 1px 18px);
}

.repository-hero h1 {
    max-width: 820px;
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    font-weight: 800;
    line-height: 1.02;
}

.repository-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 820px;
    margin-top: 34px;
}

.repository-benefits div {
    min-height: 132px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
}

.repository-benefits strong {
    display: block;
    margin-bottom: 16px;
    color: #f5e6d3;
    font-size: 1.6rem;
}

.repository-benefits span {
    color: rgba(255,255,255,.86);
}

.login-panel,
.repository-card {
    border: 1px solid #efe3d3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(36,27,31,.14);
}

.login-panel {
    padding: 32px;
    color: #241b1f;
}

.login-panel-header {
    margin-bottom: 24px;
}

.login-panel-header h2 {
    margin-bottom: 8px;
    font-weight: 800;
}

.login-panel-header p,
.login-help span,
.repository-card p {
    color: #5f565a;
}

.login-panel .form-control {
    border-color: #e2d5c4;
    border-radius: 8px;
}

.login-panel .form-control:focus {
    border-color: #821b2d;
    box-shadow: 0 0 0 .22rem rgba(130, 27, 45, .14);
}

.login-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #efe3d3;
}

.login-help a {
    color: #821b2d;
    font-weight: 700;
    text-decoration: none;
}

.login-help a:hover {
    color: #5f1320;
    text-decoration: underline;
}

.repository-card {
    height: 100%;
    padding: 24px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.repository-card:hover {
    transform: translateY(-5px);
    border-color: #b58b63;
    box-shadow: 0 18px 45px rgba(36,27,31,.13);
}

.repository-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #821b2d;
    color: #fff;
    font-weight: 800;
}

.repository-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.contact-hero {
    min-height: 64vh;
    display: flex;
    align-items: center;
    padding: 68px 0;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(47, 67, 88, .92), rgba(130, 27, 45, .9)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 1px, transparent 1px 18px);
}

.contact-hero h1 {
    max-width: 820px;
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.02;
}

.contact-summary-panel {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 24px 50px rgba(0,0,0,.22);
    backdrop-filter: blur(12px);
}

.contact-summary-panel div {
    padding: 18px;
    border-radius: 8px;
    background: #fffdf8;
    color: #241b1f;
}

.contact-summary-panel strong {
    display: block;
    margin-bottom: 6px;
    color: #821b2d;
    font-size: 1.35rem;
    line-height: 1;
}

.contact-summary-panel span {
    color: #5f565a;
}

.contact-info-panel,
.contact-form-panel,
.contact-route {
    border: 1px solid #efe3d3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(36,27,31,.08);
}

.contact-info-panel,
.contact-form-panel {
    height: 100%;
    padding: 30px;
}

.contact-info-header,
.contact-form-heading {
    margin-bottom: 26px;
}

.contact-info-header h2,
.contact-form-heading h2 {
    margin-bottom: 10px;
    font-weight: 800;
}

.contact-info-header p,
.contact-form-heading p,
.contact-info-list p,
.contact-route span {
    color: #5f565a;
}

.contact-info-list {
    display: grid;
    gap: 18px;
}

.contact-info-list > div {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid #efe3d3;
}

.contact-info-list > div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.contact-info-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #821b2d;
    color: #fff;
    font-weight: 800;
}

.contact-info-list h3 {
    margin-bottom: 4px;
    font-size: 1.05rem;
    font-weight: 800;
}

.contact-info-list p {
    margin: 0;
}

.contact-info-list a {
    color: #821b2d;
    font-weight: 700;
    text-decoration: none;
}

.contact-info-list a:hover {
    color: #5f1320;
    text-decoration: underline;
}

.contact-form-panel .form-control {
    border-color: #e2d5c4;
    border-radius: 8px;
}

.contact-form-panel .form-control:focus {
    border-color: #821b2d;
    box-shadow: 0 0 0 .22rem rgba(130, 27, 45, .14);
}

.contact-band {
    padding: 64px 0;
    background: #f5e6d3;
}

.contact-route {
    height: 100%;
    padding: 24px;
}

.contact-route strong {
    display: block;
    margin-bottom: 12px;
    color: #821b2d;
    font-size: 1.25rem;
}

.admin-access-hero {
    min-height: 74vh;
    display: flex;
    align-items: center;
    padding: 68px 0;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(36, 27, 31, .9), rgba(130, 27, 45, .9)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 1px, transparent 1px 18px);
}

.admin-access-hero h1 {
    max-width: 820px;
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    font-weight: 800;
    line-height: 1.02;
}

.admin-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 820px;
    margin-top: 34px;
}

.admin-access-grid div {
    min-height: 140px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
}

.admin-access-grid strong {
    display: block;
    margin-bottom: 14px;
    color: #f5e6d3;
    font-size: 1.4rem;
}

.admin-access-grid span {
    color: rgba(255,255,255,.86);
}

.admin-login-panel,
.admin-module-card {
    border: 1px solid #efe3d3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(36,27,31,.14);
}

.admin-login-panel {
    padding: 32px;
    color: #241b1f;
}

.admin-login-panel .form-control {
    border-color: #e2d5c4;
    border-radius: 8px;
}

.admin-login-panel .form-control:focus {
    border-color: #821b2d;
    box-shadow: 0 0 0 .22rem rgba(130, 27, 45, .14);
}

.admin-module-card {
    height: 100%;
    padding: 24px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.admin-module-card:hover {
    transform: translateY(-5px);
    border-color: #b58b63;
    box-shadow: 0 18px 45px rgba(36,27,31,.13);
}

.admin-module-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #2f4358;
    color: #fff;
    font-weight: 800;
}

.admin-module-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.admin-module-card p,
.admin-access-band p {
    color: #5f565a;
}

.admin-access-band {
    padding: 64px 0;
    background: #f5e6d3;
}

.admin-access-band h2 {
    font-weight: 800;
}

.dashboard-shell {
    min-height: 100vh;
    background: #fffdf8;
}

.teacher-dashboard-hero {
    padding: 28px 0 74px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(47, 67, 88, .94), rgba(63, 125, 104, .88)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 1px, transparent 1px 18px);
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 62px;
}

.dashboard-brand {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-brand:hover {
    color: #f5e6d3;
}

.teacher-dashboard-hero h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 4.6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.02;
}

.teacher-profile-card {
    padding: 26px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 24px 50px rgba(0,0,0,.2);
    backdrop-filter: blur(12px);
}

.teacher-profile-card span,
.teacher-profile-card small {
    display: block;
    color: rgba(255,255,255,.78);
}

.teacher-profile-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 1.8rem;
    line-height: 1.1;
}

.dashboard-content {
    margin-top: -42px;
    padding-bottom: 72px;
}

.dashboard-stat-card,
.dashboard-panel,
.mini-stat {
    border: 1px solid #efe3d3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(36,27,31,.08);
}

.dashboard-stat-card {
    height: 100%;
    padding: 22px;
}

.dashboard-stat-card span,
.mini-stat span {
    display: block;
    color: #5f565a;
    font-weight: 700;
}

.dashboard-stat-card strong {
    display: block;
    margin-top: 12px;
    color: #821b2d;
    font-size: 2.5rem;
    line-height: 1;
}

.dashboard-stat-card .dashboard-stat-date {
    color: #2f4358;
    font-size: 1.45rem;
}

.dashboard-panel {
    padding: 30px;
}

.dashboard-panel-heading {
    margin-bottom: 24px;
}

.dashboard-panel-heading h2,
.resource-toolbar h2 {
    margin-bottom: 8px;
    font-weight: 800;
}

.dashboard-panel-heading p,
.resource-toolbar p,
.empty-resources span {
    color: #5f565a;
}

.dashboard-panel .form-control,
.dashboard-panel .form-select {
    border-color: #e2d5c4;
    border-radius: 8px;
}

.dashboard-panel .form-control:focus,
.dashboard-panel .form-select:focus {
    border-color: #821b2d;
    box-shadow: 0 0 0 .22rem rgba(130, 27, 45, .14);
}

.current-file {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f5e6d3;
}

.current-file a {
    color: #821b2d;
    font-weight: 700;
}

.mini-stat {
    height: 100%;
    padding: 18px;
}

.mini-stat strong {
    display: block;
    margin-top: 8px;
    color: #821b2d;
    font-size: 2rem;
    line-height: 1;
}

.coordinator-title {
    margin-bottom: 14px;
    color: #5f565a;
    font-size: .9rem;
    font-weight: 800;
    text-transform: uppercase;
}

.coordinator-list {
    display: grid;
    gap: 12px;
}

.coordinator-assignment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.teacher-assignment-list {
    display: grid;
    gap: 10px;
    max-height: 330px;
    overflow: auto;
    padding: 4px;
    border: 1px solid #efe3d3;
    border-radius: 8px;
    background: #fffdf8;
}

.teacher-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #efe3d3;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.teacher-option-active {
    border-color: #b58b63;
    background: #f7f1ed;
}

.teacher-option input {
    margin-top: 4px;
}

.teacher-option strong,
.teacher-option small {
    display: block;
}

.teacher-option small {
    color: #5f565a;
}

.coordinator-list div,
.empty-inline {
    padding: 14px;
    border: 1px solid #efe3d3;
    border-radius: 8px;
    background: #fffdf8;
}

.coordinator-list span,
.empty-inline {
    color: #5f565a;
}

.resource-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.resource-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.empty-resources {
    display: grid;
    gap: 6px;
    padding: 24px;
    border: 1px dashed #d8c6b2;
    border-radius: 8px;
    background: #fffdf8;
}

.dashboard-table {
    margin-bottom: 0;
}

.dashboard-table thead th {
    color: #5f565a;
    font-size: .82rem;
    letter-spacing: .04rem;
    text-transform: uppercase;
}

.dashboard-table tbody td {
    padding-top: 18px;
    padding-bottom: 18px;
}

.action-group {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-news-list {
    display: grid;
    gap: 16px;
}

.admin-news-item {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 18px;
    padding: 16px;
    border: 1px solid #efe3d3;
    border-radius: 8px;
    background: #fffdf8;
}

.admin-news-item-full {
    grid-template-columns: 1fr;
}

.admin-news-media {
    min-height: 160px;
}

.admin-news-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-news-media-thumb {
    display: grid;
    gap: 8px;
}

.admin-news-media-thumb img,
.admin-news-media-thumb video {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    background: #f5e6d3;
}

.admin-news-body h3 {
    margin-bottom: 0;
    font-size: 1.12rem;
    font-weight: 800;
}

.admin-news-body small {
    color: #5f565a;
}

.admin-news-body p:last-of-type {
    color: #5f565a;
}

.resource-view-hero {
    padding-bottom: 74px;
}

.resource-view-meta {
    display: grid;
    gap: 12px;
}

.resource-view-meta div {
    padding: 14px;
    border: 1px solid #efe3d3;
    border-radius: 8px;
    background: #fffdf8;
}

.resource-view-meta span {
    display: block;
    margin-bottom: 6px;
    color: #5f565a;
    font-weight: 700;
}

.resource-view-meta strong {
    display: block;
    color: #241b1f;
    overflow-wrap: anywhere;
}

.resource-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 540px;
    padding: 14px;
    border: 1px solid #efe3d3;
    border-radius: 8px;
    background: #fffdf8;
}

.viewer-frame {
    width: 100%;
    min-height: 68vh;
    border: 1px solid #e2d5c4;
    border-radius: 8px;
    background: #fff;
}

.viewer-image {
    max-width: 100%;
    max-height: 68vh;
    border-radius: 8px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .home-hero,
    .about-hero,
    .news-hero,
    .repository-hero,
    .contact-hero,
    .admin-access-hero {
        min-height: auto;
        padding: 54px 0;
    }

    .hero-metric-grid,
    .preview-cards,
    .identity-grid,
    .repository-benefits,
    .admin-access-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-carousel {
        padding-bottom: 46px;
    }

    .home-hero-carousel .carousel-item {
        min-height: auto;
    }

    .home-hero-carousel .carousel-control-prev,
    .home-hero-carousel .carousel-control-next {
        display: none;
    }

    .home-news-hero-card {
        min-height: 280px;
        padding: 24px;
    }

    .home-news-media {
        height: 170px;
        margin: 0 0 18px;
    }

    .platform-preview {
        grid-template-columns: 56px 1fr;
    }

    .preview-sidebar {
        padding: 16px 13px;
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .anthem-panel {
        grid-template-columns: 1fr;
    }

    .anthem-text {
        columns: 1;
    }

    .news-month-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-news-date,
    .featured-news-content,
    .empty-news {
        padding: 28px;
    }

    .admin-news-item {
        grid-template-columns: 1fr;
    }

    .admin-news-media {
        min-height: 210px;
    }

    .admin-news-media-grid {
        grid-template-columns: 1fr;
    }

    .login-panel {
        padding: 26px;
    }

    .login-help {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 26px;
    }

    .admin-login-panel {
        padding: 26px;
    }

    .dashboard-topbar,
    .resource-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .teacher-dashboard-hero {
        padding-bottom: 62px;
    }

    .dashboard-content {
        margin-top: -30px;
    }

    .dashboard-panel {
        padding: 24px;
    }

    .resource-filter-form {
        width: 100%;
    }

    .resource-filter-form > div {
        width: 100%;
    }

    .resource-filter-form .btn {
        margin-bottom: 8px;
    }

    .coordinator-assignment-grid {
        grid-template-columns: 1fr;
    }

    .resource-viewer {
        min-height: 320px;
        padding: 10px;
    }

    .viewer-frame {
        min-height: 58vh;
    }
}

@media (max-width: 991.98px) {
    .site-nav {
        align-items: stretch;
        gap: 2px;
        padding-top: 14px;
    }

    .site-nav .nav-item {
        display: block;
    }

    .site-nav .nav-link,
    .site-admin-link {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .site-admin-link {
        margin-top: 8px;
    }
}

#modalCarousel img,
#modalCarousel video {
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.folder-card {
    display: block;
    padding: 20px;
    border-radius: 15px;
    background: #f8f9fa;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.folder-card:hover {
    background: #821b2d;
    color: #fff;
    transform: translateY(-5px);
}

.folder-card.active {
    border: 2px solid #821b2d;
    background: #fff;
}

.folder-icon {
    font-size: 40px;
}

.folder-name {
    margin-top: 10px;
    font-weight: bold;
}

/* Miniatura de perfil en el dashboard */
.profile-pic-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

/* =========================================================
   NOSOTROS.PHP — VISUALES PREMIUM
========================================================= */

/* HERO */
.about-hero{
    position: relative;
    overflow: hidden;
}

.about-hero::before{
    content:'';
    position:absolute;
    width:500px;
    height:500px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    top:-180px;
    right:-120px;
    animation:floatHero 12s ease-in-out infinite;
}

.about-hero::after{
    content:'';
    position:absolute;
    width:260px;
    height:260px;
    border-radius:50%;
    background:rgba(181,139,99,.18);
    bottom:-100px;
    left:-60px;
    animation:floatHero 10s ease-in-out infinite reverse;
}

@keyframes floatHero{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-25px);
    }
}

/* TITULOS */
.about-hero h1,
.section-heading h2,
.values-band h2{
    letter-spacing:-1.5px;
}

/* PANEL IDENTIDAD */
.identity-panel{
    position:relative;
    overflow:hidden;
    backdrop-filter:blur(14px);
    transition:all .35s ease;
}

.identity-panel:hover{
    transform:translateY(-6px);
    box-shadow:0 30px 60px rgba(0,0,0,.28);
}

.identity-panel::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        135deg,
        rgba(255,255,255,.08),
        transparent
    );
}

/* GRID VALORES */
.identity-grid span{
    position:relative;
    overflow:hidden;
    transition:all .3s ease;
    cursor:pointer;
}

.identity-grid span::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        135deg,
        rgba(130,27,45,.08),
        transparent
    );
}

.identity-grid span:hover{
    transform:translateY(-4px) scale(1.03);
    background:#821b2d;
    color:#fff;
    box-shadow:0 14px 28px rgba(130,27,45,.25);
}

/* SECTION TITLES */
.section-heading{
    position:relative;
}

.section-heading::after{
    content:'';
    width:90px;
    height:5px;
    border-radius:999px;
    background:linear-gradient(to right,#821b2d,#b58b63);
    display:block;
    margin-top:18px;
}

/* MISION Y VISION */
.purpose-card{
    position:relative;
    overflow:hidden;
    transition:all .35s ease;
    border:none;
}

.purpose-card::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        135deg,
        rgba(181,139,99,.08),
        transparent
    );
}

.purpose-card:hover{
    transform:translateY(-8px);
    box-shadow:0 24px 50px rgba(0,0,0,.12);
}

.purpose-card-dark{
    background:linear-gradient(
        135deg,
        #2f4358,
        #1f2f3f
    );
}

.purpose-card-dark::before{
    background:linear-gradient(
        135deg,
        rgba(255,255,255,.06),
        transparent
    );
}

/* NUMERO */
.purpose-number{
    opacity:.18;
    font-size:4rem;
    position:absolute;
    top:20px;
    right:24px;
}

/* HIMNO - Optimizado para Legibilidad */
.values-band {
    position: relative;
    overflow: hidden;
    /* Aseguramos un fondo base oscuro para que el blanco destaque */
    background: #1a1a1a; 
    padding: 60px 0;
}

.values-band::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    /* Un degradado suave para que el círculo no sea plano */
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    top: -150px;
    right: -120px;
    z-index: 0;
}

.anthem-text {
    position: relative;
    z-index: 1;
    padding: 40px;
    border-radius: 24px;
    /* Subimos un poco la opacidad del fondo y el desenfoque */
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    /* Borde más definido en la parte superior para dar profundidad */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.anthem-text p {
    /* Blanco puro para máximo contraste */
    color: #ffffff !important; 
    line-height: 1.8;
    font-size: 1.15rem;
    font-weight: 400;
    text-wrap: balance; /* Evita viudas y huérfanas en el texto */
    margin-bottom: 0;
    /* Sombra de texto sutil para separar del fondo */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* PLAYER */
.player{
    display:flex;
    align-items:center;
    gap:14px;
    margin-top:28px;
    padding:14px 18px;
    border-radius:14px;
    background:rgba(255,255,255,.1);
    width:fit-content;
    backdrop-filter:blur(10px);
}

.player button{
    width:52px;
    height:52px;
    border:none;
    border-radius:50%;
    background:#fff;
    font-size:1.2rem;
    cursor:pointer;
    transition:all .3s ease;
}

.player button:hover{
    transform:scale(1.08);
    background:#f5e6d3;
}

/* TEAM */
.team-card{
    position:relative;
    overflow:hidden;
    border:none;
    transition:all .35s ease;
}

.team-card::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        145deg,
        rgba(130,27,45,.04),
        transparent
    );
}

.team-card:hover{
    transform:translateY(-8px);
    box-shadow:0 24px 50px rgba(0,0,0,.12);
}

.team-card span{
    width:58px;
    height:58px;
    border-radius:18px;
    font-size:1rem;
    box-shadow:0 10px 20px rgba(130,27,45,.25);
    transition:all .3s ease;
}

.team-card:hover span{
    transform:rotate(-6deg) scale(1.08);
}

.team-card h3{
    margin-bottom:16px;
}

.team-card p{
    margin-bottom:8px;
    line-height:1.6;
}

/* CTA */
.cta-panel{
    border-radius:24px !important;
    padding:50px !important;
    overflow:hidden;
}

.cta-panel::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        120deg,
        rgba(255,255,255,.05),
        transparent
    );
}

.cta-panel .btn{
    padding:12px 24px;
    border-radius:12px;
    font-weight:700;
    transition:all .3s ease;
}

.cta-panel .btn:hover{
    transform:translateY(-3px);
}

/* SCROLL ANIMATION */
.purpose-card,
.team-card,
.identity-panel,
.anthem-text,
.cta-panel{
    animation:fadeUp .7s ease both;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(25px);
    }
    to{
        opacity:1;
        transform:none;
    }
}

/* RESPONSIVE */
@media(max-width:768px){

    .about-hero{
        text-align:center;
    }

    .identity-grid{
        grid-template-columns:1fr;
    }

    .anthem-text{
        columns:1 !important;
        padding:24px;
    }

    .player{
        width:100%;
        justify-content:center;
    }

    .cta-panel{
        padding:32px !important;
    }

    .purpose-number{
        font-size:3rem;
    }
}