/* ========================================
I.E. TECNOCIENCIA REGIÓN CARIBE — 30 AÑOS
Tema institucional Azul + Rojo
   ======================================== */

:root {
    --tc-blue: #0F4C81;
    --tc-blue-deep: #0a3a64;
    --tc-red: #E63946;
    --tc-red-deep: #c42d3a;
    --tc-yellow: #FFD166;
    --tc-bg: #F8F9FB;
    --tc-text: #111827;
    --tc-muted: #4B5563;
    --tc-border: #E5E7EB;
    --tc-radius: 8px;

    /* Esto le dice a Bootstrap "usa nuestro azul/rojo institucional como su
       propio azul/rojo". Así, CUALQUIER utilidad de Bootstrap que dependa de
       estos colores (bg-primary, text-primary, bg-opacity-10, btn-outline-
       primary, alert-primary, etc.) automáticamente sale bien, incluyendo
       las variantes con transparencia -- que es justo lo que estaba roto
       antes (ver más abajo, se quitaron los "!important" que bloqueaban
       la transparencia). */
    --bs-primary: #0F4C81;
    --bs-primary-rgb: 15, 76, 129;
    --bs-danger: #E63946;
    --bs-danger-rgb: 230, 57, 70;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--tc-bg);
    color: var(--tc-text);
    line-height: 1.55;
}

/* === Tipografía === */
.tc-h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -0.02em; line-height: 1.05; }
.tc-h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: clamp(1.6rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.1; }
.tc-overline { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; font-weight: 700; color: #6B7280; }

/* Variante de .tc-overline para columnas angostas (3 en una fila) con
   palabras largas como "Matriculados" o "Reprobados": el espaciado ancho
   de .tc-overline hace que esas palabras se salgan de su columna y se
   encimen con la de al lado. Esta versión usa el mismo estilo pero con
   mucho menos espaciado, para que quepan bien. */
.tc-mini-label { text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.68rem; font-weight: 700; color: #6B7280; }
.tc-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.85rem; border-radius: 9999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; color: white; text-transform: uppercase; }
.text-white-75 { color: rgba(255,255,255,0.85) !important; }
.bg-white-10 { background: rgba(255,255,255,0.1) !important; }

/* === Colores institucionales ===
   Antes aquí se forzaba el color con !important, lo cual bloqueaba las
   utilidades de transparencia de Bootstrap (bg-opacity-10 y similares):
   como el texto y el fondo terminaban siendo exactamente el mismo azul o
   rojo sólido, las "píldoras suaves" (bg-primary bg-opacity-10 text-primary)
   se veían como manchas de color sin texto legible adentro. Ya no hace
   falta esta regla: redefinimos --bs-primary y --bs-danger en el :root de
   arriba, así que Bootstrap ya usa nuestros colores por su cuenta, con
   transparencia funcionando correctamente. */

/* === Botones === */
.btn-tc-primary { background: var(--tc-blue); color: #fff; border: none; padding: 0.55rem 1.1rem; border-radius: 6px; font-weight: 600; transition: all .2s; }
.btn-tc-primary:hover { background: var(--tc-blue-deep); color: #fff; transform: translateY(-1px); }
.btn-tc-secondary { background: var(--tc-red); color: #fff; border: none; padding: 0.55rem 1.1rem; border-radius: 6px; font-weight: 600; transition: all .2s; }
.btn-tc-secondary:hover { background: var(--tc-red-deep); color: #fff; transform: translateY(-1px); }

/* === Header === */
.tc-header { background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--tc-border); }
.tc-logo { width: 36px; height: 36px; border-radius: 6px; background: var(--tc-blue); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.tc-brand-title { color: var(--tc-blue); font-family: 'Fraunces', serif; font-size: 0.95rem; line-height: 1; }
.tc-brand-sub { font-size: 0.62rem; letter-spacing: 0.18em; color: var(--tc-red); font-weight: 700; text-transform: uppercase; margin-top: 2px; }
.navbar-nav .nav-link { font-size: 0.9rem; color: #374151; padding: 0.4rem 0.6rem !important; }
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover { color: var(--tc-blue); font-weight: 600; }

/* === Hero === */
/* Antes tenía una foto de Pexels de fondo que el navegador descargaba
   siempre, aunque quedara completamente tapada por las fotos de portada
   que suben desde el panel del Rector. Se reemplaza por un degradado con
   los colores institucionales (se ve solo si todavía no has subido
   ninguna foto de portada; si ya subiste, esto ni se nota). */
.tc-hero { position: relative; min-height: 560px; background: linear-gradient(135deg, var(--tc-blue) 0%, var(--tc-blue-deep) 100%); background-size: cover; background-position: center; }
.tc-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,76,129,0.88) 0%, rgba(15,76,129,0.7) 50%, rgba(15,76,129,0.35) 100%); }
.tc-hero-title { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 0.98; letter-spacing: -0.02em; }
.tc-hero-title em { font-style: italic; font-weight: 800; }

/* === Stat cards en hero === */
.tc-stat-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); border-radius: var(--tc-radius); padding: 1.25rem; color: #fff; }
.tc-stat-num { font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.85rem; line-height: 1; margin-bottom: 0.25rem; }
.tc-stat-card .tc-overline { color: rgba(255,255,255,0.85); font-size: 0.65rem; }

/* === Ribbon === */
.tc-ribbon { background: var(--tc-blue); border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); overflow: hidden; padding: 0.7rem 0; }
.tc-ribbon-track { display: flex; gap: 0; white-space: nowrap; animation: tc-marquee 35s linear infinite; }
.tc-ribbon-item { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0 1.5rem; color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; }
@keyframes tc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* === Cards === */
.tc-card-mision { padding: 2rem; border-radius: var(--tc-radius); border: 2px solid var(--tc-blue); background: #fff; }
.tc-card-vision { padding: 2rem; border-radius: var(--tc-radius); border: 2px solid var(--tc-red); background: #fff; }
.tc-card-valores { padding: 2rem; border-radius: var(--tc-radius); background: var(--tc-blue); position: relative; overflow: hidden; }
.tc-icon-box { width: 38px; height: 38px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 1.05rem; }

/* === Ciclos === */
.tc-ciclo-card { padding: 1.6rem; border-radius: var(--tc-radius); border: 1px solid var(--tc-border); background: #fff; transition: all .2s; position: relative; overflow: hidden; }
.tc-ciclo-card:hover { border-color: var(--tc-blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,76,129,0.08); }
.tc-ciclo-num { font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.85rem; color: var(--tc-blue); margin: 0.3rem 0 0.1rem; }
.tc-badge-amarillo { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.2rem; background: rgba(255,209,102,0.2); border: 1px solid var(--tc-yellow); border-radius: 6px; font-size: 0.85rem; color: var(--tc-blue); font-weight: 600; }

/* === Tabla === */
.tc-tabla-ciclos { border-radius: var(--tc-radius); overflow: hidden; border: 1px solid var(--tc-border); background: #fff; }
.tc-tabla-ciclos thead { background: var(--tc-blue); color: #fff; }
.tc-tabla-ciclos thead th { font-size: 0.85rem; font-weight: 600; padding: 0.85rem 1rem; border: none; }
.tc-tabla-ciclos tbody td { padding: 0.85rem 1rem; }
.tc-tabla-ciclos tbody tr:nth-child(even) { background: #F9FAFB; }

/* === Requisitos === */
.tc-requisito { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1px solid var(--tc-border); border-radius: 6px; background: #fff; margin-bottom: 0.5rem; font-size: 0.92rem; }

/* === CTA card === */
.tc-cta-card { padding: 2rem; border-radius: var(--tc-radius); background: var(--tc-blue); color: #fff; position: relative; overflow: hidden; }
.tc-cta-card::after { content: ''; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(230,57,70,0.3); filter: blur(60px); }
.tc-cta-card * { position: relative; z-index: 1; }
.tc-info-pill { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 0.7rem 0.9rem; }

/* === Mapa / contacto === */
.tc-mapa { width: 100%; min-height: 360px; border: 0; border-radius: var(--tc-radius); }
.tc-info-mini { padding: 1rem; border: 1px solid var(--tc-border); border-radius: 6px; background: #fff; font-size: 0.9rem; }
.tc-contacto-item { display: flex; gap: 1rem; padding: 1rem; border: 1px solid var(--tc-border); border-radius: 6px; margin-bottom: 0.75rem; background: #fff; align-items: flex-start; }
.tc-whatsapp-card { display: block; padding: 1.25rem; background: #25D366; color: #fff; text-decoration: none; border-radius: 6px; transition: opacity .2s; }
.tc-whatsapp-card:hover { color: #fff; opacity: 0.92; }

/* === Forms === */
.tc-form-card { padding: 1.5rem; border: 1px solid var(--tc-border); border-radius: var(--tc-radius); background: #fff; }
.form-control, .form-select { border-radius: 6px; padding: 0.55rem 0.75rem; }
.form-label { margin-bottom: 0.35rem; }

/* === Pago cards === */
.tc-pago-card { display: block; cursor: pointer; padding: 1.25rem; border: 1px solid var(--tc-border); border-radius: 6px; background: #fff; transition: all .2s; text-align: left; }
.tc-pago-card:hover { transform: translateY(-2px); border-color: var(--tc-blue); }
.tc-pago-card input[type="radio"] { display: none; }
.tc-pago-card input[type="radio"]:checked ~ * { color: var(--tc-blue); }
.tc-pago-card:has(input:checked) { border-color: var(--tc-blue); box-shadow: 0 0 0 3px rgba(15,76,129,0.15); }
.tc-pago-card img { max-height: 36px; display: block; margin-bottom: 0.6rem; }
.tc-pago-seguro { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem; background: rgba(15,76,129,0.08); color: var(--tc-blue); border-radius: 6px; font-size: 0.78rem; font-weight: 600; }

/* === Login === */
.tc-login-side {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 0),
        linear-gradient(135deg, var(--tc-blue) 0%, var(--tc-blue-deep) 100%);
    background-size: 26px 26px, cover;
    position: relative;
    overflow: hidden;
}
.tc-login-side::after { content: ''; position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(230,57,70,0.3); filter: blur(80px); }
.tc-login-side > * { position: relative; z-index: 1; }
.min-vh-75 { min-height: 75vh; }

/* Ícono grande de marca de agua en el panel de login (decorativo, muy tenue) */
.tc-login-watermark { position: absolute; bottom: -55px; right: -35px; font-size: 17rem; line-height: 1; color: rgba(255,255,255,.05); z-index: 0; }

/* Punto destacado con insignia circular (reemplaza el checklist plano) */
.tc-feature-item { display: flex; align-items: center; gap: 0.85rem; }
.tc-feature-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; font-size: 0.95rem; color: var(--tc-yellow); flex-shrink: 0; }

/* Franja de cifras, estilo editorial (no son tarjetas cuadradas) */
.tc-stat-strip { display: flex; align-items: center; gap: 1.75rem; }
.tc-stat-strip-num { font-family: 'Fraunces', serif; font-weight: 900; font-size: 2.5rem; line-height: 1; color: #fff; }
.tc-stat-strip-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,.6); margin-top: 0.35rem; }
.tc-stat-strip-divider { width: 1px; height: 46px; background: rgba(255,255,255,.2); }

/* === Admin === */
.tc-stat-card-admin { padding: 1.5rem; border: 1px solid var(--tc-border); border-radius: var(--tc-radius); background: #fff; }

/* === Historia / valores === */
.tc-historia-anio { font-family: 'Fraunces', serif; font-weight: 900; font-size: 2rem; color: var(--tc-red); min-width: 80px; }
.tc-historia-item { padding: 1rem 1.2rem; border: 1px solid var(--tc-border); border-radius: 6px; background: #fff; }
.tc-valor-card { padding: 1.2rem; border-left: 4px solid var(--tc-blue); background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.04); border-radius: 0 6px 6px 0; margin-bottom: 0.75rem; }
.tc-jornada-card { padding: 1.5rem; background: var(--tc-blue); border-radius: var(--tc-radius); }

/* === Footer === */
.tc-footer { background: var(--tc-blue); color: #fff; margin-top: 2rem; position: relative; overflow: hidden; }
.tc-footer::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: rgba(230,57,70,0.15); filter: blur(80px); }
.tc-flink { color: rgba(255,255,255,0.8); text-decoration: none; transition: color .2s; }
.tc-flink:hover { color: var(--tc-red); }

/* === WhatsApp FAB === */
.tc-whatsapp-fab { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.2rem; background: #25D366; color: #fff; border-radius: 9999px; text-decoration: none; box-shadow: 0 8px 24px rgba(37,211,102,0.4); font-weight: 600; transition: transform .2s; }
.tc-whatsapp-fab:hover { transform: translateY(-3px); color: #fff; }
.tc-whatsapp-fab i { font-size: 1.25rem; }

/* === Responsive === */
@media (max-width: 768px) {
    .tc-hero { min-height: 480px; padding-bottom: 1rem; }
    .tc-hero-title { font-size: 2.5rem; }
    .tc-card-valores { padding: 1.5rem; }
}
/* ── MISIÓN Y VISIÓN ── */
.tc-mv-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 18px;
    padding: 2rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.tc-mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.tc-mv-mision::before { background: var(--bs-primary); }
.tc-mv-vision::before { background: var(--bs-danger); }

.tc-mv-texto {
    color: #52606d;
    font-size: .95rem;
    line-height: 1.85;
    text-align: justify;
    hyphens: auto;
    margin-bottom: .75rem;
}

.tc-mv-texto.colapsado {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-mv-toggle {
    background: none;
    border: 0;
    padding: 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--bs-primary);
}

.tc-mv-toggle:hover { text-decoration: underline; }

/* ── CUADRO AZUL DE VALORES ── */
.tc-valores-box {
    background: linear-gradient(135deg, var(--bs-primary), #0b3a63);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    color: #fff;
}

.tc-valor-item {
    padding: 0 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, .15);
    height: 100%;
}

.tc-valor-item:last-child { border-right: 0; }

.tc-valor-item .tc-icon-box {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    margin-bottom: 1rem;
}

.tc-valor-item h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .4rem;
}

.tc-valor-item p {
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .tc-valor-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .15);
        padding: 1.25rem 0;
    }
    .tc-valor-item:last-child { border-bottom: 0; }

    /* ── CARRUSEL DE PORTADA ── */
.tc-hero { position: relative; overflow: hidden; }

.tc-hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tc-hero-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}

.tc-hero-slides img.activa { opacity: 1; }

.tc-hero .tc-hero-overlay { z-index: 1; }

.tc-hero > .container {
    position: relative;
    z-index: 2;
}
/* ── LOGO DEL MENÚ ── */
.tc-brand-logo {
    display: block;
    height: 46px;
    overflow: hidden;     /* recorta la línea de la resolución */
    padding: 0;
    margin-right: 1rem;
}

.tc-brand-logo img {
    height: 60px;
    width: auto;
    display: block;
}

@media (max-width: 991.98px) {
    .tc-brand-logo { height: 38px; }
    .tc-brand-logo img { height: 50px; }
}
}
/* ============================================
   RESPONSIVE GLOBAL — adaptación a móvil/tablet
   ============================================ */

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── TABLETS (≤ 991px) ─── */
@media (max-width: 991.98px) {
    .tc-hero {
        min-height: auto;
        padding: 2.5rem 0;
    }
    .tc-hero-title {
        font-size: clamp(2rem, 7vw, 3.2rem) !important;
    }
    .tc-hero .col-lg-4 {
        margin-top: 2rem;
    }
    .tc-mv-card {
        padding: 1.5rem;
    }
}

/* ─── CELULARES (≤ 767px) ─── */
@media (max-width: 767.98px) {

    .navbar-brand img {
        height: 40px !important;
    }

    .tc-h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
    .tc-h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
    .tc-hero-title { font-size: clamp(1.8rem, 9vw, 2.6rem) !important; }

    section, .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .tc-stat-card {
        padding: 0.9rem;
    }
    .tc-stat-num { font-size: 1.4rem; }

    .tc-hero .d-flex.flex-wrap .btn,
    .tc-cta-card .btn {
        width: 100%;
    }
    .tc-hero .d-flex.flex-wrap {
        flex-direction: column;
    }

    .tc-ciclo-card { padding: 1.3rem; }

    .tc-valores-box { padding: 1.5rem; }

    .tc-tabla-ciclos {
        font-size: 0.82rem;
    }
    .tc-tabla-ciclos thead th,
    .tc-tabla-ciclos tbody td {
        padding: 0.6rem 0.7rem;
        white-space: nowrap;
    }

    .tc-mapa { min-height: 280px; }

    .tc-footer .row > div {
        margin-bottom: 1rem;
    }

    .tc-whatsapp-fab {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        bottom: 1rem;
        right: 1rem;
    }

    .tc-form-card { padding: 1.2rem; }

    .min-vh-75 { min-height: auto; }

    .table-responsive table {
        font-size: 0.82rem;
    }
    .table-responsive .btn-sm {
        padding: 0.25rem 0.4rem;
    }
}

/* ─── CELULARES PEQUEÑOS (≤ 400px) ─── */
@media (max-width: 400px) {
    .tc-hero-title { font-size: 1.7rem !important; }
    .tc-pill { font-size: 0.6rem; padding: 0.3rem 0.7rem; }
    .tc-hero .col-6 {
        width: 100%;
    }
}

/* ── FRANJA DE CONFIANZA ── */
.tc-franja-legal {
    background: rgba(15, 76, 129, 0.06);
    border-top: 1px solid rgba(15, 76, 129, 0.12);
    border-bottom: 1px solid rgba(15, 76, 129, 0.12);
    padding: 0.9rem 0;
}

.tc-franja-legal .bi {
    color: var(--tc-blue);
    font-size: 1.1rem;
}

/* ── SECCIÓN DE LEGALIDAD ── */
.tc-legal-section {
    background: #fff;
}

.tc-legal-card {
    border: 1px solid var(--tc-border);
    border-radius: 14px;
    padding: 1.3rem 1.4rem;
    height: 100%;
    background: #fff;
    transition: box-shadow 0.2s;
}

.tc-legal-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tc-legal-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(15, 76, 129, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-blue);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.tc-legal-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tc-red);
    margin-bottom: 0.3rem;
}

.tc-legal-valor {
    font-weight: 600;
    color: var(--tc-blue);
    line-height: 1.35;
    font-size: 0.95rem;
}
/* ── FAQ (Preguntas frecuentes en Nosotros) ── */
.tc-faq .accordion-item { border-radius: 14px !important; overflow: hidden; }
.tc-faq .accordion-button { padding: 1.1rem 1.3rem; font-size: 1.02rem; }
.tc-faq .accordion-button:not(.collapsed) { color: var(--tc-blue); background: rgba(15,76,129,0.04); }
.tc-faq .accordion-button:focus { box-shadow: none; border-color: transparent; }
.tc-faq .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230F4C81'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
}
.tc-faq .accordion-body { padding: 0 1.3rem 1.3rem; line-height: 1.7; }
/* === Captcha de letras (login) === */
.tc-captcha-img {
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    display: block;
    background: #f6f8fb;
}
.tc-captcha-refresh {
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    background: #fff;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--tc-blue);
    transition: all .15s;
    flex-shrink: 0;
}
.tc-captcha-refresh:hover { background: var(--tc-blue); color: #fff; border-color: var(--tc-blue); }
/* === Avatar circular con inicial (menú de cuenta) === */
.tc-avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tc-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* === Sidebar del panel del Rector (admin) === */
.tc-admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    background: var(--tc-blue-deep);
    z-index: 1040;
    overflow-y: auto;
    transition: transform .25s ease;
}
.tc-sidebar-brand {
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.tc-sidebar-brand img { height: 34px; width: auto; }
.tc-sidebar-brand span { color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .02em; }
.tc-sidebar-nav { list-style: none; margin: 0; padding: 1.5rem .85rem .85rem; }
.tc-sidebar-nav .nav-link {
    color: rgba(255,255,255,.72);
    padding: .62rem .85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .9rem;
    margin-bottom: .15rem;
    transition: background .15s, color .15s;
}
.tc-sidebar-nav .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.tc-sidebar-nav .nav-link.active { background: #fff; color: var(--tc-blue-deep); font-weight: 700; }
.tc-sidebar-nav .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; flex-shrink: 0; }

.tc-admin-content { min-height: 100vh; display: flex; flex-direction: column; }

@media (min-width: 992px) {
    .tc-admin-content { margin-left: 240px; }
}
@media (max-width: 991.98px) {
    .tc-admin-sidebar { transform: translateX(-100%); }
    .tc-admin-sidebar.is-open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.25); }
    .tc-sidebar-backdrop {
        position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1035;
        display: none;
    }
    .tc-sidebar-backdrop.is-open { display: block; }
}

/* === Footer simple (adentro de los 3 portales) === */
.tc-footer-simple {
    background: var(--tc-blue-deep);
    color: rgba(255,255,255,.65);
    font-size: .82rem;
}

/* === Dashboard del admin: rediseño con datos reales === */
.tc-fecha-pill {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 999px;
    padding: .55rem 1.1rem;
    font-size: .85rem;
    color: var(--tc-blue);
    font-weight: 600;
}

/* Tarjetas KPI de colores (fila principal) */
.tc-kpi-card {
    border-radius: var(--tc-radius);
    padding: 1.4rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 148px;
}
.tc-kpi-blue   { background: linear-gradient(135deg, var(--tc-blue) 0%, var(--tc-blue-deep) 100%); }
.tc-kpi-green  { background: linear-gradient(135deg, #2a9d5c 0%, #1f7a46 100%); }
.tc-kpi-yellow { background: linear-gradient(135deg, #e8a93a 0%, #c98a1f 100%); }
.tc-kpi-dark   { background: linear-gradient(135deg, #2b2f36 0%, #14161a 100%); }
.tc-kpi-icon { font-size: 1.4rem; opacity: .9; }
.tc-kpi-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; margin-top: .6rem; }
.tc-kpi-num { font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.9rem; margin: .15rem 0; }
.tc-kpi-delta { font-size: .78rem; opacity: .85; display: flex; align-items: center; }

/* Gráfica de barras (CSS puro, sin librerías) */
.tc-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: .75rem;
    height: 180px;
    padding-top: 1.5rem;
}
.tc-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.tc-bar-num { font-size: .78rem; font-weight: 700; color: var(--tc-blue); margin-bottom: .3rem; }
.tc-bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--tc-blue) 0%, var(--tc-blue-deep) 100%); border-radius: 6px 6px 0 0; transition: height .4s ease; }
.tc-bar-label { font-size: .74rem; color: var(--tc-secondary, #6c757d); margin-top: .5rem; font-weight: 600; }

/* Feed de actividad reciente */
.tc-actividad-item { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--tc-border); }
.tc-actividad-item:last-child { border-bottom: none; padding-bottom: 0; }
.tc-actividad-icono { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .85rem; flex-shrink: 0; }

/* En la tarjeta chica del dashboard, el ícono de marca de agua (pensado
   para el panel grande de login) se ve enorme -- lo achicamos aquí. */
.tc-mini-banner .tc-login-watermark { font-size: 6.5rem; bottom: -20px; right: -15px; }