/* ==========================================================================
   estudiante.css · Páginas del estudiantado (/level1)
   Se apoya en interno.css (int-*) y tabla_tfg.css (tt-*). Colores a partir
   de las variables --tfg-* del tema del usuario. Prefijo "est-".
   ========================================================================== */

/* Textos de confirmación con saltos de línea (resúmenes de lo que se envía) */
.est .swal2-popup .swal2-html-container {
    white-space: pre-line;
}

.swal2-popup.swal-profesional.swal-ancho {
    width: min(640px, 96vw);
}

/* ========================================================================== */
/* FRANJA DE ESTADO E INSIGNIAS                                               */
/* ========================================================================== */
.est-estado {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: -2px 0 10px;
}

.est-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    padding: 3px 12px;
    border: 1px solid var(--tfg-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--tfg-text-strong);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.15px;
    box-shadow: 0 1px 3px rgba(15, 30, 50, 0.05);
}

.est-chip .fas,
.est-chip .far {
    color: var(--tfg-accent);
}

.est-chip--marca {
    border-color: transparent;
    background: var(--tfg-header-bg);
}

.est-chip--ok {
    border-color: #b9e2c8;
    background: #eef9f2;
    color: #1b6b3c;
}

.est-chip--ok .fas {
    color: #1b7a43;
}

.est-chip--aviso {
    border-color: #f3d48b;
    background: #fff8e6;
    color: #7a5200;
}

.est-chip--aviso .fas {
    color: #b07800;
}

.est-chip--cerrado {
    border-color: #f2c4cb;
    background: #fdeef0;
    color: #a1132b;
}

.est-chip--cerrado .fas {
    color: #c8102e;
}

.est-chip--neutro {
    color: var(--tfg-text-muted);
}

.est-ayuda {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 10px;
    padding: 7px 12px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px dashed var(--tfg-border);
    color: var(--tfg-text-muted);
    font-size: 12px;
}

.est-ayuda > .fas {
    color: #d29a00;
}

.est-subtitulo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--tfg-text-strong);
}

.est-subtitulo .fas {
    color: var(--tfg-accent);
}

/* ========================================================================== */
/* CELDAS                                                                     */
/* ========================================================================== */
.est-vacio {
    color: var(--tfg-text-muted);
    font-style: italic;
    opacity: 0.75;
}

.est-vacio--accion {
    color: #8a6100;
    opacity: 1;
    font-weight: 600;
}

.est-texto {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.est-texto small {
    color: var(--tfg-text-muted);
}

.est-texto--corto {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.est-titulo {
    font-weight: 600;
    color: var(--tfg-text-strong);
}

.est-persona {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.est-persona strong {
    font-weight: 700;
    color: var(--tfg-text-strong);
    white-space: normal;
}

.est-persona small,
.est-persona__email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: var(--tfg-text-muted);
    text-decoration: none;
}

.est-persona__email:hover {
    color: var(--tfg-accent);
    text-decoration: underline;
}

.est-tutores {
    display: grid;
    gap: 5px;
}

/* Rol + persona: en columnas estrechas el nombre pasa debajo de la etiqueta
   (antes se partía letra a letra). */
.est-tutores > div {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2px 6px;
    min-width: 0;
}

.est-tutores > div > .est-persona,
.est-tutores > div > .est-vacio {
    flex: 1 1 110px;
    min-width: 0;
}

.est-rol {
    margin-top: 1px;
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--tfg-header-bg);
    color: var(--tfg-text-strong);
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;
}

.est-conv {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.est-conv small {
    color: var(--tfg-text-muted);
    font-size: 11px;
}

.est-conv--actual strong {
    color: var(--tfg-accent);
}

.est-conv--actual small {
    font-weight: 700;
}

.est-codigo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.est-codigo__chip {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    background: var(--tfg-accent);
    color: var(--tfg-on-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    font-variant-numeric: tabular-nums;
}

.est-codigo__linea {
    white-space: normal;
    font-size: 12px;
    line-height: 1.3;
}

.est-fecha {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-weight: 600;
    color: var(--tfg-text-strong);
}

.est-fecha .far {
    color: var(--tfg-accent);
}

.est-fecha__hora {
    font-weight: 500;
    color: var(--tfg-text-muted);
}

.est-nota {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 2px 8px;
    border-radius: 8px;
    line-height: 1.15;
}

.est-nota strong {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.est-nota small {
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.est-nota--alta {
    background: #e7f5ec;
    color: #146534;
}

.est-nota--ok {
    background: #eef3fb;
    color: #1d4a85;
}

.est-nota--baja {
    background: #fdecee;
    color: #a1132b;
}

.est-estrella {
    color: #e0a100;
    margin-left: 4px;
}

.est-estado-doble {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.est-estado-doble .tt-insignia {
    white-space: normal;
    text-align: left;
}

.est-estado-doble small {
    font-size: 11px;
    color: var(--tfg-text-muted);
    white-space: normal;
}

/* v57: estado del compromiso de tutorización (respuesta del tutor/a) */
.est-compromiso {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
}

.est-compromiso--aceptado {
    background: #e7f5ec;
    border-color: #b7e0c5;
    color: #1b7a43;
}

.est-compromiso--pendiente {
    background: #fff4d6;
    border-color: #f1d98c;
    color: #8a6100;
}

.est-compromiso--rechazado {
    background: #fde8ea;
    border-color: #f4b8c0;
    color: #b0122b;
}

.est-compromiso--sinenviar {
    background: var(--tfg-header-bg, #eef1f5);
    border-color: var(--tfg-border, #d8dee6);
    color: var(--tfg-text-muted, #5b6573);
}

.est-pendiente {
    color: #8a6100;
    font-weight: 700;
}

/* Candado / lápiz de la primera columna */
.est-edicion {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 11px;
}

.est-edicion--si {
    background: #e7f5ec;
    color: #1b7a43;
}

.est-edicion--no {
    background: #f1f2f4;
    color: #8a929c;
    cursor: help;
}

.tt .tabulator .tabulator-row.est-fila-bloqueada .tabulator-cell:not(.tt-col-acciones):not(.tt-col-sel) {
    color: #4a5562;
}

.tt .tabulator .tabulator-row.est-fila-destacada:not(.tt-fila-cambiada) {
    box-shadow: inset 4px 0 0 #1b7a43;
}

/* Botón de acción con cambios pendientes */
.int-icono-accion.est-accion--pendiente {
    background: #fff3cd;
    color: #8a6100;
}

.int-icono-accion:disabled {
    opacity: 0.32;
    cursor: not-allowed;
    transform: none;
    background: transparent;
}

/* ========================================================================== */
/* PESTAÑAS (Solic_Adjudica_est.php)                                          */
/* ========================================================================== */
.est-pestanas {
    flex: 0 0 auto;
    display: flex;
    gap: 4px;
    margin: 0 0 -1px;
    padding-left: 6px;
}

.est-pestana {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--tfg-border);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: var(--tfg-header-bg);
    color: var(--tfg-text-muted);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.est-pestana:hover {
    background: var(--tfg-header-hover);
    color: var(--tfg-text-strong);
}

.est-pestana--activa {
    position: relative;
    z-index: 1;
    background: #ffffff;
    color: var(--tfg-accent);
    box-shadow: inset 0 3px 0 var(--tfg-accent);
}

.est-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.est-panel[hidden] {
    display: none;
}

.est-panel .tt-barra {
    border-top-left-radius: 0;
}

/* Barra de progreso (peticiones cumplimentadas) */
.est-progreso {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.est-progreso__barra {
    position: relative;
    flex: 1 1 auto;
    height: 7px;
    min-width: 50px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--tfg-header-bg);
}

.est-progreso__barra > span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tfg-accent), #1b7a43);
    transition: width 0.35s ease;
}

.est-progreso small {
    font-size: 11px;
    font-weight: 700;
    color: var(--tfg-text-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.est-progreso--grande {
    max-width: 280px;
}

.est-progreso--grande .est-progreso__barra {
    height: 10px;
}

/* Detalle de una solicitud (SweetAlert) */
.est-detalle-peticiones {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    white-space: normal;
}

.est-detalle-peticiones li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 4px;
    border-bottom: 1px solid var(--tfg-border);
    font-size: 12.5px;
}

.est-orden {
    flex: 0 0 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tfg-accent);
    color: var(--tfg-on-accent);
    font-size: 11px;
    font-weight: 800;
}

.est-detalle-peticiones li.est-vacio .est-orden {
    background: var(--tfg-header-bg);
    color: var(--tfg-text-muted);
}

.est-detalle-opcional {
    margin: 12px 0 4px;
    text-align: left;
}

/* ========================================================================== */
/* DIÁLOGOS (correo, título, motivos)                                         */
/* ========================================================================== */
.est-contacto {
    display: grid;
    gap: 6px;
    text-align: left;
    white-space: normal;
}

.est-contacto .int-etiqueta {
    margin-top: 6px;
}

.est-destinos {
    display: grid;
    gap: 6px;
    margin-top: 6px;
}

.est-destino {
    display: grid;
    grid-template-columns: auto 90px 1fr;
    grid-template-areas: "casilla rol nombre" "casilla rol email";
    align-items: center;
    column-gap: 10px;
    padding: 7px 10px;
    border: 1px solid var(--tfg-border);
    border-radius: 9px;
    background: var(--tfg-row-alt);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.est-destino:hover {
    border-color: var(--tfg-accent-soft);
}

.est-destino:has(input:checked) {
    border-color: var(--tfg-accent);
    background: #ffffff;
    box-shadow: 0 0 0 2px var(--tfg-header-hover);
}

.est-destino input {
    grid-area: casilla;
    width: 16px;
    height: 16px;
    accent-color: var(--tfg-accent);
}

.est-destino__rol {
    grid-area: rol;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tfg-accent);
}

.est-destino__nombre {
    grid-area: nombre;
    font-weight: 700;
    color: var(--tfg-text-strong);
}

.est-destino__email {
    grid-area: email;
    font-size: 11px;
    color: var(--tfg-text-muted);
}

.est-contacto__pie {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Motivo de una asignación manual (ventana obligatoria) */
.est-motivo__resumen {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--tfg-surface-alt, #f4f7fb);
    font-size: 13px;
    text-align: left;
    white-space: pre-line;
    max-height: 180px;
    overflow-y: auto;
}

#est-motivo {
    width: 100%;
    min-height: 96px;
    margin-bottom: 6px;
}

.est-contacto .int-textarea {
    min-height: 130px;
}

.est-editor-titulo {
    display: grid;
    gap: 6px;
    text-align: left;
    white-space: normal;
}

.est-editor-titulo__tfg {
    margin: 0;
    font-size: 12px;
    color: var(--tfg-text-muted);
}

.est-lista-motivos {
    margin: 8px 0 0;
    padding-left: 18px;
    text-align: left;
    white-space: normal;
}

.est-lista-motivos li {
    margin: 4px 0;
}

.swal2-popup.swal-profesional .swal2-deny.est-boton-pdf {
    background: linear-gradient(145deg, #c8102e, #9d0c24);
    color: #ffffff;
}

/* ========================================================================== */
/* DEFENSA DESTACADA (Defensas_est.php)                                       */
/* ========================================================================== */
.est-defensa {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 12px;
    padding: 14px 18px;
    border: 1px solid var(--tfg-border);
    border-radius: var(--int-radio);
    background: linear-gradient(120deg, #ffffff 55%, var(--tfg-header-bg) 100%);
    box-shadow: var(--int-sombra);
}

.est-defensa[hidden] {
    display: none;
}

.est-defensa h2 {
    margin: 2px 0 6px;
    font-size: 18px;
    color: var(--tfg-text-strong);
}

.est-defensa p {
    margin: 0;
}

.est-defensa__calendario {
    flex: 0 0 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 30, 50, 0.12);
    text-transform: uppercase;
}

.est-defensa__mes {
    width: 100%;
    padding: 3px 0;
    background: var(--tfg-accent);
    color: var(--tfg-on-accent);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1px;
}

.est-defensa__dia {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--tfg-text-strong);
}

.est-defensa__semana {
    padding-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--tfg-text-muted);
}

.est-defensa__datos {
    flex: 1 1 auto;
    min-width: 0;
}

.est-defensa__etiqueta {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--tfg-accent);
}

.est-defensa__lista {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
}

.est-defensa__lista i {
    width: 16px;
    color: var(--tfg-accent);
}

.est-defensa__obs {
    margin-top: 8px !important;
    padding: 6px 10px;
    border-left: 3px solid var(--tfg-accent-soft);
    background: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.est-defensa__cuenta {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--tfg-accent);
    color: var(--tfg-on-accent);
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
}

.est-defensa--proxima .est-defensa__cuenta {
    background: #c8102e;
    animation: tt-latido 1.8s ease-in-out infinite;
}

.est-defensa--pendiente {
    background: #ffffff;
}

.est-defensa__icono {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff4d6;
    color: #8a6100;
    font-size: 22px;
}

/* ========================================================================== */
/* FICHA DEL TFG (Acerca_de.php)                                              */
/* ========================================================================== */
.est-ficha {
    flex: 0 0 auto;
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid var(--tfg-border);
    border-radius: var(--int-radio);
    background: #ffffff;
    box-shadow: var(--int-sombra);
}

.est-ficha .int-nota {
    margin: 0;
}

.est-ficha__cabecera {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--tfg-border);
}

.est-ficha__cabecera .est-codigo__chip {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 9px;
}

.est-ficha__titulo {
    display: block;
    font-size: 15px;
    color: var(--tfg-text-strong);
}

.est-ficha__sub {
    font-size: 12px;
    color: var(--tfg-text-muted);
}

.est-ficha__correo {
    margin-left: auto;
    flex: 0 0 auto;
}

.est-ficha__rejilla {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px 16px;
}

.est-ficha__dato {
    display: flex;
    gap: 10px;
    min-width: 0;
}

.est-ficha__dato > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.est-ficha__icono {
    flex: 0 0 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--tfg-header-bg);
    color: var(--tfg-accent);
    font-size: 12px;
}

.est-ficha__etiqueta {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tfg-text-muted);
}

.est-ficha__valor {
    font-size: 13px;
    font-weight: 600;
    color: var(--tfg-text-strong);
    overflow-wrap: anywhere;
}

.est-ficha__email {
    font-size: 11.5px;
    color: var(--tfg-accent);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.est-ficha__email:hover {
    text-decoration: underline;
}

.est-ficha__dato--tenue {
    opacity: 0.6;
}

/* ========================================================================== */
/* SOLICITUD DE TUTOR/A (Solic_Tutorizacion_est.php)                          */
/* ========================================================================== */
body.est--formulario {
    padding-bottom: 0;
}

.est-solicitud {
    max-width: 1100px;
    margin: 0 auto;
}

.est-motivo {
    margin: 0 0 12px;
}

.est-motivo[hidden] {
    display: none;
}

.est-solicitud__cabecera {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 20px;
    margin-bottom: 10px;
}

.est-solicitud__cabecera .int-tarjeta__titulo {
    margin-bottom: 4px;
    padding-bottom: 0;
    border-bottom: 0;
}

.est-solicitud__cabecera .int-ayuda {
    margin: 0;
}

.est-buscador {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 -6px 12px;
    padding: 8px 6px;
    background: #ffffff;
}

.est-buscador[hidden] {
    display: none;
}

.est-buscador > .fas {
    color: var(--tfg-accent);
}

.est-buscador .int-input {
    max-width: 520px;
}

.est-peticiones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 8px 14px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.est-peticion {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--tfg-border);
    border-radius: 10px;
    background: var(--tfg-row-alt);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.est-peticion__n {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tfg-header-bg);
    color: var(--tfg-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.est-peticion--llena {
    background: #ffffff;
}

.est-peticion--llena .est-peticion__n {
    background: var(--tfg-accent);
    color: var(--tfg-on-accent);
}

.est-peticion--cambiada {
    border-color: #f0a020;
    background: #fffaf0;
    box-shadow: inset 4px 0 0 #f0a020;
}

.est-peticion--cambiada .est-peticion__n {
    background: #f0a020;
    color: #ffffff;
}

.est-peticion .int-select {
    min-width: 0;
    text-overflow: ellipsis;
}

.est-peticion__quitar[hidden] {
    visibility: hidden;
    display: inline-grid;
}

.est-peticion__nota:empty {
    display: none;
}

.est-opcion-antigua {
    color: #8a6100;
}

.est-opcional {
    display: grid;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--tfg-border);
}

.est-select--cambiado {
    border-color: #f0a020 !important;
    background: #fffaf0 !important;
}

.int-select:disabled {
    background: var(--tfg-input-bg);
    color: var(--tfg-text-muted);
    cursor: not-allowed;
    opacity: 1;
}

/* Barra fija para guardar */
.est-barra-guardar {
    position: sticky;
    bottom: 0;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 -14px;
    padding: 10px 18px;
    border-top: 1px solid var(--tfg-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    box-shadow: 0 -6px 18px rgba(15, 30, 50, 0.07);
}

.est-barra-guardar[hidden] {
    display: none;
}

.est-barra-guardar__info {
    margin-right: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--tfg-text-muted);
}

.est-solicitud--cambios .est-barra-guardar__info {
    color: #8a6100;
}

/* Sin acceso / sin publicación */
.est-sin-acceso {
    text-align: center;
    padding: 28px 24px;
}

.est-sin-acceso__icono {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    border-radius: 18px;
    background: #fdeef0;
    color: #c8102e;
    font-size: 26px;
}

.est-sin-acceso h2 {
    margin: 6px 0 8px;
    font-size: 17px;
    color: var(--tfg-text-strong);
}

/* ========================================================================== */
/* PUBLICACIÓN DE DEFENSAS (publidefensas.php)                                */
/* ========================================================================== */
.est-portada {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 10px;
    padding: 8px 12px;
    border-bottom: 3px solid var(--tfg-accent);
    background: #ffffff;
    border-radius: var(--int-radio) var(--int-radio) 0 0;
}

.est-portada__logo {
    height: 54px;
    width: auto;
}

.est-portada__ugr {
    height: 46px;
    width: auto;
}

/* Logotipos enlazados a educacion.ugr.es y www.ugr.es (v41) */
.est-portada__enlace {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 6px;
}

.est-portada__enlace:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.est-portada__textos {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.est-portada__textos strong {
    font-size: 15px;
    color: var(--tfg-text-strong);
}

.est-portada__textos span {
    font-size: 12px;
    color: var(--tfg-text-muted);
}

.est-portada__idiomas {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.est-portada__idiomas a {
    padding: 3px 9px;
    border: 1px solid var(--tfg-border);
    border-radius: 999px;
    color: var(--tfg-text-strong);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.est-portada__idiomas a.est-idioma--activo {
    border-color: var(--tfg-accent);
    background: var(--tfg-accent);
    color: var(--tfg-on-accent);
}

.est-salir {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.est-salir__usuario {
    font-size: 12px;
    font-weight: 700;
}

.est-acceso {
    max-width: 440px;
}

.est-grupo-n {
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--tfg-header-bg);
    font-size: 11px;
    font-weight: 700;
}

/* ========================================================================== */
/* PANTALLAS ESTRECHAS                                                        */
/* ========================================================================== */
@media (max-width: 760px) {
    .est-peticiones {
        grid-template-columns: 1fr;
    }

    .est-defensa {
        flex-wrap: wrap;
    }

    .est-ficha__cabecera {
        flex-wrap: wrap;
    }

    .est-ficha__correo {
        margin-left: 0;
    }

    .est-portada__textos span,
    .est-portada__ugr,
    .est-portada__enlace--ugr {
        display: none;
    }
}

/* Publicación de adjudicaciones: nota de la publicación (plazos, reclamaciones...) */
.est-publicacion-nota {
    margin: 0 0 8px;
}

/* Mis solicitudes: flecha para desplegar el resto de peticiones bajo la fila */
.est-flecha {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--tfg-border);
    border-radius: 50%;
    background: #fff;
    color: var(--tfg-accent);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.15s ease;
}

.est-flecha:hover {
    background: var(--tfg-row-hover);
}

.est-flecha--abierta,
.est-flecha--abierta:hover {
    transform: rotate(90deg);
    background: var(--tfg-accent);
    color: var(--tfg-on-accent, #fff);
}

.est-fila-detalle {
    flex-basis: 100%;
    width: 100%;
    padding: 10px 14px 12px 52px;
    border-top: 1px dashed var(--tfg-border);
    background: var(--tfg-row-alt);
    white-space: normal;
    animation: tt-fundido 0.2s ease-out;
}

.est-fila-detalle__lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 4px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
}

.est-fila-detalle__lista li {
    display: flex;
    gap: 7px;
    align-items: baseline;
}

.est-fila-detalle__opcional {
    margin: 8px 0 0;
    font-size: 12px;
}

/* ==========================================================================
   Solic_Adjudica_est.php: filas y cabecera algo más altas
   (los iconos, la letra de la cabecera, el verde de las celdas editables y el
   ancho automático de la columna de acciones están en tabla_tfg.css)
   ========================================================================== */
#tabla-adjudicaciones .tabulator .tabulator-row .tabulator-cell,
#tabla-solicitudes .tabulator .tabulator-row .tabulator-cell {
    padding-top: 9px;
    padding-bottom: 9px;
}

#tabla-adjudicaciones .tabulator .tabulator-header .tabulator-col .tabulator-col-content,
#tabla-solicitudes .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding-top: 11px;
    padding-bottom: 11px;
}

/* ==========================================================================
   Renuncias (expedientes sin efecto liberados para la 2ª fase): solo lectura
   ========================================================================== */
.est-renuncias {
    margin-top: 1.25rem;
    border-left: 4px solid var(--int-ambar);
}
.est-renuncias__lista {
    list-style: none;
    margin: .75rem 0 0;
    padding: 0;
    display: grid;
    gap: .6rem;
}
.est-renuncias__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .75rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    background: var(--tfg-row-alt);
    opacity: .9;
}
.est-renuncias__item strong {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

/* Publicación de adjudicaciones: texto de cabecera (campo Cabecera, v48) */
.est-publicacion-cabecera {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 12px;
    padding: 12px 16px;
    border-left: 5px solid var(--tfg-accent, #24497a);
    border-radius: 8px;
    background: var(--tfg-accent-soft, #eef3fa);
    color: var(--tfg-text, #1f2937);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

.est-publicacion-cabecera i {
    color: var(--tfg-accent, #24497a);
    flex: 0 0 auto;
}
