/* Lectura Labial V0.1.2 */

:root :where(.is-layout-constrained) > :last-child {
    height: 0px!important;
}

.ll-app{
    max-width:900px;
    margin:30px auto;
    /*font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;*/
    color:#172033
}

.ll-header{
    /*
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:20px
    */
    display: flex; /* Coloca los divs hijos en horizontal */
    gap: 10px;     /* Espacio opcional entre los divs */
}
.ll-header div {
  flex: 1;       /* Opcional: hace que ambos ocupen el mismo ancho */
  /*padding: 20px;*/
  background-color: #f0f0f0;
}

.ll-header h2{
    margin:.2em 0;
    font-size:2rem
}

.ll-eyebrow{
    font-size:.75rem;
    letter-spacing:.12em;
    font-weight:700;
    opacity:.65
}

.ll-progress{
    font-weight:700;
    padding:10px 14px;
    border:1px solid #ddd;
    border-radius:999px
}

.ll-video-panel,
.ll-question,
.ll-result{
    background:#fff;
    border:1px solid #e1e5ea;
    border-radius:18px;
    padding:22px;
    margin-bottom:18px;
    box-shadow:0 8px 28px rgba(0,0,0,.05)
}

.ll-video-wrap{
    position:relative;
    width:100%;
    aspect-ratio:2 / 1;
    background:#111;
    border-radius:12px;
    overflow:hidden
}


.ll-youtube{
    width:100%;
    height:100%;
    border:0
}

.ll-youtube-player{
    width:100%;
    height:100%;
    min-height:320px;
    border:0
}

.ll-video-empty{
    padding:30px;
    text-align:center;
    background:#f6f8fb;
    border-radius:12px
}

.ll-video-actions{
    /*display:flex;*/
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px
}

.ll-button{
    border:0;
    border-radius:10px;
    padding:11px 16px;
    cursor:pointer;
    font-weight:700
}

.ll-primary{
    background:#1d4ed8;
    color:#fff;
    margin-top:18px
}

.ll-secondary{
    background:#eef2f7;
    color:#172033
}

.ll-meta{
    display:flex;
    justify-content:space-between;
    font-size:.9rem;
    opacity:.75
}

.ll-question h3{
    font-size:1.35rem;
    margin:10px 0
}

/*
 * Respuestas de selección múltiple.
 *
 * Los radio buttons desaparecen y cada respuesta
 * se presenta como un botón independiente.
 */
.ll-answer-buttons{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:stretch;
    gap:12px;
    margin:20px 0 4px
}

.ll-answer-button{
    appearance:none;
    -webkit-appearance:none;
    /*min-width:96px;
    min-height:64px;*/
    padding:12px 22px;
    border:2px solid #d9dee6;
    border-radius:12px;
    background:#fff;
    color:#172033;
    font:inherit;
    font-size:1.25rem;
    font-weight:700;
    line-height:1.2;
    cursor:pointer;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .08s ease,
        box-shadow .15s ease
}

.ll-answer-button:hover{
    background:#f6f8fb;
    border-color:#aeb8c7
}

.ll-answer-button:focus-visible{
    outline:3px solid rgba(29,78,216,.28);
    outline-offset:2px
}

.ll-answer-button:active{
    transform:scale(.97)
}

.ll-answer-button.is-selected{
    border-color:#1d4ed8;
    background:#eef4ff;
    box-shadow:0 0 0 2px rgba(29,78,216,.10)
}

.ll-answer-button.is-correct{
    border-color:#238636;
    background:#e9f7ee;
    color:#17652b
}

.ll-answer-button.is-incorrect{
    border-color:#c62828;
    background:#fdecec;
    color:#9b1c1c
}

.ll-text-answer{
    width:80%;
    box-sizing:border-box;
    padding:14px;
    border:1px solid #cbd2dc;
    border-radius:10px;
    font-size:1.1rem
}

.ll-feedback{
    min-height: 30px;
    margin-top:15px;
    padding:5px 15px;
    border-radius:10px
}

.ll-good{
    background:#e9f7ee
}

.ll-retry{
    background:#fff5d8
}

.ll-bad{
    background:#fdecec
}

.ll-warning{
    background:#eef4ff
}

.ll-big-score{
    font-size:4rem;
    font-weight:800;
    text-align:center;
    margin:20px 0
}


.container {  
  display: grid;
  justify-content: center;
  grid-auto-columns: 1fr; 
  grid-auto-rows: 1fr; 
  grid-template-columns: 40% 40% 10% 10%; 
  grid-template-rows: 50px; 
  gap: 6px 2px; 
  grid-template-areas: 
    "botons dificultat encerts progress"; 
}

.botons { grid-area: botons;
  display: flex;
  justify-content: center;
  align-items: center;
 display: flex;
  justify-content:left; 
}
.dificultat { grid-area: dificultat; 
  text-align: center;
      display: flex;
  justify-content: center;
  align-items: center;
 /*  display: flex;
  justify-content: center;*/
  font-size: 1em;
}
.encerts { grid-area: encerts;
    text-align: center; 
      display: flex;
  justify-content: center;
  align-items: center;
 /*  display: flex;
  justify-content: center;*/
  font-size: 1em;
}
.progress { grid-area: progress;
    text-align: center;
      display: flex;
  justify-content: center;
  align-items: center;
 /*  display: flex;
  justify-content: center;*/
  font-size: 1em;
}

.cont-answer {  display: flex;
  grid-template-columns: 60% 40%;
  grid-template-rows: 50px;
  grid-auto-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 6px 2px;
  grid-auto-flow: row;
  grid-template-areas:
    "answer check";
}
.answer { grid-area: answer; }
.check { grid-area: check; }

header.ll-index-header {
    padding-bottom: 20px;
    text-align: center;
}

.ll-index-level, .ll-progress-lesson{
    padding: 30px;
    border: 1px solid #000;
    /* offset-x | offset-y | blur-radius | color */
    box-shadow: 3px 6px 9px black;
    border-radius: 10px;
}

details.ll-progress-exercise {
    padding-left: 35px;
}

.ll-units-form, .ll-exercice-form {
    padding-bottom: 10px;
}
.ll-index-levels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-inline: 10px 10px;
}
[data-layout*=grid]{
    display: grid;
    grid-column-gap: 30px;
    grid-row-gap: 30px;
}

details[open] summary ~ * {
    display: block !important;
}


/* Acceso a Mi progreso */
.ll-progress-access {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.ll-progress-access p {
    margin-bottom: 0.5rem;
}

.ll-progress-access-link {
    display: inline-block;
    font-weight: 600;
    text-decoration: underline;
}


/* Acceso global del plugin: escritorio, tableta y móvil */
.ll-global-access-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
    width: 100%;
}

.ll-global-access-link {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
}

/* Acceso desde el entrenamiento */
.ll-progress-access {
    display: block;
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.ll-progress-access-link {
    display: inline-block;
    font-weight: 600;
    text-decoration: underline;
}

li.menu-item.ll-menu-item {
    padding-right: 10px!important;
}


/* 2. Cambio de relación de aspecto para dispositivos móviles */

/* @media(max-width:600px){*/
@media (max-width: 768px) {

 
    .has-global-padding {
        padding-right: 5px;
        padding-left: 5px;
    }
    .ll-header{
        align-items:flex-start;
        /*flex-direction:column*/
    }

    .ll-header h2{
        font-size:1.25rem
    }
    .ll-video-wrap { aspect-ratio: 1.5 / 1; }
    .ll-video-panel { padding: 10px!important}  
    .ll-button{
        width:100%
    }
    .ll-question {
        padding: 2px;
        font-size: 1rem!important;
        margin: 10px 0;
    }
    .ll-answer-buttons{
        
        /*display:grid;*/
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px
    }

    .ll-answer-button{
        /*width:100%;*/
        /*min-width:0;*/
        /*min-height:60px;*/
        /*min-width:96px;
        min-height:64px;*/
        padding:10px 12px
    }

    .ll-index-levels {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

        .ll-global-access-nav {
        padding: 8px 12px;
    }

    .ll-global-access-link {
        padding: 8px 10px;
    }

    .ll-progress-access {
        margin-top: 1.5rem;
        padding: 12px;
    }

}
