@charset "utf-8";

/* =========================================================
   APRENDOMUSICA - GAME SHELL 2026
   Nueva arquitectura aislada de estilos heredados
   ========================================================= */

html, body {
    margin: 0;
    padding: 0;
}

.am-shell-body {
    min-height: 100vh;
}

/* =========================================================
   LANDSCAPE
   ========================================================= */

.am-shell-body-landscape {
    background: #ffffff;
}

.am-shell-landscape-page {
    padding-top: 0;
    padding-bottom: 0;
}

.am-shell-embed-landscape {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
}

.am-shell-embed-landscape iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Botón "pantalla completa" sobre el iframe del juego */
.am-shell-fullscreen-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 35;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.am-shell-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.am-shell-fullscreen-btn .am-icon-compress {
    display: none;
}

.am-shell-fullscreen-btn.is-locked {
    background: rgba(0, 0, 0, 0.45);
}

.am-shell-fullscreen-btn .am-icon-lock {
    display: none;
}

.am-shell-fullscreen-btn.is-locked .am-icon-lock {
    display: block;
    position: absolute;
    right: -3px;
    bottom: -3px;
    background: #ff6b35;
    border-radius: 50%;
    padding: 3px;
    box-sizing: content-box;
    color: #fff;
}

.am-shell-embed-landscape.is-fullscreen .am-icon-expand {
    display: none;
}

.am-shell-embed-landscape.is-fullscreen .am-icon-compress {
    display: block;
}

/* En pantalla completa real, ignorar el truco de aspect-ratio (padding-bottom) */
.am-shell-embed-landscape:fullscreen,
.am-shell-embed-landscape:-webkit-full-screen,
.am-shell-embed-landscape:-ms-fullscreen {
    padding-bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
}

/* =========================================================
   PORTRAIT - MÓVIL
   ========================================================= */

.am-shell-body-portrait {
    background: #eef1f7;
}

.am-shell-mobile-portrait {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.am-shell-mobile-portrait iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* =========================================================
   PORTRAIT - ESCRITORIO (salvavidas)
   ========================================================= */

.am-shell-portrait-desktop-page {
    min-height: 100vh;
    padding-top: 16px;
    padding-bottom: 16px;
    background: linear-gradient(180deg, #eef1f7 0%, #dfe4f0 100%);
}

.am-shell-side-col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.am-shell-side-box {
    width: 100%;
    max-width: 280px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.am-shell-side-box-muted {
    background: rgba(255, 255, 255, 0.7);
}

.am-shell-pill {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8ecff;
    color: #1f2f7a;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.am-shell-title {
    font-size: 1.15rem;
    line-height: 1.2;
    color: #222;
    margin-bottom: 10px;
    font-weight: 700;
}

.am-shell-text {
    font-size: 0.95rem;
    line-height: 1.45;
    color: #555;
    margin-bottom: 14px;
}

.am-shell-text-small {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #666;
    margin: 0;
}

.am-shell-btn {
    margin-bottom: 8px;
}

.am-shell-stage-col {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.am-shell-stage-portrait {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: calc(100vh - 32px);
    max-height: 900px;
    overflow: hidden;
    background: #000;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.am-shell-stage-portrait iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.am-shell-rec-card img {
    width: 70%;
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto 6px auto;
    display: block;
}
.am-shell-rec-card {
    padding: 6px;
}

.am-shell-rec-title {
    font-size: 0.85rem;
    line-height: 1.1;
}
.am-shell-resource-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.am-shell-icon-btn {
   
    height: 24px;
}
/* =========================================================
   AJUSTES RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .am-shell-stage-portrait {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        border: 0;
    }

    .am-shell-portrait-desktop-page {
        padding: 0;
    }

    .am-shell-side-box {
        max-width: none;
    }
}
/* CONTINUIDAD LATERAL */

.am-shell-left-box {
    background: #f3f4fb;
    border-radius: 14px;
    padding: 12px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}

/* Rota entre el panel de continuidad y el banner de Aprendomates
   (includes/ad-aprendomates-vertical.php). Ambos hijos ocupan la misma
   celda de grid (grid-area 1/1) para que el alto se ajuste al más alto
   de los dos sin saltos al alternar; se cruzan con un fundido de
   opacidad. Ver script en includes/game-shell-2026.php. */
.am-shell-left-rotate {
    position: relative;
    display: grid;
}

.am-shell-left-rotate-item {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.am-shell-left-rotate-item.is-active {
    opacity: 1;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .am-shell-left-rotate-item {
        transition: none;
    }
}

.am-shell-left-header {
    font-weight: 800;
    margin-bottom: 10px;
}

.am-shell-rec-block {
    margin-bottom: 12px;
}

.am-shell-rec-label {
    background: #d8dcf7;
    padding: 6px 10px;
    font-weight: 700;
    border-radius: 8px 8px 0 0;
}

.am-shell-rec-label-main {
    background: #6470c9;
    color: white;
}

.am-shell-rec-card {
    display: block;
    background: white;
    border: 2px solid #ddd;
    border-top: 0;
    padding: 8px;
    text-decoration: none;
}

.am-shell-rec-card img {
    width: 100%;
    margin-bottom: 6px;
}

.am-shell-rec-thumb-wrap {
    position: relative;
    display: block;
}

.am-shell-rec-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2457d6;
}

.am-shell-resource-links {
    margin-top: 12px;
}

/* GUÍA PARA EL AULA (musicogramas) */

.am-shell-guide-col {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}

.am-shell-guide-block {
    background: #f5eefb;
    border: 1px solid #ddc8ec;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.am-shell-guide-titulo {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7c4fae;
    margin-bottom: 6px;
}

.am-shell-guide-texto {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #3a2a4a;
    margin: 0;
}

.am-shell-guide-lista {
    margin: 0;
    padding-left: 18px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #3a2a4a;
}

.am-shell-guide-lista li + li {
    margin-top: 6px;
}

/* =========================================================
   REPORTAR ERROR / SUGERENCIA
   ========================================================= */

.am-report-pill-slot {
    margin-top: 12px;
}

.am-report-pill {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    background: #fbeddc;
    color: #6b4318;
    box-shadow: 0 2px 6px rgba(184, 114, 44, 0.18);
    transition: transform 0.15s ease, background 0.15s ease;
}

.am-report-pill:hover {
    transform: translateY(-1px);
    background: #f6dcb8;
}

@media (prefers-reduced-motion: reduce) {
    .am-report-pill { transition: none; }
}

.am-report-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 16px;
    cursor: pointer;
}

.am-report-modal.is-open {
    display: flex;
}

.am-report-modal-inner {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    width: min(420px, 100%);
    position: relative;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    cursor: default;
}

.am-report-modal-x {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 2px 6px;
}

.am-report-modal-x:hover {
    color: #555;
}

.am-report-titulo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b8722c;
    margin-bottom: 4px;
}

.am-report-titulo-row span {
    font-size: 1.05rem;
    font-weight: 800;
    color: #222;
}

.am-report-contexto {
    display: inline-flex;
    font-size: 0.8rem;
    color: #7a6c5c;
    background: #f4efe6;
    border-radius: 999px;
    padding: 4px 10px;
    margin: 10px 0 16px;
}

.am-report-toggle {
    display: flex;
    background: #f0ebe1;
    border-radius: 999px;
    padding: 3px;
    margin-bottom: 16px;
    gap: 3px;
}

.am-report-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #8a7c6b;
    cursor: pointer;
}

.am-report-toggle-btn.is-active {
    background: #b8722c;
    color: #fff;
}

.am-report-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #5a4d40;
    margin: 0 0 6px;
}

.am-report-opcional {
    font-weight: 400;
    color: #9a8c7b;
}

.am-report-textarea,
.am-report-input {
    width: 100%;
    border: 1px solid #e5dfd7;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #2a2018;
    background: #fffdfa;
    box-sizing: border-box;
    margin-bottom: 14px;
}

.am-report-textarea {
    min-height: 84px;
    resize: vertical;
}

.am-report-textarea:focus,
.am-report-input:focus {
    outline: 2px solid #b8722c;
    outline-offset: 1px;
}

.am-report-honeypot {
    position: absolute;
    left: -9999px;
}

.am-report-error {
    font-size: 0.8rem;
    color: #c0002a;
    margin-bottom: 10px;
    min-height: 1em;
}

.am-report-submit {
    width: 100%;
    border: none;
    background: #b8722c;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
}

.am-report-submit:hover {
    background: #a2631f;
}

.am-report-submit:disabled {
    opacity: 0.7;
    cursor: default;
}

.am-report-ok {
    display: none;
    text-align: center;
    padding: 12px 4px 4px;
}

.am-report-ok.is-visible {
    display: block;
}

.am-report-ok-check {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e5f5ee;
    color: #2f9e6e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.am-report-ok h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.am-report-ok p {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: #6b5d4f;
}

.am-report-otro-btn {
    border: 1px solid #e5dfd7;
    background: transparent;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #2a2018;
}
