.trailer-escuela {
    margin: 0 0 20px;
    padding: clamp(16px, 4vw, 36px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    align-items: center;
    gap: clamp(18px, 4vw, 40px);
    border: 1px solid #355c7b;
    border-radius: 20px;
    background: linear-gradient(135deg, #10273a, #071420);
    box-shadow: 0 15px 35px rgb(0 0 0 / 35%);
    color: #f4f7fb;
}
.trailer-escuela h3 { margin: 0 0 12px; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.2; }
.trailer-escuela-texto p { color: #cbd5e0; line-height: 1.65; }
.trailer-escuela-marco {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    min-width: 0;
    background: #04080e;
    border: 3px solid #f1c40f;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 24px rgb(241 196 15 / 22%), 0 12px 28px rgb(0 0 0 / 50%);
}
.trailer-escuela-marco .trailer-boton { margin: 10px; }
.trailer-escuela-marco.trailer-vertical {
    width: min(100%, 300px, 38vh);
    aspect-ratio: 9 / 16;
    justify-self: center;
}
.trailer-video.trailer-escuela-marco iframe { width: 100%; height: 100%; border-radius: 0; }
@media (max-width: 680px) {
    .trailer-escuela { grid-template-columns: minmax(0, 1fr); }
}
[data-trailer-tarjeta] { cursor: pointer; }
.curso-estado { text-transform: none; font-weight: 400; }
.curso-estado--disponible { color: #f5cb47; }
.curso-estado--proximo { color: #87bce6; font-weight: 700; }
.curso-estado--desarrollo { color: #edab78; }
.curso-estado--desarrollo strong { font-weight: 700; }
.trailer-dialogo {
    position: fixed;
    inset: 0;
    margin: auto;
    box-sizing: border-box;
    width: min(680px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    padding: clamp(12px, 3vw, 22px);
    border: 1px solid #785f27;
    border-radius: 14px;
    background: #101e2d;
    color: #f4f7fb;
    overflow: auto;
}
.trailer-dialogo::backdrop { background: rgb(4 8 14 / 82%); }
.trailer-cabecera, .trailer-estado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.trailer-cabecera { margin-bottom: 12px; }
.trailer-cabecera h2 { margin: 0; font-size: clamp(1.1rem, 4vw, 1.45rem); }
.trailer-dialogo p { margin: 12px 0; }
.trailer-estado > strong { color: #f5cb47; }
.trailer-boton {
    display: inline-block;
    padding: 8px 12px;
    background: #142437;
    border: 1px solid #f5cb47;
    border-radius: 8px;
    color: #ffe278;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.trailer-boton:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.trailer-video iframe {
    display: block;
    width: min(100%, 680px, 92vh);
    aspect-ratio: 16 / 9;
    margin-inline: auto;
    border: 0;
    border-radius: 8px;
    background: #04080e;
}
.trailer-video.trailer-vertical iframe {
    width: min(100%, 290px, 34vh);
    aspect-ratio: 9 / 16;
}
.trailer-resumen { margin-block: 8px; }
.trailer-descripcion { white-space: pre-line; line-height: 1.55; }
.academia-interes { margin-top: 12px; }
.academia-interes p:empty { display: none; }
