/* SkullChord — Hoja de estilos global v1.0 */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bg:          #0b0b12;
    --surface:     #13131e;
    --surface2:    #1b1b28;
    --surface3:    #22223a;
    --border:      rgba(255,255,255,0.08);
    --accent:      #f5a623;
    --accent-glow: rgba(245,166,35,0.25);
    --green:       #2dce89;
    --green-glow:  rgba(45,206,137,0.25);
    --red:         #f5365c;
    --red-glow:    rgba(245,54,92,0.25);
    --yellow:      #ffd600;
    --text:        #e4e4f0;
    --text2:       #8888aa;
    --text3:       #555570;
    --radius:      10px;
    --radius-sm:   6px;
    --shadow:      0 4px 24px rgba(0,0,0,0.5);

    /* Piano */
    --wk-w:        28px;
    --wk-h:        160px;
    --bk-w:        18px;
    --bk-h:        100px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select { font-family: inherit; color: var(--text); }

/* ── Layout principal ──────────────────────────────────────── */
.sc-app {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
}

.sc-navbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    height: 56px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sc-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-logo .skull { font-size: 1.3rem; }

.sc-nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.sc-nav-links a {
    color: var(--text2);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s;
}

.sc-nav-links a:hover,
.sc-nav-links a.active {
    color: var(--accent);
    background: rgba(245,166,35,0.08);
}

/* ── Index: grid de instrumentos ───────────────────────────── */
.sc-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.sc-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
}

.sc-hero p {
    color: var(--text2);
    margin-top: 10px;
    font-size: 1rem;
}

.sc-instruments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

.sc-instrument-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    color: var(--text);
}

.sc-instrument-card:hover {
    border-color: var(--accent);
    background: var(--surface2);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.sc-instrument-card .icon {
    font-size: 3rem;
    margin-bottom: 14px;
    display: block;
}

.sc-instrument-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.sc-instrument-card p {
    font-size: 0.78rem;
    color: var(--text2);
    line-height: 1.4;
}

/* ── Layout de instrumento ─────────────────────────────────── */
.sc-instrument-layout {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    grid-template-rows: 1fr;
    height: calc(100vh - 56px);
    overflow: hidden;
}

.sc-panel-left {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sc-panel-center {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
}

.sc-panel-right {
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Paneles / secciones ───────────────────────────────────── */
.sc-section {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

.sc-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ── Botones ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    transition: all 0.15s;
    line-height: 1;
}

.btn-accent {
    background: var(--accent);
    color: #111;
}
.btn-accent:hover { background: #ffc04d; box-shadow: 0 0 16px var(--accent-glow); }

.btn-outline {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
    background: transparent;
    color: var(--text2);
}
.btn-ghost:hover { color: var(--text); background: var(--surface3); }

.btn-sm { padding: 5px 10px; font-size: 0.75rem; }
.btn-lg { padding: 11px 24px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-green  { background: var(--green);  color: #111; }
.btn-green:hover { box-shadow: 0 0 16px var(--green-glow); }

.btn-red    { background: var(--red);    color: #fff; }

/* ── Selects e inputs ──────────────────────────────────────── */
.sc-select, .sc-input {
    width: 100%;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 0.82rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
    appearance: none;
}

.sc-select:focus, .sc-input:focus {
    border-color: var(--accent);
}

.sc-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sc-label {
    font-size: 0.7rem;
    color: var(--text2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Modo selector (tabs) ──────────────────────────────────── */
.sc-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.sc-mode-tab {
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text2);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

.sc-mode-tab.active {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}

/* ── Feedback de afinación ─────────────────────────────────── */
.pitch-display {
    text-align: center;
}

.pitch-note-big {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.pitch-freq {
    font-size: 0.78rem;
    color: var(--text2);
    margin-top: 4px;
    min-height: 1.2em;
}

/* Barra de cents */
.cents-bar-wrap {
    margin: 14px 0;
    position: relative;
}

.cents-bar-track {
    height: 12px;
    border-radius: 6px;
    background: var(--surface3);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cents-bar-fill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 6px;
    transition: left 0.1s, width 0.1s, background 0.2s;
}

.cents-center-line {
    position: absolute;
    left: 50%;
    top: -3px;
    width: 2px;
    height: 18px;
    background: var(--text2);
    transform: translateX(-50%);
    border-radius: 1px;
}

.cents-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.65rem;
    color: var(--text3);
}

.cents-value {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text2);
    font-weight: 600;
    margin-top: 6px;
    min-height: 1.2em;
}

/* Indicador de resultado */
.match-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    min-height: 42px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.match-indicator.correct {
    background: rgba(45,206,137,0.12);
    border-color: var(--green);
    color: var(--green);
}

.match-indicator.close {
    background: rgba(255,214,0,0.1);
    border-color: var(--yellow);
    color: var(--yellow);
}

.match-indicator.wrong {
    background: rgba(245,54,92,0.1);
    border-color: var(--red);
    color: var(--red);
}

.match-indicator.idle {
    background: var(--surface3);
    color: var(--text3);
}

/* ── Volúmetro ─────────────────────────────────────────────── */
.vu-meter {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 24px;
}

.vu-bar {
    flex: 1;
    background: var(--surface3);
    border-radius: 2px;
    transition: height 0.08s, background 0.1s;
    min-height: 2px;
}

/* ── Objetivo del ejercicio ────────────────────────────────── */
.exercise-target {
    text-align: center;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface3);
}

.exercise-target .target-label {
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.exercise-target .target-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.exercise-target .target-notes {
    font-size: 0.72rem;
    color: var(--text2);
    margin-top: 4px;
}

/* ── Mic status ────────────────────────────────────────────── */
.mic-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text2);
}

.mic-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text3);
    flex-shrink: 0;
    transition: all 0.2s;
}

.mic-dot.active { background: var(--green); box-shadow: 0 0 6px var(--green); }
.mic-dot.error  { background: var(--red);   box-shadow: 0 0 6px var(--red); }

/* ── Score / historial ─────────────────────────────────────── */
.sc-score {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    text-align: center;
}

.sc-score-item .val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.sc-score-item .lbl {
    font-size: 0.65rem;
    color: var(--text2);
    margin-top: 2px;
    text-transform: uppercase;
}

.sc-score-item.good .val { color: var(--green); }
.sc-score-item.bad  .val { color: var(--red); }

/* ── Piano keyboard ────────────────────────────────────────── */
.keyboard-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 30px 20px 20px;
    display: flex;
    align-items: flex-end;
    background: var(--bg);
    scrollbar-color: var(--surface3) transparent;
}

.keyboard-container::-webkit-scrollbar { height: 6px; }
.keyboard-container::-webkit-scrollbar-track { background: transparent; }
.keyboard-container::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }

.keyboard {
    display: flex;
    position: relative;
    user-select: none;
}

.octave-group {
    position: relative;
    display: flex;
    height: var(--wk-h);
}

/* Teclas blancas */
.key-white {
    width: var(--wk-w);
    height: var(--wk-h);
    background: linear-gradient(to bottom, #e8e8e8 0%, #ffffff 100%);
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 5px 5px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1;
    transition: background 0.05s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5), inset 0 -2px 3px rgba(0,0,0,0.1);
}

.key-white:active,
.key-white.playing { background: linear-gradient(to bottom, #ddd 0%, #eee 100%); }

.key-white.target {
    background: linear-gradient(to bottom, #c8860a 0%, var(--accent) 100%);
    border-color: #c8860a;
}

.key-white.detected-correct {
    background: linear-gradient(to bottom, #1e9464 0%, var(--green) 100%);
    border-color: #1e9464;
}

.key-white.detected-wrong {
    background: linear-gradient(to bottom, #991b3a 0%, var(--red) 100%);
    border-color: #991b3a;
}

.key-white.in-scale {
    background: linear-gradient(to bottom, #c8860a55 0%, #f5a62355 100%);
}

.key-label {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.52rem;
    color: #777;
    font-weight: 700;
    pointer-events: none;
    white-space: nowrap;
}

/* Teclas negras */
.key-black {
    width: var(--bk-w);
    height: var(--bk-h);
    background: linear-gradient(to bottom, #2a2a2a 0%, #111 60%, #222 100%);
    border-radius: 0 0 4px 4px;
    position: absolute;
    cursor: pointer;
    z-index: 2;
    top: 0;
    transition: background 0.05s;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.7), inset 0 -1px 2px rgba(255,255,255,0.05);
}

.key-black:active,
.key-black.playing { background: linear-gradient(to bottom, #444 0%, #222 100%); }

.key-black.target {
    background: linear-gradient(to bottom, #a06000 0%, var(--accent) 100%);
}

.key-black.detected-correct {
    background: linear-gradient(to bottom, #187a52 0%, var(--green) 100%);
}

.key-black.detected-wrong {
    background: linear-gradient(to bottom, #7a1020 0%, var(--red) 100%);
}

.key-black.in-scale {
    background: linear-gradient(to bottom, #6b4900 0%, #a06800 100%);
}

/* Separador de octava */
.octave-group::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.15);
    z-index: 3;
    pointer-events: none;
}

/* Etiqueta de octava */
.octave-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text3);
    font-weight: 600;
    pointer-events: none;
}

/* ── Barra inferior (controles ejercicio) ──────────────────── */
.sc-controls-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* ── Animación pulse (nota detectada correcta) ─────────────── */
@keyframes pulseCorrect {
    0%   { box-shadow: 0 0 0 0 var(--green-glow); }
    70%  { box-shadow: 0 0 0 14px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.pulse-correct { animation: pulseCorrect 0.5s ease-out; }

/* ── Detalle acordes detectados ────────────────────────────── */
.chord-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 26px;
}

.chord-badge {
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.7rem;
    color: var(--text2);
    font-weight: 600;
}

.chord-badge.match {
    background: rgba(45,206,137,0.12);
    border-color: var(--green);
    color: var(--green);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sc-instrument-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        height: auto;
    }
    .sc-panel-left, .sc-panel-right {
        border: none;
        border-bottom: 1px solid var(--border);
    }
    :root { --wk-w: 22px; --wk-h: 130px; --bk-w: 14px; --bk-h: 80px; }
}

/* ── Bootstrap navbar overrides ─────────────────────────────── */
.sc-navbar-bs {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border);
    padding: 0 !important;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.sc-navbar-bs .container-fluid { height: 100%; gap: 0; }
.sc-navbar-bs .navbar-brand    { padding: 0; }
.sc-navbar-bs .sc-brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
}
.sc-navbar-bs .nav-link {
    color: var(--text2) !important;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 10px !important;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}
.sc-navbar-bs .nav-link:hover,
.sc-navbar-bs .nav-link.active {
    color: var(--accent) !important;
    background: rgba(245,166,35,0.1);
}
.sc-navbar-bs .navbar-toggler {
    border-color: var(--border);
    padding: 4px 8px;
}
.sc-navbar-bs .navbar-toggler:focus { box-shadow: none; }
.sc-navbar-bs .navbar-toggler-icon { filter: brightness(0.65); }
.sc-school-logo {
    max-height: 46px;
    max-width: 130px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.15s;
}
.sc-school-logo:hover { opacity: 1; }
@media (max-width: 991px) {
    .sc-navbar-bs {
        height: auto;
        min-height: 60px;
    }
    .sc-navbar-bs .navbar-collapse {
        background: var(--surface);
        border-top: 1px solid var(--border);
        padding: 8px 0 12px;
    }
    .sc-navbar-bs .navbar-collapse .ms-3 {
        padding: 8px 12px 0;
    }
}

/* Update instrument layout height for 60px navbar */
.sc-instrument-layout {
    height: calc(100vh - 60px);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet ≤960px / Móvil ≤576px
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
    /* Habilitar scroll vertical en todas las páginas */
    body { overflow-y: auto !important; overflow-x: hidden !important; }

    /* Colapsar layout de instrumento a 1 columna */
    .sc-instrument-layout {
        grid-template-columns: 1fr !important;
        grid-template-rows: unset !important;
        height: auto !important;
        overflow: visible !important;
    }

    .sc-panel-left {
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border);
    }

    .sc-panel-right {
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        border-left: none !important;
        border-bottom: 1px solid var(--border);
    }

    /* Panel central (instrumento) siempre arriba en móvil */
    .sc-panel-center {
        height: auto !important;
        overflow: visible !important;
        min-height: 160px;
        order: -1;
    }

    .sc-controls-bar { flex-wrap: wrap; padding: 8px 12px; gap: 6px; }
    .btn { min-height: 40px; }

    /* Piano: teclas tablet */
    :root { --wk-w: 20px; --wk-h: 120px; --bk-w: 13px; --bk-h: 74px; }
}

@media (max-width: 576px) {
    /* Piano: teclas móvil */
    :root { --wk-w: 16px; --wk-h: 100px; --bk-w: 10px; --bk-h: 62px; }

    .sc-section { padding: 10px 12px; }
    .sc-section-title { font-size: 0.65rem; }
    .btn { min-height: 44px; font-size: 0.8rem; }
    .btn-sm { min-height: 34px; font-size: 0.72rem; }
    .btn-lg { font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE v3 — Index mobile + Landscape phone
   ═══════════════════════════════════════════════════════════ */

/* Index: 2 columnas sin overflow en móvil */
@media (max-width: 640px) {
    .sc-hero { padding: 30px 16px 20px; }
    .sc-hero h1 { font-size: 2rem; }
    .sc-instruments {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px 12px 40px;
        gap: 10px;
    }
    .sc-instrument-card { padding: 20px 10px; }
    .sc-instrument-card .icon { font-size: 2rem; margin-bottom: 8px; }
    .sc-instrument-card h3 { font-size: 0.88rem; }
    .sc-instrument-card p { font-size: 0.68rem; }
}

/* Evitar que diapasón/teclado rompan el layout horizontal */
@media (max-width: 960px) {
    .sc-panel-center { overflow-x: hidden !important; }
}

/* Landscape en teléfono: restaurar 3 paneles compactos */
@media (orientation: landscape) and (max-height: 520px) {
    body { overflow: hidden !important; }
    .sc-navbar-bs { height: 46px !important; min-height: 46px !important; }
    .sc-instrument-layout {
        grid-template-columns: 160px 1fr 180px !important;
        grid-template-rows: 1fr !important;
        height: calc(100vh - 46px) !important;
        overflow: hidden !important;
    }
    .sc-panel-center {
        order: 0 !important;
        height: 100% !important;
        overflow: hidden !important;
    }
    .sc-panel-left, .sc-panel-right {
        height: 100% !important;
        max-height: none !important;
        overflow-y: auto !important;
        border-right: 1px solid var(--border) !important;
        border-left: 1px solid var(--border) !important;
        border-bottom: none !important;
    }
    .sc-section { padding: 8px 10px; }
    .sc-section-title { font-size: 0.6rem; margin-bottom: 8px; }
    :root { --wk-w: 14px; --wk-h: 80px; --bk-w: 9px; --bk-h: 50px; }
    /* Headers de ejercicio compactos en landscape */
    #exerciseTarget,
    .exercise-header-wrap { padding: 4px 12px !important; }
    .exercise-target { padding: 5px 10px !important; }
    .exercise-target .target-label { font-size: 0.55rem; margin-bottom: 1px; }
    .exercise-target .target-name  { font-size: 0.9rem; line-height: 1.1; }
    .exercise-target .target-notes { font-size: 0.58rem; margin-top: 1px; }

    /* Piano: keyboard-container llena el espacio disponible */
    .keyboard-container { flex: 1 !important; height: auto !important; padding: 8px 6px 4px !important; }

    /* Guitarra/Bajo: strings más compactas para que quepan sin scrollbar vertical */
    .fb-row { height: 26px !important; }
    .fb-note { width: 18px !important; height: 18px !important; }
    .fretboard-scroll {
        padding: 4px 8px;
        max-height: none !important;
        flex: 1;
        overflow-y: auto;
        overflow-x: auto;
    }

    /* Voz: reducir nota grande para que el piano strip sea visible */
    .vnd-note { min-height: 1.5rem !important; font-size: 2.5rem !important; }
    .vnd-freq { min-height: 0 !important; }
    .voice-note-display { gap: 2px; }
    .voice-strip-wrap {
        padding: 6px 10px;
        gap: 4px;
        overflow-x: auto;
        align-self: stretch;
        align-items: flex-start;
    }

    /* Freq visualizer compacto */
    .freq-visualizer { height: 70px !important; flex: none !important; }

    /* Botón fullscreen flotante */
    .btn-fullscreen {
        position: fixed;
        bottom: 10px;
        right: 10px;
        z-index: 200;
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: var(--radius-sm);
        background: rgba(245,166,35,0.85);
        color: #111;
        border: none;
        cursor: pointer;
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }
}

/* Animación y estilos del overlay de rotación */
@keyframes rotateSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.rotate-icon  { font-size: 3.5rem; line-height: 1; }
.rotate-spin  { font-size: 2.8rem; line-height: 1; display: inline-block; animation: rotateSpin 2s linear infinite; }
.rotate-title { font-size: 1.4rem; font-weight: 800; color: var(--accent); margin: 0; }
.rotate-desc  { font-size: 0.85rem; color: var(--text2); margin: 0; max-width: 280px; }
