﻿/* =====================================================================
   UTTT · Estilo institucional
   Paleta tomada del banner oficial de la Universidad Tecnológica de Tula-Tepeji
   ===================================================================== */
:root {
    /* Colores institucionales del Gobierno de Hidalgo (encabezado y pie) */
    --guinda: #691b31;
    --guinda-2: #561628;
    --dorado: #bc955b;
    --dorado-2: #a7824c;
    --navy: #1b1e4b;
    --navy-2: #262b66;
    --navy-3: #12143a;
    --teal: #009b84;
    --teal-2: #00826f;
    --teal-3: #00b894;
    --teal-dark: #2a7a70;
    --lime: #95c11f;
    --lime-2: #7fa616;
    --ink: #1f2340;
    --muted: #5b6180;
    --line: #e1e5ee;
    --bg: #f3f6f9;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 14px 40px rgba(27, 30, 75, .12);
    --shadow-sm: 0 6px 18px rgba(27, 30, 75, .08);
    --font: "Barlow", "Segoe UI", Arial, Helvetica, sans-serif;
    --font-cond: "Barlow Semi Condensed", "Barlow", "Segoe UI", Arial, sans-serif;
}

/* ---------- Fondo con patrón de hexágonos ---------- */
html { background: var(--bg); }
body.fondo-hex {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 15px;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23dbe3ec' stroke-width='1.3'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23e3e9f0' stroke-width='1.3'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
    background-attachment: scroll;
    background-repeat: repeat, no-repeat;
    background-size: 56px 100px, 100% 100%;
}
a { color: var(--teal-2); }
a:hover, a:focus { color: var(--navy); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

/* Hexágonos decorativos */
.hex-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hx {
    position: absolute;
    display: block;
    clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}
.hx.hx-outline::after, .hx-1::after, .hx-4::after, .hx-6::after {
    content: "";
    position: absolute;
    inset: 9px;
    background: var(--bg);
    clip-path: inherit;
}
.hx-1 { width: 150px; height: 140px; left: -36px; top: 36%; background: #b6bccd; opacity: .75; }
.hx-2 { width: 80px;  height: 74px;  left: 150px; top: 47%; background: #a9b0c6; opacity: .65; }
.hx-3 { width: 170px; height: 158px; left: -30px; top: 57%; background: var(--teal); opacity: .28; }
.hx-4 { width: 60px;  height: 56px;  left: 205px; top: 66%; background: var(--lime); opacity: .55; }
.hx-5 { width: 90px;  height: 84px;  right: 30px; top: 66%; background: var(--lime); opacity: .3; }
.hx-6 { width: 92px;  height: 86px;  right: 260px; top: 80%; background: var(--lime); opacity: .45; }
.hx-7 { width: 170px; height: 158px; right: 40px; top: 82%; background: var(--teal); opacity: .25; }
.hx-8 { width: 80px;  height: 74px;  right: 220px; top: 95%; background: var(--navy); opacity: .18; }

.pagina {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 26px 20px 10px;
}

/* ---------- Encabezado institucional (Gobierno de Hidalgo) ---------- */
.barra-gob, .barra-uttt {
    border: 0;
    border-radius: 0;
    margin: 0;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    position: relative;
    z-index: 2;
}
.barra-gob { background: var(--guinda); min-height: 46px; }
.barra-gob .navbar-brand { height: 46px; padding: 7px 15px; }
.barra-gob .navbar-brand img { height: 32px; }
.barra-gob .nav > li > a { color: #fff; font-size: 14.5px; padding-top: 13px; padding-bottom: 13px; }
.barra-gob .nav > li > a:hover, .barra-gob .nav > li > a:focus { color: var(--dorado); background: transparent; }
.barra-uttt { background: var(--dorado); min-height: 50px; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.barra-uttt .navbar-brand.nombre-uttt { color: #fff; font-size: 17px; height: 50px; padding-top: 15px; }
.barra-uttt .navbar-brand.nombre-uttt:hover { color: #fff; }
.barra-uttt .nav > li > a { color: #fff; font-size: 14.5px; padding-top: 15px; padding-bottom: 15px; }
.barra-uttt .nav > li > a:hover, .barra-uttt .nav > li > a:focus { color: var(--guinda); background: transparent; }
.barra-gob .navbar-toggle, .barra-uttt .navbar-toggle { border-color: rgba(255,255,255,.6); margin-top: 7px; margin-bottom: 7px; }
.barra-gob .navbar-toggle .icon-bar, .barra-uttt .navbar-toggle .icon-bar { background: #fff; }
.barra-gob .navbar-collapse, .barra-uttt .navbar-collapse { border-color: rgba(255,255,255,.2); box-shadow: none; }

/* Escritorio: nombre y enlaces siempre en una sola línea */
@media (min-width: 768px) {
    .barra-gob > .container, .barra-uttt > .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    .barra-gob > .container:before, .barra-gob > .container:after,
    .barra-uttt > .container:before, .barra-uttt > .container:after { display: none; }
    .barra-gob .navbar-header, .barra-uttt .navbar-header { float: none; flex: none; }
    .barra-gob .navbar-collapse, .barra-uttt .navbar-collapse {
        display: flex !important;
        justify-content: flex-end;
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 0;
    }
    .barra-gob .navbar-nav, .barra-uttt .navbar-nav {
        float: none;
        display: flex;
        flex-wrap: nowrap;
        margin: 0;
    }
    .barra-gob .navbar-nav > li, .barra-uttt .navbar-nav > li { float: none; }
    .barra-gob .nav > li > a, .barra-uttt .nav > li > a { white-space: nowrap; padding-left: 11px; padding-right: 11px; }
    .barra-gob .navbar-nav > li:last-child > a, .barra-uttt .navbar-nav > li:last-child > a { padding-right: 0; }
    .barra-uttt .navbar-brand.nombre-uttt { white-space: nowrap; margin-left: 0 !important; padding-left: 0; }
    .barra-gob .navbar-brand { margin-left: 0 !important; padding-left: 0; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .barra-gob .nav > li > a, .barra-uttt .nav > li > a { font-size: 13px; padding-left: 7px; padding-right: 7px; }
    .barra-uttt .navbar-brand.nombre-uttt { font-size: 15px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .barra-uttt .navbar-brand.nombre-uttt { font-size: 13px; }
    .barra-gob .nav > li > a, .barra-uttt .nav > li > a { font-size: 12px; padding-left: 5px; padding-right: 5px; }
}

/* ---------- Pie institucional (guinda) ---------- */
.pie-gob {
    position: relative;
    z-index: 2;
    background: var(--guinda);
    color: #fff;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin-top: 30px;
}
.pie-gob .row { display: flex; flex-wrap: wrap; align-items: center; }
.pie-gob .pie-col { padding-top: 50px; padding-bottom: 50px; }
.pie-gob .gobmx-footer { max-width: 100%; height: auto; }
.pie-gob .pie-logo-uttt { width: 180px; max-width: 100%; height: auto; }
.pie-gob .pie-contacto { text-align: center; }
.pie-gob .pie-contacto p { margin: 0 0 10px; line-height: 1.55; }
.pie-gob .pie-titulo { font-size: 20px; }
.pie-gob .pie-redes { display: flex; justify-content: center; gap: 20px; }
.pie-gob .pie-redes a { color: #fff; }
.pie-gob .pie-redes a:hover { color: var(--dorado); }

/* ---------- Banner en tarjeta ---------- */
.banner-card {
    position: relative;
    margin: 0 auto 46px;
    border-radius: 22px;
    background: var(--navy);
    box-shadow: 0 18px 40px rgba(27, 30, 75, .25);
    line-height: 0;
}
.banner-card > a { display: block; border-radius: 22px; overflow: hidden; }
.banner-card img { width: 100%; height: auto; display: block; }
.banner-pill {
    position: absolute;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    line-height: 1;
    padding: 15px 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
    color: #fff;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px rgba(27, 30, 75, .15), 0 10px 24px rgba(27, 30, 75, .3);
    font-family: var(--font-cond);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.banner-pill svg { width: 22px; height: 22px; color: var(--teal-3); flex: none; }

/* ---------- Barra de fecha / hora / sesión ---------- */
.barra-estado {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    margin: 10px auto 28px;
    padding: 10px 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #edf1f5;
}
.estado-fecha { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--navy); }
.estado-fecha svg { width: 20px; height: 20px; color: var(--teal); }
.estado-sep { width: 1px; height: 24px; background: var(--line); }
.estado-reloj {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    padding: 6px 14px;
    font-family: Consolas, "Courier New", monospace;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 3px;
    min-width: 132px;
    text-align: center;
}
a.btn-salir {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #eef7f5;
    color: var(--teal-2);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #cfe9e3;
}
a.btn-salir svg { width: 18px; height: 18px; }
a.btn-salir:hover, a.btn-salir:focus { background: var(--teal); color: #fff; border-color: var(--teal); text-decoration: none; }

/* ---------- Contenido ---------- */
.contenido-principal { min-height: 360px; padding-bottom: 20px; }

.tarjeta {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 28px;
    margin-bottom: 24px;
    overflow: hidden;
}
.tarjeta:before, .acceso-card:before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 55%, var(--lime) 100%);
}

.etiqueta-lima {
    display: inline-block;
    background: var(--lime);
    color: var(--navy-3);
    font-family: var(--font-cond);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
}
.texto-suave { color: var(--muted); }

/* ---------- Botones ---------- */
.btn-uttt, input.btn-uttt {
    display: inline-block;
    background: linear-gradient(90deg, var(--teal) 0%, var(--teal-3) 100%);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px 24px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .5px;
    cursor: pointer;
    transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
    box-shadow: 0 8px 20px rgba(0, 155, 132, .28);
}
.btn-uttt:hover { filter: brightness(.95); color: #fff; }
.btn-uttt:active { transform: translateY(1px); }
.btn-uttt.btn-lima { background: linear-gradient(90deg, var(--lime-2) 0%, var(--lime) 100%); color: var(--navy-3); box-shadow: 0 8px 20px rgba(149, 193, 31, .3); }
.btn-uttt.btn-navy { background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%); box-shadow: 0 8px 20px rgba(27, 30, 75, .25); }
.btn-bloque { width: 100%; }

/* ---------- Acceso (login) ---------- */
.acceso-wrap { display: flex; justify-content: center; }
.acceso-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 38px 34px 30px;
    overflow: hidden;
}
.acceso-encabezado { text-align: center; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.acceso-encabezado h1 { font-family: var(--font-cond); font-weight: 800; font-size: 25px; color: var(--navy); margin: 14px 0 0; letter-spacing: .3px; }
.acceso-titulo { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; font-size: 18px; font-weight: 700; color: var(--navy); }
.acceso-titulo svg { width: 20px; height: 20px; color: var(--teal); }
.campo { margin-bottom: 20px; }
.campo label {
    display: block;
    font-weight: 700;
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.campo-icono { position: relative; }
.campo-icono > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: #8b91a8; pointer-events: none; }
.campo-icono .form-control { padding-left: 44px; }
.campo-icono .form-control.con-ojo { padding-right: 50px; }
.ver-clave {
    position: absolute; right: 6px; top: 50%; margin-top: -18px;
    width: 38px; height: 36px;
    border: 0; background: transparent; color: #8b91a8; border-radius: 8px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.ver-clave:hover { background: var(--bg); color: var(--teal); }
.ver-clave svg { width: 19px; height: 19px; }
.form-control {
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    box-shadow: none;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
}
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 155, 132, .14); }
.acceso-card .btn-uttt { margin-top: 6px; height: 50px; font-size: 16px; }
.acceso-nota { margin: 26px 0 0; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Captura de calificaciones ---------- */
.encabezado-pagina { text-align: center; margin-bottom: 20px; }
.encabezado-pagina h1 { font-family: var(--font-cond); font-size: 30px; font-weight: 800; color: var(--navy); margin: 14px 0 2px; letter-spacing: .5px; }
.encabezado-pagina h2 { font-size: 14px; font-weight: 700; color: var(--teal-2); margin: 0; text-transform: uppercase; letter-spacing: 2px; }
.chip-instructor {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 16px; padding: 8px 18px;
    background: #fff; color: var(--navy); border-radius: 999px; font-weight: 700; font-size: 14px;
    box-shadow: var(--shadow-sm);
}
.chip-instructor svg { width: 18px; height: 18px; color: var(--teal); }

.instrucciones { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.instrucciones-texto { flex: 1 1 380px; color: var(--muted); font-size: 15px; }
.instrucciones-texto strong { color: var(--navy); }
.leyenda { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.leyenda span {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg); border-radius: 8px; padding: 4px 10px; font-size: 13px; color: var(--ink); font-weight: 600;
}
.leyenda b {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 13px;
}
.selector-grupo { flex: 0 1 320px; }
.selector-grupo label { display: block; font-weight: 700; color: var(--muted); font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; }
.selector-grupo select { width: 100%; }

.tabla-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tabla-cap {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
table.tabla-cap th, table.tabla-cap td { border: 0; border-bottom: 1px solid var(--line); padding: 9px 8px; vertical-align: middle; }
table.tabla-cap tr.tc-head th { background: var(--navy); color: #fff; text-align: center; font-size: 12.5px; letter-spacing: .8px; font-weight: 700; }
table.tabla-cap tr.tc-head-2 th { background: var(--teal); color: #fff; text-align: center; font-size: 12px; font-weight: 600; }
table.tabla-cap tr.tc-fila td { background: #fff; color: var(--ink); text-align: center; }
table.tabla-cap tr.tc-fila td.tc-nombre { text-align: left; font-weight: 600; color: var(--navy); min-width: 240px; }
table.tabla-cap tr.tc-fila:nth-child(even) td { background: #f8fafc; }
table.tabla-cap tr.tc-fila:hover td { background: #eef7f5; }
table.tabla-cap tr:last-child td { border-bottom: 0; }
.tc-matricula { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--teal-2); background: #eef7f5; padding: 2px 8px; border-radius: 6px; margin-right: 6px; }
input.celda {
    width: 46px !important;
    height: 34px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
    background: #fff;
}
input.celda:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 155, 132, .18); }
input.celda[disabled] { background: #eef1f6; color: var(--muted); border-color: transparent; }
input.celda-calif { border-color: #c9e3a0; }

.acciones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; }
.acciones .btn-uttt { min-width: 150px; }

/* ---------- Progreso / modales ---------- */
.Background { position: fixed; top: 0; bottom: 0; left: 0; right: 0; background: rgba(18, 20, 58, .55); z-index: 100000; }
.Progress {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 24px 32px;
    text-align: center;
    color: var(--navy);
    font-weight: 700;
}
.Progress img { display: block; margin: 12px auto 0; }
.cssPopop { background-color: rgba(18, 20, 58, .6); }
.panel-modal {
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    overflow: hidden;
    background-color: #fff;
    border: 0 !important;
}
.panel-modal input[type=submit] { background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: 8px 26px; font-weight: 700; cursor: pointer; }
.panel-modal input[type=submit]:hover { background: var(--navy); }

/* ---------- Pie ---------- */
.pie-simple { text-align: center; padding: 26px 0 30px; }
.pie-logos {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 12px 26px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, .85);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}
.pie-logos img { height: 42px; width: auto; }
.pie-simple p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- Responsivo ---------- */
@media (max-width: 991px) {
    .hx-2, .hx-4, .hx-6, .hx-8 { display: none; }
}
@media (max-width: 767px) {
    .pagina { padding: 12px 12px 6px; }
    .banner-card, .banner-card > a { border-radius: 14px; }
    .banner-card { margin-bottom: 36px; }
    .banner-pill { padding: 10px 18px; font-size: 11px; letter-spacing: 2px; gap: 8px; bottom: -20px; border-width: 3px; }
    .banner-pill svg { width: 16px; height: 16px; }
    .barra-estado { padding: 10px 12px; gap: 10px; }
    .estado-sep { display: none; }
    .estado-fecha { font-size: 14px; }
    .estado-reloj { font-size: 16px; min-width: 110px; }
    .acceso-card { padding: 30px 22px 24px; }
    .tarjeta { padding: 22px 16px; }
    .encabezado-pagina h1 { font-size: 24px; }
    .acciones > * { flex: 1 1 100%; }
    .acciones .btn-uttt { width: 100%; }
    .pie-logos { gap: 16px; padding: 10px 16px; }
    .pie-logos img { height: 32px; }
    .hex-deco { display: none; }
    .barra-uttt .navbar-brand.nombre-uttt { font-size: 14px; }
    .barra-gob .navbar-header, .barra-uttt .navbar-header { display: flex; align-items: center; justify-content: space-between; }
    .barra-gob .navbar-header:before, .barra-gob .navbar-header:after,
    .barra-uttt .navbar-header:before, .barra-uttt .navbar-header:after { display: none; }
    .barra-gob .navbar-toggle, .barra-uttt .navbar-toggle { float: none; order: 2; margin-right: 0; }
    .barra-gob .navbar-brand, .barra-uttt .navbar-brand { float: none; order: 1; }
    .barra-uttt .navbar-brand.nombre-uttt { height: auto; padding-top: 14px; padding-bottom: 14px; }
    .pie-gob .pie-col { width: 100%; text-align: center; padding-top: 22px; padding-bottom: 22px; }
}
