:root {
    color-scheme: only light;
    --verde: #004231;
    --verde-oscuro: #0a5725;
    --amarillo: #f6c200;
    --fondo: #f3f3f3;
    --tarjeta: #ffffff;
    --texto: #2a2a2a;
    --muted: #6b6b6b;
    --linea: #e2e2e2;
    --campo: #d5d5d5;
    --boton: #4caf50;
    --boton-hover: #43a047;
    --rojo: #c62828;
    --aviso-fondo: #fdecec;
    --aviso-borde: #f0c2c2;
    --info-fondo: #e7f5fa;
    --info-borde: #b9dce8;
    --info-titulo: #0c6f8c;
    --sombra: 0 1px 3px rgba(0, 0, 0, 0.08);
    --ancho: 1240px;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
    background: #f3f3f3;
    color: #2a2a2a;
    color-scheme: only light;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    min-height: 100%;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  button,
  input,
  select {
    font-family: inherit;
    font-size: 14px;
    color-scheme: only light;
    background-color: #fff;
    color: #2a2a2a;
  }
  
  .cabecera {
    position: relative;
    background: var(--verde);
    color: #fafafa;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
  }
  
  .cabecera-tabla {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    border-spacing: 0;
    white-space: nowrap;
  }
  
  .cabecera-tabla td {
    border: 0;
    background: transparent;
    padding: 6px 8px;
    vertical-align: middle;
    text-align: left;
    white-space: nowrap;
  }
  
  .logo-celda {
    width: 148px;
  }
  
  .logo_image {
    height: 25px;
    width: 136px;
    display: block;
    vertical-align: middle;
  }
  
  .espacio {
    width: 100%;
  }
  
  .cabecera-tabla td.user_header {
    text-align: right;
    width: 1%;
  }
  
  .marca-carpeta {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: #fafafa;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
  }
  
  .header_name {
    color: #fafafa;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: right;
    text-transform: uppercase;
  }
  
  .exit_button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    color: #fafafa;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 700;
    padding: 0.2em;
    text-align: right;
    text-shadow: 0 2px 2px rgba(0, 0, 255, 0.52);
    text-transform: uppercase;
  }
  
  .exit_button:hover {
    text-decoration: underline;
  }
  
  .avatar-celda {
    display: none;
    width: 62px;
    text-align: right;
  }
  
  .avatar {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #e4e4e4;
    display: inline-grid;
    place-items: center;
  }
  
  .barra {
    background: var(--amarillo);
    color: #000;
    font-size: 13px;
    font-weight: 700;
  }
  
  .barra-inner {
    padding: 6px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .barra-correo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #000;
    font-weight: 700;
  }
  
  .barra-inner > label {
    flex: 0 0 auto;
    margin: 0;
  }
  
  .idioma {
    border: 0;
    background: transparent;
    color: #000;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    width: auto;
    max-width: 100%;
  }
  
  .contenedor {
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 16px 18px 40px;
  }
  
  .ruta-bar {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    min-height: 42px;
    padding: 5px 10px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    overflow: visible;
  }
  
  .chev {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #67b33a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    height: 32px;
    white-space: nowrap;
    padding: 0 20px 0 12px;
    margin-right: 4px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  }
  
  .chev + .chev {
    padding-left: 20px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  }
  
  .ruta-actual {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    color: #333;
    font-size: 14px;
  }
  
  .contenedor-angosto {
    max-width: 560px;
  }
  
  .contenedor-medio {
    max-width: 860px;
  }
  
  .tarjeta {
    background: var(--tarjeta);
    border: 1px solid #ececec;
    box-shadow: var(--sombra);
    padding: 22px 26px 26px;
  }
  
  .tarjeta h1 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
  }
  
  .campo {
    margin-bottom: 14px;
  }
  
  .campo label {
    display: block;
    margin-bottom: 4px;
    color: #4d4d4d;
    font-size: 13px;
  }
  
  .campo input,
  .campo select {
    width: 100%;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--campo);
    border-radius: 2px;
    background: #fff;
    color: var(--texto);
  }
  
  .campo input:focus,
  .campo select:focus,
  .idioma:focus {
    outline: 2px solid #b7dfb9;
    border-color: #7dbe80;
  }
  
  .notas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
  }
  
  .nota-box {
    background: #f3f3f3;
    border: 1px solid #e6e6e6;
    min-height: 74px;
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
  
  .nota-box strong {
    display: block;
    font-size: 16px;
  }
  
  .nota-box span,
  .nota-box small {
    display: block;
    color: #444;
    font-size: 13px;
  }
  
  .ayuda {
    margin: 10px 0 16px;
    color: #555;
    font-size: 12.5px;
  }
  
  .centro {
    text-align: center;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--boton);
    color: #fff;
    border: 0;
    border-radius: 4px;
    min-width: 118px;
    height: 36px;
    padding: 0 16px;
    font-weight: 700;
    cursor: pointer;
  }
  
  .btn:hover {
    background: var(--boton-hover);
  }
  
  .migas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .miga {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--verde);
    color: #fff;
    border-radius: 3px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 700;
  }
  
  .miga.actual {
    background: #fff;
    color: #333;
    border: 1px solid #cfcfcf;
    font-weight: 600;
  }
  
  .flecha {
    color: var(--verde);
    font-size: 16px;
    font-weight: 700;
  }
  
  .linea-examen {
    margin: 0 0 14px;
    font-size: 14px;
  }
  
  .tabla-scroll {
    width: 100%;
    max-width: none;
    overflow: visible;
  }
  
  table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 12px;
    white-space: nowrap;
  }
  
  .tabla-simple {
    min-width: 760px;
  }
  
  .tabla-ajusta {
    overflow-x: auto;
  }
  
  .tabla-ajusta .tabla-simple {
    min-width: 0;
    width: 100%;
    white-space: normal;
  }
  
  @media (max-width: 700px) {
    .tabla-ajusta .tabla-simple {
      font-size: 11px;
    }
  
    .tabla-ajusta th,
    .tabla-ajusta td {
      padding: 6px 4px;
      white-space: normal;
    }
  }
  
  th,
  td {
    border: 1px solid #cfcfcf;
    padding: 6px 8px;
    text-align: center;
    vertical-align: middle;
  }
  
  thead th {
    background: #fafafa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
  }
  
  .grupos th {
    background: #f3f3f3;
    font-size: 12px;
  }
  
  .materia {
    text-align: center;
    line-height: 1.25;
  }
  
  .nombre {
    text-align: center;
    line-height: 1.25;
  }
  
  .nota-ok {
    background: #2e9d4a;
    color: #fff;
    font-weight: 700;
  }
  
  .btn-tabla {
    margin-top: 16px;
  }
  
  .btn-continuar {
    background: var(--boton);
    border-radius: 2px;
    min-width: 132px;
    height: 34px;
    gap: 6px;
    font-weight: 600;
  }
  
  .btn-continuar:hover {
    background: var(--boton-hover);
  }
  
  .aviso {
    background: var(--aviso-fondo);
    border: 1px solid var(--aviso-borde);
    color: #a32020;
    padding: 16px 18px;
    margin-bottom: 16px;
    font-size: 15px;
  }
  
  .aviso p {
    margin: 0;
  }
  
  .bloque-examen {
    border: 1px solid #e4e4e4;
    padding: 28px 22px 24px;
    text-align: center;
  }
  
  .bloque-examen h2 {
    margin: 0 0 22px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
  }
  
  .sigla {
    margin: 0 0 18px;
    font-size: 18px;
  }
  
  .programada {
    margin: 0;
    color: var(--rojo);
    font-weight: 700;
    font-size: 18px;
  }
  
  .programada-fecha {
    margin: 2px 0 18px;
    color: var(--rojo);
    font-size: 16px;
  }
  
  .info {
    max-width: 520px;
    margin: 0 auto 26px;
    background: var(--info-fondo);
    border: 1px solid var(--info-borde);
    border-radius: 8px;
    padding: 18px 16px 16px;
    text-align: center;
  }
  
  .info h3 {
    margin: 0 0 12px;
    color: var(--info-titulo);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .info .destacado {
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: 16px;
    line-height: 1.35;
  }
  
  .info p {
    margin: 3px 0;
    font-size: 16px;
  }
  
  .sin-intento {
    margin: 8px auto 28px;
    max-width: 420px;
    font-size: 22px;
    font-weight: 650;
    line-height: 1.3;
  }
  
  .historial {
    text-align: left;
    margin-top: 8px;
  }
  
  .historial h3 {
    margin: 0 0 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  @media (max-width: 800px) {
    .barra-inner {
      padding-left: 10px;
      padding-right: 10px;
    }
  
    .bloque-examen h2 {
      font-size: 22px;
    }
  
    .sin-intento {
      font-size: 18px;
    }
  }
  
  @media (max-width: 700px) {
    .cabecera {
      position: relative;
      height: 84px;
      min-height: 84px;
      font-size: 13px;
    }
  
    .cabecera-tabla,
    .cabecera-tabla tbody,
    .cabecera-tabla tr {
      display: block;
      height: 84px;
    }
  
    .cabecera-tabla td {
      padding: 0;
    }
  
    .espacio {
      display: none;
    }
  
    .logo-celda {
      display: block;
      position: absolute;
      top: 4px;
      left: 16px;
      width: auto;
    }
  
    .logo_image {
      width: 128px;
      height: 24px;
    }
  
    .cabecera-tabla td.user_header {
      display: block;
      position: static;
      width: auto;
      height: 0;
      padding: 0;
      text-align: center;
      white-space: normal;
    }
  
    .marca-carpeta {
      display: block;
      position: absolute;
      top: 5px;
      right: 8px;
      left: auto;
      transform: none;
      margin: 0;
      color: rgba(255, 255, 255, 0.55);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.2px;
      line-height: 1;
      text-align: right;
      white-space: nowrap;
      pointer-events: none;
    }
  
    .header_name {
      position: absolute;
      top: 36px;
      left: 8px;
      right: 70px;
      font-size: 12.5px;
      font-weight: 700;
      line-height: 1.1;
      text-align: right;
      white-space: nowrap;
    }
  
    .exit_button {
      position: absolute;
      top: 56px;
      left: auto;
      right: 70px;
      width: auto;
      justify-content: flex-end;
      margin: 0;
      font-size: 11px;
      font-weight: 700;
    }
  
    .avatar-celda {
      display: block;
      position: absolute;
      top: 26px;
      right: 8px;
      width: auto;
    }
  
    .avatar {
      width: 56px;
      height: 56px;
      border-radius: 0;
      background: #e6e6e6;
    }
  
    .barra-inner {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: 0;
      background: #fff;
    }
  
    .barra-correo {
      display: flex;
      flex: none;
      width: 100%;
      min-width: 0;
      overflow: hidden;
      box-sizing: border-box;
      padding: 7px 8px;
      background: var(--amarillo);
      font-size: 11px;
      font-weight: 700;
      line-height: 1.2;
      color: #000;
      white-space: nowrap;
      text-overflow: clip;
    }
  
    .barra-inner > label {
      display: flex;
      justify-content: flex-end;
      flex: none;
      width: 100%;
      max-width: none;
      box-sizing: border-box;
      margin: 0;
      padding: 3px 14px 2px;
      background: #fff;
    }
  
    .idioma {
      display: block;
      width: auto;
      max-width: 100%;
      margin: 0;
      font-size: 13px;
      font-weight: 400;
      color: #000;
      background: transparent;
      text-align: right;
    }
  
    .ruta-bar {
      width: 100%;
      max-width: calc(100vw - 20px);
      min-width: 0;
      box-sizing: border-box;
      overflow: hidden;
    }
  
    .chev {
      flex: 0 1 auto;
      min-width: 0;
      height: 30px;
      gap: 4px;
      font-size: 12px;
      padding: 0 16px 0 8px;
      margin-right: 2px;
    }
  
    .chev + .chev {
      padding-left: 16px;
    }
  
    .chev svg {
      width: 13px;
      height: 13px;
      flex: 0 0 auto;
    }
  
    .contenedor {
      padding: 16px 10px 32px;
    }
  
    .tarjeta,
    .bloque-examen {
      padding: 16px 12px 18px;
    }
  
    .notas {
      grid-template-columns: 1fr;
    }
  
    .bloque-examen h2,
    .sigla,
    .programada {
      font-size: 18px;
    }
  
    .info .destacado,
    .info p {
      font-size: 15px;
    }
  }
  