/* =============================================
   STT KIOSCO — Hoja de estilos principal
   ============================================= */

:root {
    --primary:    #d05f27; /* Naranja plantilla 2025 */
    --primary-dk: #b34e1c; /* Naranja oscuro */
    --accent:     #003d5c; /* Azul plantilla 2025 (acento) */
    --success:    #1e9e6b;
    --danger:     #d63031;
    --warning:    #f39c12;
    --bg:         #f0f4f8;
    --card-bg:    #ffffff;
    --text:       #2d3748;
    --text-light: #718096;
    --border:     #e2e8f0;
    --shadow:     0 4px 20px rgba(0,0,0,.08);
    --radius:     6px; /* Bordes más cuadrados */
    --transition: .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── HEADER ─────────────────────────────── */
.stt-header {
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: hidden;
    color: #fff;
}

.stt-header::before {
    content: '';
    position: absolute;
    inset: -15px; /* Evita bordes por el blur */
    background: url('../img/muralfondo.jpg') center/cover no-repeat;
    filter: blur(6px);
    z-index: -2;
}

.stt-header::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Azul muy oscuro a la izquierda, Naranja dominante hacia la derecha */
    background: linear-gradient(135deg, rgba(0,35,55,0.92) 0%, rgba(0,35,55,0.85) 35%, rgba(208,95,39,0.85) 65%, rgba(208,95,39,0.95) 100%);
    z-index: -1;
}

.stt-header__brand, .stt-header__user {
    position: relative;
    z-index: 1;
}

.stt-header__brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.stt-header__brand img {
    height: 38px;
    filter: brightness(0) invert(1);
}

.stt-header__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
}

.stt-header__subtitle {
    font-size: .7rem;
    opacity: .75;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stt-header__user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stt-header__user-name {
    font-size: .875rem;
    font-weight: 500;
    opacity: .9;
    display: flex;
    align-items: center;
}

.stt-btn-logout {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px;
    padding: .4rem .9rem;
    font-size: .8rem;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.stt-btn-logout:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    text-decoration: none;
}

/* ── MAIN CONTAINER ─────────────────────── */
.stt-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* ── ALUMNO INFO CARD ───────────────────── */
.stt-info-card {
    background: var(--primary-dk); /* Naranja oscuro no chillón */
    border-radius: var(--radius);
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    align-items: center;
}

.stt-info-card__item {
    display: flex;
    flex-direction: column;
}

.stt-info-card__label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, 0.75);
}

.stt-info-card__value {
    font-size: .9rem;
    font-weight: 600;
    color: #ffffff;
}

/* ── PROGRESO GENERAL ───────────────────── */
.stt-progress-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.stt-progress-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

.stt-progress-section__label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
}

.stt-progress-section__count {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.stt-bar {
    width: 100%;
    height: 14px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.stt-bar__fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #1e9e6b, #27ae60);
    transition: width .8s cubic-bezier(.4,0,.2,1);
}

/* ── GRID DE TARJETAS ───────────────────── */
.stt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

/* ── TARJETA ────────────────────────────── */
.stt-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid #e0e5eb; /* Borde sutil general */
    border-top: 4px solid var(--border); /* Borde top dinámico */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 120px;
    box-sizing: border-box;
    gap: .6rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

.stt-card--ok     { border-top-color: var(--success); }
.stt-card--danger { border-top-color: var(--danger); }
.stt-card--warn   { border-top-color: var(--warning); }

.stt-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
}

.stt-card__name {
    font-size: .875rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stt-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.stt-badge--ok     { background: #d4f4e8; color: #1a7a50; }
.stt-badge--danger { background: #fde8e8; color: #b91c1c; }
.stt-badge--warn   { background: #fef3cd; color: #92600a; }

/* Barra interna de tarjeta numérica */
.stt-card__progress {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.stt-card__progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--text-light);
}

.stt-card__progress-labels strong {
    color: var(--text);
}

.stt-bar--sm {
    height: 8px;
}

/* ── BOTÓN VER SEMINARIO ────────────────── */
.stt-btn-detalle, .stt-btn-seminario, .stt-btn-evento {
    width: 100%;
    margin-top: auto; 
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: rgba(208, 95, 39, 0.1);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.stt-btn-detalle:hover, .stt-btn-seminario:hover, .stt-btn-evento:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(208, 95, 39, 0.25);
    transform: translateY(-1px);
}



/* ── MODAL SEMINARIO ────────────────────── */
.stt-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stt-modal-overlay.active { 
    display: flex; 
    opacity: 1;
}

.stt-modal {
    background: #f8fafc;
    border-radius: 16px;
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes modalIn {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1);   opacity: 1; }
}

.stt-modal__header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stt-modal__header h3 { 
    font-size: 1.15rem; 
    font-weight: 600; 
    margin: 0; 
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stt-modal__header h3 i {
    color: var(--primary);
}

.stt-modal__close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    padding: 0;
}

.stt-modal__close:hover { 
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}

.stt-modal__body { 
    padding: 2rem; 
    overflow-y: auto;
    flex: 1;
}

.stt-modal__body .dataTables_wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.stt-modal__body table.table-bordered {
    border: none;
}
.stt-modal__body table.table-bordered th, 
.stt-modal__body table.table-bordered td {
    border-left: none;
    border-right: none;
}

.stt-modal__body table.table-hover {
    margin-bottom: 0 !important;
}


/* ── TABLA INTERIOR MODAL ───────────────── */
.stt-table { width: 100%; border-collapse: collapse; font-size: .825rem; }
.stt-table th { background: #f7fafc; font-weight: 700; padding: .6rem .75rem; border-bottom: 2px solid var(--border); text-align: left; }
.stt-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--border); }
.stt-table tr:last-child td { border-bottom: none; }

/* ── FOOTER ─────────────────────────────── */
.stt-footer {
    text-align: center;
    font-size: .75rem;
    color: var(--text-light);
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

/* ── SKELETON LOADER ────────────────────── */
.stt-skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #edf2f7 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
    height: 160px;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 640px) {
    .stt-header { 
        padding: 1rem; 
        flex-direction: column; 
        height: auto; 
        gap: 1rem; 
        align-items: flex-start;
    }
    .stt-header__user {
        width: 100%;
        justify-content: space-between;
    }
    .stt-header__title { font-size: .95rem; }
    .stt-header__subtitle { font-size: .7rem; }
    
    .stt-main { padding: 1rem; }
    
    .stt-info-card { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: .85rem; 
    }
    .stt-info-card__item { width: 100%; }
    
    .stt-grid { grid-template-columns: 1fr; }
}

/* ── TABLA SELECCION ALUMNO ─────────────── */
.stt-select-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.stt-select-table th { background: var(--primary); color: #fff; padding: .7rem 1rem; font-weight: 600; }
.stt-select-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.stt-select-table tr:hover td { background: #f0f7ff; }
.stt-select-table .btn-select {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: .35rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    font-family: inherit;
}
.stt-select-table .btn-select:hover { background: var(--accent); }

/* ── LOGIN PAGE ─────────────────────────── */
.stt-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.stt-login-wrap::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: url('../img/muralfondo.jpg') center/cover no-repeat;
    filter: blur(8px);
    z-index: 1;
}

.stt-login-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Overlay azul más transparente para que resalte la imagen de fondo */
    background: rgba(0, 61, 92, 0.60); 
    z-index: 2;
}

.stt-login-box {
    position: relative;
    z-index: 3;
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.stt-login-box__logo {
    display: block;
    margin: 0 auto 1.25rem;
    height: 70px;
}

.stt-login-box__title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-dk);
    margin-bottom: .25rem;
}

.stt-login-box__subtitle {
    text-align: center;
    font-size: .75rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.stt-form-group { margin-bottom: 1.25rem; }

.stt-form-group label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-light);
    margin-bottom: .45rem;
}

.stt-form-group input[type=text],
.stt-form-group input[type=password] {
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.stt-form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,92,148,.12);
}

.stt-btn-login {
    width: 100%;
    padding: .8rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dk));
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
    margin-top: .5rem;
}

.stt-btn-login:hover { opacity: .92; transform: translateY(-1px); }
.stt-btn-login:active { transform: translateY(0); }

.stt-login-error {
    color: var(--danger);
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    margin-top: .75rem;
    min-height: 1.2em;
}

.stt-login-footer {
    text-align: center;
    font-size: .7rem;
    color: var(--text-light);
    margin-top: 2rem;
}
/* -- CAREER CARDS (Selecci�n de Carrera) ---------- */
.career-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}
.career-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid var(--primary);
}
.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.career-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f7ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.career-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}
.career-card-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.career-card-detail span {
    font-weight: 600;
    color: var(--text-dark);
}
.career-card-action {
    margin-top: 1.5rem;
    width: 100%;
}
.career-card-action .btn-select {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.career-card-action .btn-select:hover {
    background: var(--accent);
}


/* SECURITY CLASSES */
.stt-table-custom {
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0 !important;
}

.stt-thead-light {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #cbd5e1;
}

.stt-th-calificacion { width: 130px; }
.stt-th-acreditado { width: 100px; text-align: center; }

.stt-badge-sec {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    color: white;
    border-radius: 4px;
    display: inline-block;
}
.stt-badge-success { background-color: #28a745; }
.stt-badge-danger { background-color: #dc3545; }

.stt-loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #64748b;
}
.stt-loader-text {
    margin-left: 15px;
    font-size: 1.2rem;
}
.stt-cursor-pointer { cursor: pointer; }
.stt-text-black { color: black; }
