/*
 * Estilos compartidos entre el portal del docente y el institucional.
 *
 * Estas 222 reglas estaban DUPLICADAS byte a byte en docente.css y en
 * institucional.css. Las dos hojas nunca se cargan a la vez -una es para el
 * rol docente y la otra para jefe, direccion y administrador-, asi que la
 * duplicacion no se notaba: simplemente habia que acordarse de cambiar las dos
 * cada vez, y bastaba olvidar una para que los paneles se separaran poco a
 * poco.
 *
 * Solo se movieron las reglas que cumplen las tres condiciones:
 *   · aparecen UNA sola vez en cada hoja,
 *   · tienen exactamente el mismo cuerpo,
 *   · ninguna otra hoja las redefine distinto.
 *
 * Se carga DESPUES de portal_docente.css y ANTES de la hoja del rol, para que
 * el orden de cascada no cambie: lo especifico del rol sigue ganando.
 *
 * Verificado comparando los estilos computados de cada elemento de la pagina
 * antes y despues del cambio.
 */

* {
    box-sizing: border-box;
}

.contenedor {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    background: #ffffff;
}

.contenido-principal {
    padding-top: 20px;
    padding-bottom: 30px;
}

.header {
    width: 100%;
    margin-top: 24px;
    background: #EAEAEA;
}

.header-izquierda, .header-derecha {
    width: 220px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-izquierda {
    gap: 12px;
}

.header-izquierda img {
    max-width: 200px;
    max-height: 210px;
    width: auto;
    height: auto;
}

.header-derecha img {
    max-width: 220px;
    max-height: 160px;
    width: auto;
    height: auto;
}

.header-central {
    width: 460px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
}

.header-central .nombre-dependencia {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
}

.header-central .slogan {
    font-size: 13px;
    font-style: italic;
    margin-top: 6px;
}

.menu-global {
    border-bottom: 1px solid #000000;
}

.menu-global-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.menu-global-lista a {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    color: #898989;
    font-size: 13px;
    font-style: normal;
    text-decoration: none;
}

.menu-global-lista a:hover {
    text-decoration: underline;
}

.menu-global-lista a[aria-current="page"] {
    color: #333333;
    font-weight: bold;
}

.notificaciones-item {
    position: relative;
}

.notificaciones-dropdown {
    position: relative;
}

.notificaciones-boton {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #898989;
    font-size: 13px;
    list-style: none;
}

.notificaciones-boton::-webkit-details-marker {
    display: none;
}

.notificaciones-boton:hover {
    text-decoration: underline;
}

.notificaciones-contador {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #de006e;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
}

.notificaciones-vacio {
    margin: 0;
    padding: 16px;
    font-size: 13px;
    color: #898989;
}

.notificaciones-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}

.notificacion {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.notificacion:last-child {
    border-bottom: none;
}

.notificacion-no-leida {
    background: #fbeef4;
}

.notificacion-encabezado {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.notificacion-titulo {
    font-size: 13px;
    font-weight: bold;
    color: #000000;
}

.notificacion-fecha {
    flex-shrink: 0;
    font-size: 11px;
    color: #898989;
}

.notificacion-descripcion {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #555555;
}

.notificacion-pill {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

.notificacion-pill-error {
    background: #fbe1e6;
    color: #c0245b;
}

.notificacion-pill-revision {
    background: #fff2df;
    color: #b06a00;
}

.notificacion-pill-info {
    background: #ddf3e4;
    color: #2f8b4f;
}

.notificacion-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.notificacion-ir {
    font-size: 11px;
    font-weight: bold;
    color: #4fa851;
    text-decoration: none;
}

.notificacion-ir:hover {
    text-decoration: underline;
}

.notificacion-marcar {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #7fcc27;
    border-radius: 4px;
    background: #ffffff;
    color: #4fa851;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

.notificacion-marcar:hover {
    background: #eef8e2;
}

.notificacion-no-leida .notificacion-marcar {
    display: inline-flex;
}

.notificacion-visto-label {
    display: inline-flex;
    font-size: 11px;
    color: #4fa851;
}

.notificacion-no-leida .notificacion-visto-label {
    display: none;
}

.migas {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    color: #de006e;
    font-size: 13px;
    padding: 14px 0;
}

.migas a {
    color: #de006e;
    text-decoration: none;
}

.migas a:hover {
    text-decoration: underline;
}

.migas-separador {
    margin: 0 6px;
    color: #de006e;
}

.migas-actual {
    color: #de006e;
}

.buscador {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 20px;
}

.buscador input[type="search"] {
    flex: 0 1 220px;
    padding: 6px 10px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.buscador button {
    background: #7fcc27;
    border: none;
    border-radius: 3px;
    width: 34px;
    cursor: pointer;
    color: #ffffff;
}

.buscador button:hover {
    background: #6bb31d;
}

.carrusel:hover .carrusel-item {
    animation-play-state: paused;
}

.carrusel-item-texto {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
}

.carrusel-item-texto h3 {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    color: #000000;
}

.carrusel-item-texto p {
    flex: 1;
    margin: 0;
    font-size: 12px;
    color: #555555;
}

.carrusel-item-texto a {
    align-self: flex-start;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 3px;
    background: #7fcc27;
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
}

.carrusel-item-texto a:hover {
    background: #6bb31d;
}

.banner-teschi {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 15px;
    background: #a4c639;
    text-decoration: none;
}

.banner-teschi img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.acerca-sistema {
    padding: 15px 0;
}

.acerca-sistema h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #000000;
}

.acerca-sistema p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #555555;
}

.acerca-sistema p:last-child {
    margin-bottom: 0;
}

.caracteristica {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.caracteristica-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #ddf3e4;
    font-size: 20px;
}

.caracteristica h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #000000;
}

.caracteristica p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666666;
}

.acceso-secundario {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 10px;
    background: #f2f2f2;
    color: #333333;
    text-decoration: none;
    font-size: 13px;
    text-align: center;
}

.acceso-secundario-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #7fcc27;
    color: #ffffff;
    font-size: 32px;
}

.footer {
    width: 100%;
    margin-top: 20px;
    padding: 16px 0;
    background: linear-gradient(#f5f5f5, #dcdcdc);
    border-top: 1px solid #cccccc;
}

.footer-col {
    flex: 1;
}

.footer-col p {
    margin: 0 0 4px;
}

.footer-col a {
    color: #555555;
}

.footer-izquierda {
    text-align: right;
}

.footer-derecha {
    text-align: left;
}

.footer-legal {
    margin: 12px 0 0;
    text-align: center;
    font-size: 11px;
    color: #777777;
}

.footer-legal a {
    color: #777777;
}

.header-izquierda, .header-central, .header-derecha {
    width: 100%;
}

.footer-izquierda, .footer-derecha {
    text-align: left;
}

.admin-titulo {
    margin: 20px 0 4px;
    font-size: 20px;
}

.admin-subtitulo {
    margin: 0 0 16px;
    font-size: 13px;
    color: #555555;
}

.admin-tabla-envoltura {
    overflow-x: auto;
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.admin-tabla-vistas {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-tabla-vistas thead th {
    background: #f7f7f7;
    color: #333333;
    font-weight: bold;
    white-space: nowrap;
}

.admin-tabla-vistas tbody tr:last-child th, .admin-tabla-vistas tbody tr:last-child td {
    border-bottom: none;
}

.admin-tabla-apartado {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

.admin-tabla-apartado img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
}

.admin-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
}

.admin-check-visto {
    background: #ddf3e4;
    color: #2f8b4f;
}

.admin-check-pendiente {
    background: #f2f2f2;
    color: #aaaaaa;
}

.cedula-aviso {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.cedula-aviso-exito {
    background: #ddf3e4;
    color: #2f8b4f;
}

.cedula-aviso-error {
    background: #fbe1e6;
    color: #c0245b;
}

.cedula-apartados {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.cedula-apartado-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #333333;
    font-size: 13px;
    text-decoration: none;
}

.cedula-apartado-link:last-child {
    border-bottom: none;
}

.cedula-apartado-link:hover {
    background: #f7f7f7;
}

.cedula-apartado-activo {
    background: #ddf3e4;
    font-weight: bold;
}

.cedula-apartado-contador {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #eaeaea;
    color: #555555;
    font-size: 11px;
}

.cedula-apartado-activo .cedula-apartado-contador {
    background: #7fcc27;
    color: #ffffff;
}

.cedula-contenido {
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.cedula-contenido h2 {
    margin: 0 0 16px;
    font-size: 17px;
}

.cedula-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    margin-bottom: 20px;
    background: #f7f7f7;
    border-radius: 6px;
}

.cedula-form label {
    font-size: 12px;
    color: #555555;
}

.cedula-form-controles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cedula-form-controles input[type="file"] {
    flex: 1;
    min-width: 200px;
    font-size: 12px;
}

.cedula-form-controles button[type="submit"] {
    padding: 9px 24px;
    border: none;
    border-radius: 10px;
    background: #7fcc27;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(127, 204, 39, 0.35);
}

.cedula-form-controles button[type="submit"]:hover {
    background: #6bb31d;
}

.cedula-vacio {
    font-size: 13px;
    color: #898989;
}

.cedula-evidencias {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cedula-evidencia {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cedula-evidencia:last-child {
    border-bottom: none;
}

.cedula-evidencia-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cedula-evidencia-campo {
    font-size: 12px;
    color: #333333;
}

.cedula-evidencia-meta {
    font-size: 11px;
    color: #898989;
}

.cedula-evidencia-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cedula-evidencia-acciones a {
    color: #4fa851;
    font-size: 12px;
    text-decoration: none;
}

.cedula-evidencia-acciones a:hover {
    text-decoration: underline;
}

.cedula-evidencia-eliminar {
    padding: 4px 10px;
    border: 1px solid #c0245b;
    border-radius: 4px;
    background: #ffffff;
    color: #c0245b;
    font-size: 11px;
    cursor: pointer;
}

.cedula-evidencia-eliminar:hover {
    background: #fbe1e6;
}

.cedula-descripcion {
    margin: 0 0 18px;
    font-size: 13px;
    color: #555555;
}

.cedula-grupo {
    margin-bottom: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.cedula-grupo-titulo {
    padding: 10px 14px;
    background: #f7f7f7;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.cedula-grupo-body {
    display: flex;
    flex-direction: column;
}

.cedula-doc-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
}

.cedula-doc-slot-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 180px;
    min-width: 0;
}

.cedula-doc-slot-info span:last-child {
    min-width: 0;
    overflow-wrap: break-word;
}

.cedula-doc-slot-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eaeaea;
    color: #898989;
    font-size: 11px;
}

.cedula-doc-slot-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cedula-doc-slot-acciones a {
    color: #4fa851;
    font-size: 12px;
    text-decoration: none;
}

.cedula-doc-slot-acciones a:hover {
    text-decoration: underline;
}

.cedula-btn-ver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #f2f2f2;
    padding: 9px 20px;
    color: #a8a8a8;
    font-size: 13px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.cedula-btn-ver:hover {
    background: #ececec;
    border-color: #dcdcdc;
}

.cedula-btn-ver:disabled {
    cursor: not-allowed;
}

.cedula-btn-ver:disabled:hover {
    background: #f2f2f2;
    border-color: #e6e6e6;
}

.cedula-doc-slot-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cedula-doc-slot-form button[type="submit"] {
    padding: 9px 24px;
    border: none;
    border-radius: 10px;
    background: #7fcc27;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(127, 204, 39, 0.35);
}

.cedula-doc-slot-form button[type="submit"]:hover {
    background: #6bb31d;
}

.cedula-resena-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    margin-bottom: 20px;
    background: #f7f7f7;
    border-radius: 6px;
}

.cedula-resena-form label {
    font-size: 12px;
    color: #555555;
}

.cedula-resena-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
}

.cedula-resena-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cedula-resena-pie small {
    color: #898989;
}

.cedula-resena-pie button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #7fcc27;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.cedula-resena-pie button:hover {
    background: #6bb31d;
}

.cedula-form-titulo {
    font-size: 13px;
    color: #333333;
}

.cedula-form-campos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.cedula-campo-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #555555;
}

.cedula-campo-label input[type="text"], .cedula-campo-label input[type="email"], .cedula-campo-label input[type="tel"], .cedula-campo-label input[type="password"] {
    padding: 6px 8px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
}

.historial-grupos {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.historial-grupo {
    background: linear-gradient(to right, #dff5e3, #ffffff 55%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.historial-grupo-resumen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
}

.historial-grupo-resumen::-webkit-details-marker {
    display: none;
}

.historial-grupo-izquierda {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.historial-grupo-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #7fcc27;
    font-size: 20px;
}

.historial-grupo-textos {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.historial-grupo-etiqueta {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4fa851;
}

.historial-grupo-titulo {
    font-size: 18px;
    font-weight: bold;
    color: #222222;
}

.historial-grupo-derecha {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.historial-grupo-contador {
    padding: 8px 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #cdeed7;
    color: #4fa851;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
}

.historial-grupo-contador-vacio {
    color: #b7b7b7;
    border-color: #ededed;
}

.historial-grupo-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #7fcc27;
    color: #ffffff;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.historial-grupo[open] .historial-grupo-chevron {
    transform: rotate(180deg);
}

.historial-grupo-cuerpo {
    padding: 0 22px 18px 80px;
}

.historial-acciones {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.historial-acciones a {
    color: #4fa851;
    font-size: 12px;
    text-decoration: none;
}

.historial-acciones a:hover {
    text-decoration: underline;
}

.visor-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visor-modal[hidden] {
    display: none;
}

body.visor-modal-abierto {
    overflow: hidden;
}

.visor-modal-fondo {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.visor-modal-caja {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(900px, 92vw);
    height: min(80vh, 900px);
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.visor-modal-encabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eeeeee;
}

.visor-modal-titulo {
    font-weight: bold;
    font-size: 14px;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visor-modal-acciones {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.visor-modal-descargar {
    color: #4fa851;
    font-size: 12px;
    text-decoration: none;
}

.visor-modal-descargar:hover {
    text-decoration: underline;
}

.visor-modal-cerrar {
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #898989;
    cursor: pointer;
    padding: 0 4px;
}

.visor-modal-cerrar:hover {
    color: #333333;
}

.visor-modal-cuerpo {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    padding: 12px;
}

.visor-modal-cuerpo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.visor-modal-cuerpo iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.visor-modal-sin-preview {
    font-size: 13px;
    color: #555555;
    text-align: center;
    padding: 24px;
}

.perfil-foto-card, .perfil-form, .perfil-seccion-clave {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.perfil-foto-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.perfil-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #ddf3e4;
    overflow: hidden;
    margin-bottom: 10px;
}

.perfil-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfil-avatar-iniciales {
    font-size: 28px;
    font-weight: bold;
    color: #2f8b4f;
}

.perfil-foto-nombre {
    margin: 4px 0 0;
    font-size: 16px;
}

.perfil-foto-correo {
    margin: 0 0 10px;
    font-size: 12px;
    color: #898989;
}

.perfil-foto-form {
    width: 100%;
}

.perfil-foto-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 20px;
    border: 1px solid #cdeed7;
    border-radius: 10px;
    background: #ffffff;
    color: #4fa851;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.perfil-foto-boton:hover {
    background: #f7fcf8;
}

.perfil-foto-boton input[type="file"] {
    display: none;
}

.perfil-foto-quitar {
    width: 100%;
    margin-top: 8px;
    padding: 9px 20px;
    border: 1px solid #f0d6dd;
    border-radius: 10px;
    background: #ffffff;
    color: #c0245b;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.perfil-foto-quitar:hover {
    background: #fbe1e6;
}

.perfil-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.perfil-form-grid .cedula-campo-label {
    font-size: 12px;
    color: #555555;
    gap: 6px;
}

.perfil-form-acciones {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.perfil-form-acciones button {
    padding: 9px 24px;
    border: none;
    border-radius: 10px;
    background: #7fcc27;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(127, 204, 39, 0.35);
}

.perfil-form-acciones button:hover {
    background: #6bb31d;
}

.perfil-subtitulo {
    margin: 0 0 4px;
    font-size: 17px;
}

.resumen-progreso-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.resumen-progreso-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.resumen-progreso-etiqueta {
    display: block;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4fa851;
}

.resumen-progreso-titulo {
    margin: 2px 0 0;
    font-size: 18px;
}

.resumen-progreso-pct {
    font-size: 30px;
    font-weight: bold;
    color: #4fa851;
    flex-shrink: 0;
}

.resumen-progreso-track {
    height: 10px;
    border-radius: 6px;
    background: #eeeeee;
    overflow: hidden;
    margin-bottom: 14px;
}

.resumen-progreso-fill {
    height: 100%;
    border-radius: 6px;
    background: #7fcc27;
    transition: width 0.4s ease;
}

.resumen-progreso-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #555555;
}

.resumen-progreso-meta strong {
    color: #222222;
}

.resumen-bienvenida-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(to right, #dff5e3, #ffffff 70%);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.resumen-bienvenida-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #7fcc27;
    overflow: hidden;
}

.resumen-bienvenida-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resumen-bienvenida-iniciales {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
}

.resumen-bienvenida-icono {
    font-size: 30px;
    color: #ffffff;
}

.resumen-bienvenida-textos {
    min-width: 0;
}

.resumen-bienvenida-etiqueta {
    display: block;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4fa851;
}

.resumen-bienvenida-nombre {
    margin: 2px 0 4px;
    font-size: 18px;
    text-transform: uppercase;
}

.resumen-bienvenida-detalle {
    margin: 0;
    font-size: 13px;
    color: #555555;
}

.resumen-bienvenida-detalle a {
    color: #4fa851;
}
