    html,
    body {
      height: 100%;
      margin: 0;
      overflow: hidden;
      /* 🚫 quita el scroll */
    }

    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #fff;
      color: #111;
      display: flex;
      flex-direction: column;
      height: 100vh;
    }

    /* Header */
    header {
      position: sticky;
      background: #222;
      padding: 20px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    header input {
      font-size: larger;
      height: 1.1em;
      flex: 1;
      margin-right: 10px;
      padding: 8px;
      border: none;
      border-radius: 8px;
    }

    /* Contenido */
    .contenido {
      flex: 1;
      padding: 0px 0px 20px;
      overflow-y: auto;
    }

    .titulo {
      font-weight: bold;
      text-align: center;
      font-size: 1.4em;
      background: #b3003c;
      color: #fff;
      padding: 10px 20px;
      margin: 0;
      position: sticky;
    }

    .contenido h2 {
      font-style: italic;
      margin: 10px 0px;
    }

    .subtitu {
      color: red;
      padding: 15px 20px 0px;
      text-align: center;
      font-size: 1.5em;
      font-weight: bold;
    }

    table {
      border-collapse: collapse;
      border: 0px;
    }

    td {
      text-align: justify;
      border: 0px;
      height: 30px;
    }

    /* Footer */
    footer {
      position: sticky;
      bottom: 0;
      background: #222;
      padding: 15px 15px 70px 15px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    footer button {
      background: none;
      border: none;
      color: #fff;
    }

    .paginador {
      font-size: 1.1em;
      max-width: 200px;
      /* ajusta según necesites */
      height: 3em;
      border-radius: 8px;
    }

    .extra {
      font-size: 30px;
      background: red;
      color: #fff;
      font-weight: bold;
      border: none;
      border-radius: 6px;
      padding: 10px;
      width: 60px;
      height: 60px;
    }

    .configuracion {
      width: 2.3em;
      height: 2.3em;
      vertical-align: middle;
    }

    .boton {
      width: 2em;
      height: auto;
      vertical-align: middle;
      /* Alineación vertical similar al emoji */
    }

    .curiosidad {
      width: 1.5em;
      height: auto;
      vertical-align: middle;
      /* Alineación vertical similar al emoji */
    }

    .language {
      width: 3.5em;
      height: auto;
      vertical-align: middle;
      /* Alineación vertical similar al emoji */
    }

    /* Estilo del loader */
    #loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 24px;
      z-index: 9999;
    }

    #loader img {
      width: 6em;
      height: auto;
    }

    /* Ocultar el contenido principal inicialmente */
    #contenido {
      display: none;
    }

    button.scale-effect:active img {
      transform: scale(0.8);
    }

    .footer-button:active {
      transform: scale(0.8);
    }

    .idioma-invisible {
      display: none;
    }

    td.idioma-visible,
    td.idioma-invisible {
      /*padding: 4px 20px 4px 0px;*/
      overflow-wrap: break-word;
    }

    .instruccion {
      color: red;
      font-style: italic;
    }

    .opcion{      
      padding: 10px;
      border-bottom: 1px solid #000;
      display: grid;
      gap: 6px;
    }
    .elstronger{      
      padding: 0px;
      -webkit-line-clamp: 1;
      border: none;
      overflow-y: hidden;
      max-height: calc(1.2em * 1);
      display: -webkit-box;
      -webkit-box-orient: vertical;
      text-overflow: ellipsis;
      line-height: 1.4em;
      box-sizing: border-box;
      white-space: normal;
    }

    .sub_apartado {
      text-align: left;
      font-size: larger;
      font-weight: bold;
      padding: 15px 0px;
    }
    
    .sub_texto {
      text-align: center;
      font-size: larger;
      font-weight: bold;
      padding: 15px 0px;
      line-height: 1.5;
      white-space: pre-line;
    }

    .sub_apartado div.cont_apart {
      align-items: center;
    }
    .sub_apartado .txt_apart {
      text-align: center;
      width: auto;
    }

    .apartado {
      font-weight: bold;
      padding: 12px 0px 0px;
      text-align: center;
      font-size: 1.15em;
    }

    /* Fondo oscuro semitransparente */
    #overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 999;
      justify-content: center;
      align-items: center;
    }

    /* Cartel azul */
    #popup {
      margin: 0% 5% 20% 5%;
      background-color: #0047ba;
      color: white;
      border-radius: 12px;
      padding: 20px;
      position: relative;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    /* Botón X */
    #popup button.close-btn {
      position: absolute;
      top: -15px;
      right: -15px;
      background-color: white;
      color: #0047ba;
      border: none;
      border-radius: 50%;
      width: 35px;
      height: 35px;
      font-size: 20px;
      font-weight: bold;
      cursor: pointer;
    }

    #popup h3 {
      white-space: pre-line;
      font-size: 1.3em;
      background: none;
      margin: 0;
    }

    .publico {
      white-space: nowrap;
      font-size: large;
      font-weight: bold;
      text-align: center;
      padding: 0px 20px;
      border: 2px solid black;
      width: 50%;
    }

    .campanas {
      text-align: left;
      width: 50%;
    }

    .color_tunica {
      font-weight: bold;
      text-align: left;
      width: 50%;
    }
    .la_clase {
      font-weight: bold;
      text-align: right;
      width: 50%;
    }

    .campana {
      width: 2.5em;
      height: auto;
      vertical-align: middle;
      /* Alineación vertical similar al emoji */
    }


    /*   AQUI VA LA CONFIGURACION     */

    #popup.formX-bg {
      background-color: white !important;
      color: black !important;
      transform: scale(1.3);
      /* 30% más grande */
    }

    .formX-contenedor {
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .formX-label {
      margin-top: 4px;
      font-weight: bold;
      font-size: 18px;
    }

    .formX-input {
      border: 2px solid black;
      border-radius: 10px;
      padding: 6px;
      font-size: 16px;
    }

    .formX-input-peq {
      font-size: 16px;
      width: 120px;
      border: 2px solid black;
      border-radius: 10px;
      padding: 5px;
    }

    .formX-radio-linea {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .formX-toggle-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .formX-toggle-switch {
      width: 48px;
      height: 20px;
      background: grey;
      border-radius: 50px;
      position: relative;
      cursor: pointer;
      padding: 3px;
      margin-top: 8px;
    }

    .formX-toggle-circle {
      width: 20px;
      height: 20px;
      background: white;
      border-radius: 50%;
      position: absolute;
      left: 3px;
      top: 3px;
      transition: 0.3s;
    }

    .formX-toggle-switch.activo .formX-toggle-circle {
      left: 30px !important;
    }

    .formX-toggle-switch.activo {
      background: #0047ba;
    }

    .formX-botones {
      display: flex;
      justify-content: space-between;
      margin-top: 15px;
      gap: 10px;
    }

    .formX-btn-cancelar,
    .formX-btn-aceptar {
      flex: 1;
      padding: 8px 12px;
      border: none;
      border-radius: 8px;
      font-weight: bold;
      cursor: pointer;
      font-size: 14px;
    }

    .formX-btn-cancelar {
      background: #ccc;
      color: black;
    }

    .formX-btn-aceptar {
      background: #0047ba;
      color: white;
    }


    /*-----------------Y ESTO ES DEL BUSCADOR EN CONFIGURACION-------------*/


    .nombre {
      font-weight: bold;
      font-size: 18px;
    }

    .fecha {
      font-size: 14px;
      color: #555;
    }

    .resaltado {
      background-color: yellow;
    }

    /*----------------------RESULTADOS-------------------------*/


    .superresultados {
      background: white;
      color: black;
      position: absolute;
      top: 55px;
      left: 10px;
      width: 350px;
      border: 1px solid #ccc;
      border-radius: 4px;
      max-height: 400px;
      overflow-y: auto;
      font-family: 'Arial', sans-serif;
      z-index: 10;
    }

    .opcion:last-child {
      border-bottom: none;
    }

    .highlight {
      font-weight: bold;
    }

    .aclarar_misa {
      font-size: 1.2em;
      text-align: center;
      font-weight: bold;
    }