/*
 * ====================================================================
 * IES FUERTE DE CORTADURA - SISTEMA DE ESTILOS CORPORATIVOS MODERNOS
 * Versión 3.0 (Sitio Independiente)
 * ====================================================================
 */

:root {
    --primary: #0b3954;
    --primary-light: #165b87;
    --secondary: #0077b6;
    --accent: #c68a35;
    --accent-hover: #ad7427;
    --dark: #0f172a;
    --text-muted: #526074;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-sm: 6px;
    --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 12px 24px -4px rgba(11, 57, 84, 0.12), 0 4px 6px -2px rgba(11, 57, 84, 0.05);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--dark);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Escala tipográfica fluida */
h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
h4 { font-size: clamp(1.05rem, 2vw, 1.25rem); }

/* Enfoque visible para accesibilidad */
:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

a:focus-visible {
    outline-color: var(--accent);
}

/* Ajuste tipográfico de líneas */
.hero h1 { text-wrap: balance; }
.hero p { text-wrap: pretty; }

/* 1. BARRA SUPERIOR */
.top-bar {
    background-color: #062233;
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.top-bar-left a, .top-bar-right a {
    color: #cbd5e1;
}

.top-bar-left a:hover, .top-bar-right a:hover {
    color: #ffffff;
}

.top-bar-admin-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.top-bar-admin-link:hover {
    background: var(--accent);
}

/* 2. CABECERA Y NAVEGACIÓN */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.site-header.is-scrolled {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    height: 50px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
}

.brand-tagline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--secondary);
    background-color: #f1f5f9;
}

.nav-btn-cta {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    padding: 9px 18px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(11, 57, 84, 0.2);
}

.nav-btn-cta:hover {
    background-color: var(--primary-light) !important;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* 3. HERO BANNER */
.hero {
    position: relative;
    background: linear-gradient(rgba(11, 57, 84, 0.88), rgba(0, 31, 63, 0.94)), url('../img/portada.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 90px 20px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(198, 138, 53, 0.18) 0%, transparent 45%),
                radial-gradient(circle at 80% 70%, rgba(0, 119, 182, 0.22) 0%, transparent 50%);
    z-index: -1;
    animation: heroGlow 12s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(198, 138, 53, 0.25);
    border: 1px solid var(--accent);
    color: #ffd899;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 34px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff !important;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(198, 138, 53, 0.3);
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #ffffff;
    color: #ffffff !important;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: inline-block;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary) !important;
}

/* FRANJA DE AVISO (última noticia) */
.aviso-strip {
    background: linear-gradient(90deg, var(--accent) 0%, #d99b42 100%);
    color: #1e160b;
}

.aviso-strip a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 20px;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
}

.aviso-strip a:hover {
    color: #000000;
}

.aviso-strip .aviso-tag {
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 100px;
}

.aviso-strip .aviso-fecha {
    opacity: 0.75;
    font-size: 12px;
}

.aviso-strip .aviso-arrow {
    font-size: 16px;
}

/* 4. FRANJA DE DESTACADOS */
.features-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 24px 20px;
}

.features-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px;
}

.feature-icon {
    width: 46px;
    height: 46px;
    background: #e0f2fe;
    color: var(--secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 13px;
    color: var(--text-muted);
}

/* 5. SECCIONES Y CONTENEDORES */
.section-container {
    max-width: 1240px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 14px;
}

.section-title h2, .section-title h3 {
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    color: var(--primary);
    font-weight: 800;
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 4px;
}

.view-all-link {
    color: var(--secondary);
    font-weight: 700;
    font-size: 15px;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* 6. CUADRÍCULA DE NOTICIAS */
.news-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.news-media {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-media img {
    transform: scale(1.04);
}

.news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(11, 57, 84, 0.92);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
}

.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.news-title {
    font-size: 1.18rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.news-title a {
    color: var(--dark);
}

.news-title a:hover {
    color: var(--secondary);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
    flex-grow: 1;
}

.news-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.news-btn {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-btn:hover {
    color: var(--accent);
}

/* 7. ACCESOS RÁPIDOS */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.quick-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.quick-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.quick-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.quick-card:hover .quick-card-icon {
    transform: scale(1.18);
}

.quick-card h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 6px;
}

.quick-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* 8. PÁGINAS INTERNAS (SOBRE NOSOTROS, DEPARTAMENTOS, SECRETARÍA...) */
.page-header-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #001f3f 100%);
    color: #ffffff;
    padding: 50px 20px;
    text-align: center;
}

.page-header-banner h1 {
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 10px;
    text-wrap: balance;
}

.page-header-banner p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

.page-content-box {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 36px;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 40px;
}

.page-content-box h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.page-content-box p {
    margin-bottom: 16px;
    color: #334155;
}

.page-content-box ul {
    margin: 0 0 20px 24px;
    color: #334155;
}

.page-content-box li {
    margin-bottom: 8px;
}

/* Departamentos didácticos y Oferta Educativa */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0 32px 0;
}

.dept-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    perspective: 1400px;
}

.dept-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

/* Contenedor que rota: apila las dos caras en la misma celda */
.dept-card-inner {
    display: grid;
    flex: 1;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.dept-card.is-flipped .dept-card-inner {
    transform: rotateY(180deg);
}

.dept-face {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.dept-face--back {
    transform: rotateY(180deg);
    background: #ffffff;
}

/* Jefatura en la cara frontal */
.dept-jefe {
    margin: 4px 0 0;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.4;
}

/* Afordancia de que la tarjeta se puede voltear */
.dept-flip-hint {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dept-flip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e0f2fe;
    font-size: 0.85rem;
    transition: transform 0.4s ease;
}

.dept-card:hover .dept-flip-icon {
    transform: rotate(180deg);
}

/* Cara trasera: listado del profesorado */
.dept-back-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.dept-back-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.dept-back-head h4 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dept-back-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.dept-grupo-nombre {
    margin: 0 0 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dept-grupo-jefe {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

.dept-jefe-tag {
    display: inline-block;
    padding: 1px 7px;
    margin-right: 5px;
    border-radius: 4px;
    background: #fdf3e3;
    color: var(--accent);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: 1px;
}

.dept-grupo-nombres {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dept-grupo-nombres li {
    position: relative;
    padding-left: 15px;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.45;
    margin: 0;
}

.dept-grupo-nombres li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary);
}

/* Botón invisible que cubre la tarjeta y la hace accesible por teclado */
.dept-flip-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: transparent;
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.dept-flip-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Respetar usuarios con movimiento reducido: intercambio sin rotar */
@media (prefers-reduced-motion: reduce) {
    .dept-card-inner {
        transform: none !important;
    }

    .dept-face--front,
    .dept-face--back {
        transition: opacity 0.01ms !important;
    }

    .dept-face--front {
        opacity: 1;
    }

    .dept-face--back {
        transform: none;
        opacity: 0;
        visibility: hidden;
    }

    .dept-card.is-flipped .dept-face--front {
        opacity: 0;
        visibility: hidden;
    }

    .dept-card.is-flipped .dept-face--back {
        opacity: 1;
        visibility: visible;
    }
}

.dept-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.dept-icon {
    font-size: 24px;
    line-height: 1;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.dept-card h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

.dept-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    flex-grow: 1;
}

.dept-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.dept-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.dept-badge-eso {
    background: #e0f2fe;
    color: #0369a1;
}

.dept-badge-bach {
    background: #fef3c7;
    color: #92400e;
}

.dept-badge-fp {
    background: #dcfce7;
    color: #166534;
}

.dept-badge-fpb {
    background: #ede9fe;
    color: #6b21a8;
}

.oferta-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0 32px 0;
}

.oferta-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-subtle);
}

.oferta-card.oferta-fpb {
    border-top-color: #8b5cf6;
}

.oferta-card.oferta-fp {
    border-top-color: #16a34a;
}

.oferta-card.oferta-bach {
    border-top-color: var(--accent);
}

.oferta-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oferta-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* 9. PIE DE PÁGINA */
.site-footer {
    background-color: var(--primary);
    color: #cbd5e1;
    padding: 60px 20px 24px 20px;
    margin-top: 70px;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 36px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 17px;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-meta {
    font-size: 13px;
    margin-top: 12px;
    color: #94a3b8;
}

.footer-contact, .footer-links {
    list-style: none;
}

.footer-contact li, .footer-links li {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-links a, .footer-contact a {
    color: #cbd5e1;
}

.footer-links a:hover, .footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-social-icon {
    vertical-align: -2px;
    margin-right: 5px;
}

/* Banda de logos institucionales (siluetas claras sobre el pie oscuro) */
.footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 34px;
    margin-top: 26px;
}

.footer-logos img {
    height: 108px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    border-radius: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    opacity: 0.95;
    transition: var(--transition);
}

.footer-logos a {
    display: inline-block;
    line-height: 0;
}

.footer-logos a:hover img {
    transform: none;
    opacity: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.footer-bottom {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
}

.footer-legal a {
    color: #94a3b8;
    margin: 0 4px;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* 10. RESPONSIVE MOBILE */
@media (max-width: 860px) {
    .top-bar {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 16px 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--border);
        gap: 8px;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        width: 100%;
        padding: 10px 14px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }
}

/* ============================================================
   SECCIÓN DOCUMENTOS DE SECRETARÍA
   ============================================================ */

.sec-docs-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 60%, #fafaf7 100%);
    padding: 64px 0 72px;
    border-top: 1px solid var(--border);
}

.sec-docs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sec-docs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.sec-docs-title {
    font-size: 1.85rem;
    color: var(--primary);
    margin: 0 0 6px 0;
    letter-spacing: -0.03em;
}

.sec-docs-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

/* --- Filtros por categoría --- */
.sec-docs-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.sec-filter-btn {
    background: #ffffff;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.sec-filter-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: #f0f7ff;
}

.sec-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 57, 84, 0.22);
}

/* --- Grid de tarjetas --- */
.sec-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

/* --- Tarjeta de documento --- */
.sec-doc-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}

.sec-doc-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: var(--transition);
}

.sec-doc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #c7dcee;
}

.sec-doc-card:hover::before {
    opacity: 1;
}

.sec-doc-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.sec-doc-body {
    flex: 1;
    min-width: 0;
}

/* --- Badges de categoría --- */
.sec-doc-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 100px;
    margin-bottom: 7px;
}

.sec-doc-badge--matricula      { background: #dbeafe; color: #1d4ed8; }
.sec-doc-badge--becas          { background: #dcfce7; color: #166534; }
.sec-doc-badge--certificados   { background: #fef3c7; color: #92400e; }
.sec-doc-badge--autorizaciones { background: #fce7f3; color: #9d174d; }
.sec-doc-badge--general        { background: #f1f5f9; color: #475569; }

.sec-doc-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 5px 0;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.sec-doc-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0 0 8px 0;
    line-height: 1.45;
}

.sec-doc-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.sec-doc-meta span::before {
    content: '·';
    margin-right: 10px;
}

.sec-doc-meta span:first-child::before {
    content: '';
    margin-right: 0;
}

/* --- Botón Descargar --- */
.sec-doc-download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
    background: var(--primary);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.sec-doc-download:hover {
    background: var(--primary-light);
    transform: scale(1.04);
    color: #ffffff !important;
}

/* --- Estado vacío --- */
.sec-docs-empty {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 15px;
    font-style: italic;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.sec-docs-empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.sec-docs-empty-state span {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 12px;
}

.sec-docs-empty-state p {
    font-size: 15px;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .sec-docs-grid {
        grid-template-columns: 1fr;
    }

    .sec-doc-card {
        flex-wrap: wrap;
    }

    .sec-doc-download {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .sec-docs-title {
        font-size: 1.4rem;
    }
}

/* Botón Volver Arriba */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(11, 57, 84, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 999;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--primary-dark, #0a3a57);
}

/* Respetar usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   ÍNDICE LATERAL DE SECCIONES (páginas largas)
   ============================================================ */

.layout-indice {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    max-width: 1240px;
    margin: 50px auto;
    padding: 0 20px;
}

.indice-lateral {
    position: sticky;
    top: calc(var(--header-h, 76px) + 20px);
    max-height: calc(100vh - var(--header-h, 76px) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 12px 14px;
    box-shadow: var(--shadow-subtle);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.indice-lateral::-webkit-scrollbar {
    width: 6px;
}

.indice-lateral::-webkit-scrollbar-track {
    background: transparent;
}

.indice-lateral::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.indice-lateral::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.indice-titulo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    padding: 0 0 13px 11px;
    border-bottom: 1px solid var(--border);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--primary);
}

.indice-titulo::before {
    content: "";
    flex: none;
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--secondary), var(--primary-light));
}

.indice-lista {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Riel vertical que une los puntos de la lista */
.indice-lista::before {
    content: "";
    position: absolute;
    left: 14.5px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: var(--border);
}

.indice-enlace {
    position: relative;
    display: block;
    padding: 9px 12px 9px 28px;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.indice-enlace::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Barra de estado que crece a la izquierda */
.indice-enlace::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 22px;
    margin-top: -11px;
    border-radius: 0 3px 3px 0;
    background: var(--secondary);
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.indice-enlace:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.indice-enlace:hover::before {
    background: var(--secondary);
}

.indice-enlace:hover::after {
    transform: scaleY(0.6);
}

.indice-enlace.is-activo {
    background: #e7f2fa;
    color: var(--primary);
    font-weight: 600;
}

.indice-enlace.is-activo::before {
    background: var(--secondary);
    transform: scale(1.2);
}

.indice-enlace.is-activo::after {
    transform: scaleY(1);
}

.indice-toggle {
    display: none;
}

.indice-arriba {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.indice-arriba::before {
    content: "\2191";
    font-size: 0.95em;
    line-height: 1;
    color: var(--secondary);
}

.indice-arriba:hover {
    background: #eef2f7;
    border-color: #cbd5e1;
    color: var(--primary);
}

/* Al saltar a un encabezado no debe quedar tapado por el header fijo */
.indice-contenido h2[id] {
    scroll-margin-top: calc(var(--header-h, 76px) + 20px);
}

/* La primera section-container ya no necesita su margen superior */
.indice-contenido > .section-container:first-child {
    margin-top: 0;
}

/* --- Índice en pantallas medianas y pequeñas --- */

@media (max-width: 980px) {
    .layout-indice {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .indice-lateral {
        position: static;
        max-height: none;
        overflow: visible;
        margin-bottom: 24px;
    }

    .indice-titulo {
        display: none;
    }

    .indice-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 12px 14px;
        background: #f1f5f9;
        border: 1px solid var(--border);
        border-radius: 10px;
        font: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--primary);
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .indice-toggle:hover {
        background: #e8eef5;
    }

    .indice-toggle-conteo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: var(--secondary);
        color: #ffffff;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .indice-toggle-flecha {
        margin-left: auto;
        width: 9px;
        height: 9px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transition: transform 0.25s ease;
    }

    .indice-toggle[aria-expanded="true"] {
        background: #e8eef5;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .indice-toggle[aria-expanded="true"] .indice-toggle-flecha {
        transform: rotate(225deg) translateY(-2px);
    }

    /* Plegada por defecto; el JS añade la clase esta-visible */
    .indice-lista {
        display: none;
        margin-top: 8px;
        padding: 8px 6px;
        background: #f8fafc;
        border: 1px solid var(--border);
        border-top: none;
        border-radius: 0 0 10px 10px;
    }

    .indice-lista.esta-visible {
        display: flex;
        max-height: 50vh;
        overflow-y: auto;
    }

    .indice-lista.esta-visible::before {
        top: 20px;
        bottom: 8px;
    }

    .indice-arriba {
        display: none;
    }
}

/* ============================================================
   DATOS DEL CURSO: OPTATIVAS, PLANES, ROSTER Y NORMAS
   ============================================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.subtitulo-bloque {
    margin: 28px 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Optativas --- */

.optivas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 8px;
}

.optivas-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.optivas-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.optivas-nivel {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    gap: 3px;
    /* Reserva siempre las dos lineas (nivel + modalidad) para que las
       listas de materias empiecen a la misma altura en todas las tarjetas */
    min-height: calc(1.05rem * 1.3 + 3px + 0.8rem * 1.45);
}

.optivas-subnivel {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.45;
}

.optivas-materias {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.optivas-materias li {
    /* Columnas fijas: viñeta | nombre | nota, para que los nombres
       queden alineados verticalmente sea cual sea la nota */
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 9px;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
}

.optivas-materias li::before {
    content: "▸";
    grid-column: 1;
    color: var(--secondary);
    font-size: 0.8rem;
}

.optivas-materia-nombre {
    grid-column: 2;
    min-width: 0;
}

.optivas-materias .opt-chip {
    grid-column: 3;
    justify-self: end;
}

.opt-chip {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: #e0f2fe;
    color: var(--primary-light);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* --- Tablas de datos --- */

.tabla-envoltorio {
    margin: 0 0 8px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    box-shadow: var(--shadow-subtle);
}

.tabla-datos {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 460px;
}

.tabla-datos thead th {
    background: var(--primary);
    color: #ffffff;
    text-align: left;
    padding: 13px 18px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tabla-datos tbody th,
.tabla-datos tbody td {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

.tabla-datos tbody th {
    font-weight: 600;
    color: var(--primary);
}

.tabla-datos tbody td {
    color: #334155;
}

.tabla-datos tbody tr:nth-child(even) {
    background: #f8fafc;
}

.tabla-datos tbody tr:hover {
    background: #f0f7ff;
}

/* --- Coordinaciones del centro --- */

.lista-coordinaciones {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.lista-coordinaciones li {
    margin: 0;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.lista-coordinaciones strong {
    color: var(--primary);
}

/* --- Relación de profesorado --- */

.roster-departamentos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

/* --- Planes y programas --- */

.plan-bloque {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-subtle);
}

.plan-cabecera {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.plan-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.05rem;
    color: #ffffff;
}

.plan-badge--a { background: var(--secondary); }
.plan-badge--b { background: var(--accent); }
.plan-badge--c { background: var(--primary); }

.plan-titulo {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.plan-desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.plan-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 18px;
}

.plan-lista li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
}

.plan-lista li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Aviso de los programas aun sujetos a convocatoria */
.plan-nota {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 0;
    padding: 14px 18px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 4px solid var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #334155;
}

.plan-nota-icono {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-light);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

/* --- Novedades y normas --- */

.novedades-grid,
.normas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 8px;
}

.novedad-card,
.norma-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    box-shadow: var(--shadow-subtle);
}

.norma-card {
    border-top-color: var(--secondary);
}

.novedad-titulo,
.norma-titulo {
    margin: 0 0 9px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.novedad-desc,
.norma-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.65;
}

/* --- Enlace sobre tarjeta --- */

.quick-card-enlace {
    display: block;
    text-decoration: none;
    color: inherit;
}

.quick-card-enlace:hover {
    text-decoration: none;
}

/* --- Adaptación a pantallas pequeñas --- */

@media (max-width: 640px) {
    .optivas-grid,
    .novedades-grid,
    .normas-grid,
    .plan-lista {
        grid-template-columns: 1fr;
    }

    /* La nota pasa debajo del nombre en pantallas estrechas */
    .optivas-materias li {
        grid-template-columns: 12px minmax(0, 1fr);
        row-gap: 5px;
    }

    .optivas-materias .opt-chip {
        grid-column: 2;
        justify-self: start;
    }

    .tabla-datos thead th,
    .tabla-datos tbody th,
    .tabla-datos tbody td {
        padding: 10px 14px;
    }

    .subtitulo-bloque {
        font-size: 0.95rem;
    }
}

/* Impresión: contenido limpio para impresos de secretaría */
@media print {
    .top-bar,
    .site-header,
    .site-footer,
    .to-top,
    .hero,
    .features-strip,
    .sec-doc-download,
    .btn-primary,
    .btn-outline,
    .view-all-link,
    .sec-docs-filters,
    .dept-flip-btn,
    .dept-flip-hint,
    .indice-lateral,
    .indice-toggle {
        display: none !important;
    }

    /* Sin barra lateral, el contenido ocupa el ancho completo */
    .layout-indice {
        display: block !important;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    /* Al imprimir se muestran las dos caras del departamento */
    .dept-card {
        perspective: none;
        break-inside: avoid;
    }

    .dept-card-inner {
        display: block !important;
        transform: none !important;
    }

    .dept-face--back {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #cbd5e1;
    }

    .dept-back-body {
        overflow: visible;
    }

    body {
        background: #ffffff;
        color: #000000;
        font-size: 12pt;
    }

    .section-container,
    .page-content-box {
        max-width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    a {
        color: #000000;
    }
}
