/* PANTALLA PRINCIPAL FULL-SCREEN EXPANSIVA (SIN CAJAS CONDENSADAS) */
.home-fullscreen-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    padding: 0 !important;
}

.home-top-bar {
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 55%, #991b1b 100%);
    border-bottom: 4px solid #f59e0b;
    padding: 0.9rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.25);
    animation: none !important;
    transform: none !important;
}

.home-top-brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    text-decoration: none;
}

.home-top-logo {
    height: 58px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    display: block;
}

.home-top-brand-text h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
    letter-spacing: -0.01em;
}

.home-top-brand-text span {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fef08a;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.home-top-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.home-top-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.home-top-actions .btn-secondary:hover {
    background: #ffffff;
    color: #1e3a8a;
    border-color: #ffffff;
    box-shadow: 0 4px 0 #cbd5e1;
}

/* Botones de Icono Cuadrados/Redondeados para Barra Superior */
.top-bar-icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
    padding: 0;
    flex-shrink: 0;
}

.top-bar-icon-btn:hover {
    background: #ffffff;
    color: #1e3a8a;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.top-bar-icon-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.top-bar-icon-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Botón Volver de la Barra Superior */
.top-bar-back-btn {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    padding: 0.55rem 1.15rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
    text-decoration: none;
    flex-shrink: 0;
}

.top-bar-back-btn:hover {
    background: #ffffff;
    color: #1e3a8a;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.top-bar-back-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.top-bar-back-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* SECCIÓN HERO EXPANSIVA Y CENTRADA */
.home-hero-full {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.6rem 2rem 1.9rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-weight: 900;
    font-size: 0.95rem;
    padding: 0.45rem 1.3rem;
    border-radius: var(--radius-full);
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
    margin-bottom: 1.3rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-hero-title {
    font-family: var(--font-title);
    font-size: clamp(4.6rem, 6.6vw, 6.8rem);
    line-height: 1.05;
    font-weight: 900;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 35%, #e11d48 75%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.05rem;
    letter-spacing: 0.03em;
    filter: drop-shadow(0 6px 20px rgba(37, 99, 235, 0.22));
}

.home-hero-desc {
    font-size: 1.3rem;
    line-height: 1.55;
    color: #334155;
    margin: 0 auto 1.9rem auto;
    font-weight: 700;
    max-width: 920px;
    text-wrap: balance;
}

.home-hero-buttons {
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2.1rem;
}

.btn-hero-cta {
    font-size: 1.55rem !important;
    padding: 1.3rem 4.2rem !important;
    background: linear-gradient(135deg, #c0262d 0%, #dc2626 50%, #ea580c 100%) !important;
    box-shadow: 0 7px 0 #991b1b, 0 14px 28px rgba(192, 38, 45, 0.35) !important;
    border: 2px solid #fca5a5 !important;
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 0 #991b1b, 0 20px 36px rgba(192, 38, 45, 0.45) !important;
    filter: brightness(1.06);
}

.btn-hero-cta:active {
    transform: translateY(4px) scale(0.99) !important;
    box-shadow: 0 2px 0 #991b1b !important;
}

/* BANDA DE DESTACADOS DEL HERO (SUSTITUYE A LAS BURBUJITAS SUELTAS) */
.home-hero-highlights {
    width: 100%;
    max-width: 960px;
    margin: 2.2rem auto 0 auto;
    background: #ffffff;
    border-radius: 24px;
    border: 2.5px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.07), 0 2px 8px rgba(30, 41, 59, 0.04);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1rem 1.2rem;
    gap: 0.8rem;
    position: relative;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0.85rem;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
    text-align: left;
}

.highlight-card:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.highlight-card + .highlight-card {
    border-left: 1.5px solid #f1f5f9;
}

.highlight-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.highlight-icon-box.icon-zones {
    background: #eff6ff;
    color: #1e40af;
    border: 1.5px solid #bfdbfe;
}

.highlight-icon-box.icon-courses {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1.5px solid #ddd6fe;
}

.highlight-icon-box.icon-rewards {
    background: #ecfdf5;
    color: #047857;
    border: 1.5px solid #a7f3d0;
}

.highlight-icon-box.icon-challenges {
    background: #fefce8;
    color: #a16207;
    border: 1.5px solid #fef08a;
}

.highlight-icon-box svg {
    width: 22px;
    height: 22px;
    display: block;
}

.highlight-info {
    display: flex;
    flex-direction: column;
}

.highlight-info strong {
    font-size: 0.98rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.highlight-info span {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 2px;
}

@media (max-width: 860px) {
    .home-hero-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .highlight-card + .highlight-card {
        border-left: none;
    }
}

@media (max-width: 520px) {
    .home-hero-highlights {
        grid-template-columns: 1fr;
    }
}

/* FRANJA DE LAS 5 ZONAS TEMÁTICAS */
.home-zones-strip {
    width: 100%;
    max-width: 1380px;
    margin: 1.2rem auto 2.8rem auto;
    padding: 0 2.5rem;
}

.home-strip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.4rem;
}

.home-strip-header h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.home-strip-header p {
    color: #475569;
    font-size: 1.15rem;
    font-weight: 700;
}

.home-zones-cards-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.3rem;
}

.home-zone-card-big {
    border-radius: 28px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--zone-border, #cbd5e1);
    background: var(--zone-bg, #ffffff);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.home-zone-card-big:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px var(--zone-shadow, rgba(0, 0, 0, 0.12));
}

.home-zone-big-icon-wrap {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background: var(--zone-icon-bg, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 16px var(--zone-shadow, rgba(0,0,0,0.08));
    border: 2.5px solid rgba(255, 255, 255, 0.9);
}

.home-zone-big-icon-wrap svg {
    width: 42px;
    height: 42px;
    display: block;
    transition: transform 0.25s ease;
}

.home-zone-card-big:hover .home-zone-big-icon-wrap svg {
    transform: scale(1.1);
}

.home-zone-big-title {
    font-size: 1.22rem;
    font-weight: 900;
    color: var(--zone-title-color, #0f172a);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.home-zone-big-desc {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
    line-height: 1.45;
}

/* Identidades visuales de las 5 Zonas */
.zone-castillo {
    --zone-bg: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
    --zone-border: #60a5fa;
    --zone-icon-bg: #bfdbfe;
    --zone-title-color: #1e3a8a;
    --zone-shadow: rgba(30, 58, 138, 0.18);
}

.zone-bosque {
    --zone-bg: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 100%);
    --zone-border: #4ade80;
    --zone-icon-bg: #bbf7d0;
    --zone-title-color: #14532d;
    --zone-shadow: rgba(20, 83, 45, 0.18);
}

.zone-lab {
    --zone-bg: linear-gradient(160deg, #ecfeff 0%, #cffafe 100%);
    --zone-border: #22d3ee;
    --zone-icon-bg: #a5f3fc;
    --zone-title-color: #155e75;
    --zone-shadow: rgba(21, 94, 117, 0.18);
}

.zone-biblioteca {
    --zone-bg: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%);
    --zone-border: #f59e0b;
    --zone-icon-bg: #fde68a;
    --zone-title-color: #78350f;
    --zone-shadow: rgba(120, 53, 15, 0.18);
}

.zone-taller {
    --zone-bg: linear-gradient(160deg, #fdf2f8 0%, #fce7f3 100%);
    --zone-border: #f472b6;
    --zone-icon-bg: #fbcfe8;
    --zone-title-color: #831843;
    --zone-shadow: rgba(131, 24, 67, 0.18);
}

/* TRES CARACTERÍSTICAS DESTACADAS DE LA PLATAFORMA */
.home-features-full {
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(226, 232, 240, 0.6) 100%);
    backdrop-filter: blur(12px);
    border-top: 3px solid #cbd5e1;
    padding: 3rem 2.5rem;
    margin-top: auto;
}

.home-features-grid {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.home-feature-box {
    background: #ffffff;
    padding: 1.6rem 1.8rem;
    border-radius: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    border: 2.5px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.feature-box-courses {
    border-color: #93c5fd;
    background: linear-gradient(150deg, #ffffff 60%, #eff6ff 100%);
}

.feature-box-candies {
    border-color: #fde68a;
    background: linear-gradient(150deg, #ffffff 60%, #fffbeb 100%);
}

.feature-box-screen {
    border-color: #a5f3fc;
    background: linear-gradient(150deg, #ffffff 60%, #ecfeff 100%);
}

.home-feature-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.home-feature-text h4 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.home-feature-text p {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.5;
    font-weight: 600;
}

/* FOOTER INFORMATIVO CEIP DON QUIJOTE */
.home-footer-full {
    width: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-top: 3px solid #f59e0b;
    color: #cbd5e1;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.96rem;
    font-weight: 700;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-footer-full strong {
    color: #fef08a;
}

/* BOTONES TÁCTILES 3D ESTILO EDUCATIVO */
.btn {
    padding: 0.95rem 2rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-decoration: none;
    position: relative;
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease;
    outline: none;
}

.btn:active {
    transform: translateY(3px) !important;
}

.btn-primary {
    background-color: var(--school-red);
    color: white;
    box-shadow: 0 5px 0 var(--school-red-dark), 0 8px 18px rgba(192, 38, 45, 0.25);
}
.btn-primary:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 7px 0 var(--school-red-dark), 0 12px 24px rgba(192, 38, 45, 0.3);
}
.btn-primary:active {
    box-shadow: 0 1px 0 var(--school-red-dark);
}

.btn-secondary {
    background-color: #ffffff;
    color: #334155;
    border: 2px solid #cbd5e1;
    box-shadow: 0 4px 0 #94a3b8, 0 6px 14px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #94a3b8;
}
.btn-secondary:active {
    box-shadow: 0 1px 0 #94a3b8;
}

.btn-accent {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 0 var(--secondary-shadow), 0 8px 16px rgba(245, 158, 11, 0.25);
}

.btn-large {
    font-size: 1.35rem;
    padding: 1.25rem 2.8rem;
    border-radius: var(--radius-full);
}

.btn-sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
}

/* TARJETAS DE CURSO CON ESTÉTICA DE CUADERNO ESCOLAR */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.course-card {
    background: linear-gradient(135deg, #ffffff 68%, var(--card-tint, #f8fafc) 100%);
    border-radius: 28px;
    padding: 1.35rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.06), 0 2px 6px rgba(30, 41, 59, 0.03);
    border: 2.5px solid var(--card-accent, #cbd5e1);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
    flex-wrap: wrap;
    gap: 1.2rem;
}

/* Detalle de lomo de libreta escolar en el lateral izquierdo */
.course-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background: var(--card-accent, #3b82f6);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(30, 41, 59, 0.12), 0 4px 12px rgba(30, 41, 59, 0.06);
}

.course-left {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    flex: 1;
    min-width: 290px;
}

.course-badge {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.course-badge svg {
    width: 36px;
    height: 36px;
    stroke: #ffffff;
    display: block;
}

.course-grade-badge {
    font-size: 1.7rem;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.course-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
}

.course-info h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.course-chuches-tag {
    font-size: 0.88rem;
    font-weight: 800;
    color: #047857;
    background: #ecfdf5;
    padding: 0.22rem 0.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1.5px solid #a7f3d0;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
    line-height: 1.2;
}

.chuchelete-badge {
    font-weight: 800;
    font-size: 1.15rem;
    color: #065f46;
    background: #ecfdf5;
    padding: 0.4rem 1.1rem;
    border-radius: 16px;
    border: 1.5px solid #a7f3d0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.course-right {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-left: auto;
}

/* Botón ¡Jugar! con profundidad 3D del mismo color que el curso */
.btn-course-play {
    background-color: var(--course-color, #10b981);
    color: #ffffff;
    box-shadow: 0 5px 0 var(--course-dark, #047857), 0 8px 18px rgba(0, 0, 0, 0.14);
    border: none;
    font-weight: 900;
    font-size: 1.08rem;
    font-family: inherit;
    padding: 0.65rem 1.7rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-course-play:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 7px 0 var(--course-dark, #047857), 0 12px 22px rgba(0, 0, 0, 0.18);
}

.btn-course-play:active {
    transform: translateY(3px) !important;
    box-shadow: 0 1px 0 var(--course-dark, #047857);
}

.student-character-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

/* Personaje fuera de caja (libre, grande y con sombra directa igual que el logo) */
.course-character-standalone {
    width: 94px;
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-character-standalone .mini-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.16));
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease;
}

.student-character-wrap:hover .course-character-standalone .mini-avatar-img {
    transform: scale(1.14) translateY(-4px);
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.24));
}

.mini-avatar-box {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    background: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
    padding: 6px;
    flex-shrink: 0;
}

.mini-avatar-box:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    border-color: #e2e8f0;
}

.mini-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.avatar-name-badge {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e293b;
    background: #ffffff;
    padding: 0.25rem 0.85rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    max-width: 120px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.student-character-wrap:hover .avatar-name-badge {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   MAPA DE AVENTURA ESPECTACULAR: ISLA DEL QUIJOTE & BIOMAS TEMÁTICOS (FASE 24)
   ========================================================================== */

/* ==========================================================================
   MAPA DE AVENTURA ESPECTACULAR: ISLA DEL QUIJOTE 3D RENDER (FASE 24)
   ========================================================================== */

/* ==========================================================================
   MUNDO DE AVENTURA: MAPA INFANTIL EN CAJITA ENMARCADA (FASE 24)
   ========================================================================== */

.map-card-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.25rem 1.4rem 0.45rem 1.4rem;
    overflow: hidden;
    box-sizing: border-box;
}

.adventure-world-wrap {
    width: 100%;
    max-width: 1175px;
    aspect-ratio: 1376 / 768;
    max-height: calc(100vh - 102px);
    background: #7dd3fc url('../assets/mapa_infantil.jpg') center center / 100% 100% no-repeat;
    border-radius: 32px;
    border: 6px solid #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 0 3.5px #38bdf8;
    position: relative;
    overflow: hidden;
    user-select: none;
}

/* Nodos interactivos de zona (Pins refinados de Videojuego sobre el mapa infantil) */
.adventure-zone-node {
    position: absolute;
    transform: translate(-50%, -90%);
    cursor: pointer;
    text-align: center;
    z-index: 10;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.adventure-zone-node:hover {
    transform: translate(-50%, -98%) scale(1.1);
    z-index: 30;
}

/* Medallón del Pin (Más compacto, estilizado y ligero) */
.zone-medallion {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

/* Puntero triangular del pin (más pequeño y nítido) */
.zone-medallion::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ffffff;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

/* Colores y relieves temáticos por zona */
.zone-medallion.zone-castillo {
    background: linear-gradient(135deg, #581c87 0%, #7c3aed 55%, #a855f7 100%);
    box-shadow: 0 4px 0 #4c1d95, 0 8px 18px rgba(124, 58, 237, 0.45);
}

.zone-medallion.zone-bosque {
    background: linear-gradient(135deg, #065f46 0%, #059669 55%, #34d399 100%);
    box-shadow: 0 4px 0 #047857, 0 8px 18px rgba(5, 150, 105, 0.45);
}

.zone-medallion.zone-laboratorio {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 55%, #38bdf8 100%);
    box-shadow: 0 4px 0 #155e75, 0 8px 18px rgba(8, 145, 178, 0.45);
}

.zone-medallion.zone-biblioteca {
    background: linear-gradient(135deg, #92400e 0%, #d97706 55%, #fbbf24 100%);
    box-shadow: 0 4px 0 #78350f, 0 8px 18px rgba(217, 119, 6, 0.45);
}

.zone-medallion.zone-taller {
    background: linear-gradient(135deg, #9f1239 0%, #e11d48 55%, #fb7185 100%);
    box-shadow: 0 4px 0 #881337, 0 8px 18px rgba(225, 29, 72, 0.45);
}

/* Efecto hover en el medallón */
.adventure-zone-node:hover .zone-medallion {
    filter: brightness(1.1);
}

.adventure-zone-node:hover .zone-medallion.zone-castillo {
    box-shadow: 0 6px 0 #4c1d95, 0 12px 24px rgba(124, 58, 237, 0.6), 0 0 0 4px rgba(168, 85, 247, 0.5);
}

.adventure-zone-node:hover .zone-medallion.zone-bosque {
    box-shadow: 0 6px 0 #047857, 0 12px 24px rgba(5, 150, 105, 0.6), 0 0 0 4px rgba(52, 211, 153, 0.5);
}

.adventure-zone-node:hover .zone-medallion.zone-laboratorio {
    box-shadow: 0 6px 0 #155e75, 0 12px 24px rgba(8, 145, 178, 0.6), 0 0 0 4px rgba(56, 189, 248, 0.5);
}

.adventure-zone-node:hover .zone-medallion.zone-biblioteca {
    box-shadow: 0 6px 0 #78350f, 0 12px 24px rgba(217, 119, 6, 0.6), 0 0 0 4px rgba(251, 191, 36, 0.5);
}

.adventure-zone-node:hover .zone-medallion.zone-taller {
    box-shadow: 0 6px 0 #881337, 0 12px 24px rgba(225, 29, 72, 0.6), 0 0 0 4px rgba(251, 113, 133, 0.5);
}

/* Iconos SVG finos y proporcionados */
.zone-medallion svg {
    width: 25px;
    height: 25px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* Halo de pulso sutil */
.zone-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    animation: zonePulse 2.4s infinite;
    pointer-events: none;
}

@keyframes zonePulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* Píldora Mini Compacta de la Zona (Super delgada y limpia, 70% menos de espacio) */
.zone-info-card {
    opacity: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    margin-top: 0.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14), 0 1px 0 rgba(0,0,0,0.04);
    border: 1.5px solid #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    pointer-events: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    transform: translateY(-4px);
}

.adventure-zone-node:hover .zone-info-card {
    opacity: 1;
    transform: translateY(0);
}

.zone-mini-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-castillo { background: #7c3aed; }
.dot-bosque { background: #059669; }
.dot-laboratorio { background: #0891b2; }
.dot-biblioteca { background: #d97706; }
.dot-taller { background: #e11d48; }

.zone-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #1e293b;
    font-family: var(--font-heading);
    white-space: nowrap;
    line-height: 1;
}

.zone-reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #047857;
    background: #ecfdf5;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
    line-height: 1;
}

.zone-hover-cta {
    display: none;
    font-size: 0.72rem;
    font-weight: 900;
    color: #ffffff;
    background: #16a34a;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    box-shadow: 0 2px 5px rgba(22, 163, 74, 0.35);
    line-height: 1.2;
}

.adventure-zone-node:hover .zone-reward-badge {
    display: none;
}

.adventure-zone-node:hover .zone-hover-cta {
    display: inline-block;
}

/* ========================================================================== */


/* PALETA Y CONTROLES DEL AVATAR */
.avatar-input-name {
    width: 100%;
    max-width: 320px;
    padding: 0.8rem 1.4rem;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #1e293b;
    background: #f8fafc;
    border: 3px solid #cbd5e1;
    border-radius: var(--radius-full);
    outline: none;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.avatar-input-name:focus {
    border-color: var(--school-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 0.7rem;
    max-height: 180px;
    overflow-y: auto;
    padding: 0.4rem;
}

.color-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s;
    outline: none;
}
.color-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.color-btn:active {
    transform: scale(0.95);
}

.avatar-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
}

.avatar-tab-btn {
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    background: #f1f5f9;
    border: 2px solid transparent;
    font-weight: 800;
    font-family: var(--font-heading);
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
    transition: all 0.2s;
    white-space: nowrap;
}

.avatar-tab-btn:hover {
    background: #e2e8f0;
}

.avatar-tab-btn.active {
    background: var(--school-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.85rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.3rem;
}

.asset-choice-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.85rem 0.5rem;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: #334155;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.15s ease, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.asset-choice-btn:hover {
    transform: translateY(-3px);
    border-color: var(--school-blue);
    background: #eff6ff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
}

.asset-choice-btn:active {
    transform: scale(0.95);
}

.asset-icon {
    font-size: 2.2rem;
}

.asset-tag {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    margin-bottom: 0.2rem;
}

/* ==========================================================================
   SELECTOR DE VOLUMEN (0% A 100%) - PANTALLA CONFIGURACIÓN
   ========================================================================== */
.volume-badge {
    background: #eff6ff;
    color: #1e40af;
    border: 2px solid #bfdbfe;
    font-size: 1.35rem;
    font-weight: 900;
    font-family: var(--font-heading);
    padding: 0.35rem 1.15rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
    min-width: 85px;
    text-align: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.volume-control-wrapper {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background: #f8fafc;
    padding: 1.3rem 1.6rem;
    border-radius: 22px;
    border: 2px solid #e2e8f0;
}

.volume-mute-btn {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1e40af;
    box-shadow: 0 4px 0 #94a3b8;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    padding: 0;
}

.volume-mute-btn:hover {
    transform: translateY(-2px);
    background: #f1f5f9;
    box-shadow: 0 6px 0 #94a3b8;
    color: #2563eb;
}

.volume-mute-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #94a3b8;
}

.volume-mute-btn svg {
    width: 26px;
    height: 26px;
    display: block;
}

.volume-track-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.volume-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 14px;
    border-radius: 10px;
    background: linear-gradient(to right, #2563eb 0%, #2563eb var(--val-percent, 80%), #cbd5e1 var(--val-percent, 80%), #cbd5e1 100%);
    outline: none;
    cursor: pointer;
    transition: background 0.05s ease;
}

.volume-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 3.5px solid #1e40af;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.volume-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    border-color: #2563eb;
}

.volume-slider-input::-webkit-slider-thumb:active {
    transform: scale(1.05);
}

.volume-slider-input::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 3.5px solid #1e40af;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.35);
    cursor: pointer;
}

.volume-marks {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    user-select: none;
}

/* ==========================================================================
   BOTONES DE ACCIÓN CONFIGURACIÓN CON PROFUNDIDAD 3D PROPIA (SIN REBORDE ROJO)
   ========================================================================== */
.btn-action-green {
    background-color: #16a34a;
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 0 #15803d, 0 8px 16px rgba(22, 163, 74, 0.22);
    border-radius: 16px;
    font-weight: 900;
    font-size: 1.05rem;
    padding: 0.85rem 1.6rem;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #15803d, 0 12px 22px rgba(22, 163, 74, 0.32);
    filter: brightness(1.08);
}

.btn-action-green:active {
    transform: translateY(3px) !important;
    box-shadow: 0 2px 0 #15803d !important;
}

.btn-action-amber {
    background-color: #f59e0b;
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 0 #b45309, 0 8px 16px rgba(245, 158, 11, 0.22);
    border-radius: 16px;
    font-weight: 900;
    font-size: 1.05rem;
    padding: 0.85rem 1.6rem;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action-amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #b45309, 0 12px 22px rgba(245, 158, 11, 0.32);
    filter: brightness(1.08);
}

.btn-action-amber:active {
    transform: translateY(3px) !important;
    box-shadow: 0 2px 0 #b45309 !important;
}

.btn-action-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
    box-shadow: 0 5px 0 #f87171, 0 8px 16px rgba(239, 68, 68, 0.12);
    border-radius: 16px;
    font-weight: 900;
    font-size: 1.05rem;
    padding: 0.85rem 1.6rem;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action-danger:hover {
    background-color: #fecaca;
    border-color: #f87171;
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #ef4444, 0 12px 22px rgba(239, 68, 68, 0.22);
}

.btn-action-danger:active {
    transform: translateY(3px) !important;
    box-shadow: 0 2px 0 #ef4444 !important;
}

/* ==========================================================================
   SELECTOR DE SKINS / PERSONAJES ANIMALES (CARRUSEL CÍCLICO COMPACTO)
   ========================================================================== */
.skin-selector-card {
    background: rgba(255, 255, 255, 0.96);
    padding: 1.4rem 1.8rem;
    border-radius: 28px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
    border: 2px solid #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.skin-carousel-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 0.4rem 0 0.8rem 0;
    width: 100%;
}

.skin-nav-arrow {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #ffffff;
    border: 2.5px solid #cbd5e1;
    color: #1e3a8a;
    box-shadow: 0 5px 0 #94a3b8, 0 8px 18px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
    user-select: none;
    padding: 0;
}

.skin-nav-arrow:hover {
    transform: translateY(-3px) scale(1.06);
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
    box-shadow: 0 8px 0 #94a3b8, 0 14px 24px rgba(37, 99, 235, 0.2);
}

.skin-nav-arrow:active {
    transform: translateY(3px) scale(0.97) !important;
    box-shadow: 0 2px 0 #94a3b8 !important;
}

.skin-center-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.skin-preview-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    border: 3.5px solid #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08), inset 0 2px 6px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skin-large-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.14));
    animation: skinPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes skinPopIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.skin-info-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.skin-species-tag {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1e3a8a;
    font-family: var(--font-heading);
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    padding: 0.3rem 1.2rem;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.06);
}

.skin-counter-tag {
    font-size: 0.92rem;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
}

.skin-thumbnails-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.4rem 0 1.1rem 0;
    max-width: 540px;
    width: 100%;
}

.skin-thumb-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 2.5px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5px;
    transition: all 0.15s ease;
}

.skin-thumb-btn:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.skin-thumb-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    transform: scale(1.14);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.skin-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Barra inferior compacta: Nombre y Botón Aceptar alineados uno al lado del otro */
.skin-footer-bar {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
    max-width: 460px;
    margin-top: 0.1rem;
}

.skin-name-field-compact {
    flex: 1;
    text-align: left;
}

.skin-name-field-compact label {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 0.3rem;
}

.skin-name-input {
    width: 100%;
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-heading);
    text-align: left;
    color: #1e3a8a;
    background: #ffffff;
    border: 2.5px solid #cbd5e1;
    border-radius: 16px;
    padding: 0.58rem 1.1rem;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.skin-name-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.skin-btn-accept {
    height: 48px;
    padding: 0 1.8rem;
    font-size: 1.12rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    margin-bottom: 3px;
}

/* ========================================================
   ESTILOS INFANTILES Y BOTONES TÁCTILES 3D PARA ACTIVIDADES
/* ========================================================
   BOTONES DE ELECCIÓN TÁCTILES ESTILO MODERNO INFANTIL (DUOLINGO/LIMPIO)
   ======================================================== */
.tactile-btn {
    border-radius: 20px;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.1s, background-color 0.15s;
    outline: none;
    font-family: 'Nunito', 'Quicksand', system-ui, sans-serif;
    letter-spacing: -0.5px;
}
.tactile-btn:hover {
    transform: translateY(-3px);
}
.tactile-btn:active {
    transform: translateY(3px);
}

/* Naranja cálido (Frutas) */
.tactile-btn-amber {
    background: #ffffff;
    border: 3px solid #f97316;
    box-shadow: 0 5px 0 #c2410c, 0 10px 20px rgba(249, 115, 22, 0.15);
    color: #ea580c;
    min-width: 100px;
    height: 72px;
    font-size: 2.2rem;
}
.tactile-btn-amber:hover {
    background: #fff7ed;
    box-shadow: 0 6px 0 #c2410c, 0 12px 24px rgba(249, 115, 22, 0.22);
}
.tactile-btn-amber:active {
    box-shadow: 0 2px 0 #c2410c, 0 4px 8px rgba(249, 115, 22, 0.15);
}

/* Azul cielo (Dados) */
.tactile-btn-blue {
    background: #ffffff;
    border: 3px solid #0284c7;
    box-shadow: 0 5px 0 #0369a1, 0 10px 20px rgba(2, 132, 199, 0.15);
    color: #0284c7;
    min-width: 100px;
    height: 72px;
    font-size: 2.2rem;
}
.tactile-btn-blue:hover {
    background: #f0f9ff;
    box-shadow: 0 6px 0 #0369a1, 0 12px 24px rgba(2, 132, 199, 0.22);
}
.tactile-btn-blue:active {
    box-shadow: 0 2px 0 #0369a1, 0 4px 8px rgba(2, 132, 199, 0.15);
}

/* Dorado / Latón (Balanza) */
.tactile-btn-brass {
    background: #ffffff;
    border: 3px solid #f59e0b;
    box-shadow: 0 5px 0 #d97706, 0 10px 20px rgba(245, 158, 11, 0.15);
    color: #b45309;
    min-width: 105px;
    height: 74px;
}
.tactile-btn-brass:hover {
    background: #fffbeb;
    box-shadow: 0 6px 0 #d97706, 0 12px 24px rgba(245, 158, 11, 0.22);
}
.tactile-btn-brass:active {
    box-shadow: 0 2px 0 #d97706, 0 4px 8px rgba(245, 158, 11, 0.15);
}
.tactile-btn-brass-num {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
    color: #b45309;
}
.tactile-btn-brass-sub {
    font-size: 0.72rem;
    font-weight: 800;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* Púrpura mágico (Adivinanzas) */
.tactile-btn-purple {
    background: #ffffff;
    border: 3px solid #8b5cf6;
    box-shadow: 0 5px 0 #6d28d9, 0 10px 20px rgba(139, 92, 246, 0.15);
    color: #7c3aed;
    min-width: 100px;
    height: 72px;
    font-size: 2.2rem;
}
.tactile-btn-purple:hover {
    background: #faf5ff;
    box-shadow: 0 6px 0 #6d28d9, 0 12px 24px rgba(139, 92, 246, 0.22);
}
.tactile-btn-purple:active {
    box-shadow: 0 2px 0 #6d28d9, 0 4px 8px rgba(139, 92, 246, 0.15);
}

/* Blanco escolar (Ordenar regla) */
.tactile-btn-white {
    background: #ffffff;
    border: 3px solid #3b82f6;
    box-shadow: 0 5px 0 #1d4ed8, 0 10px 20px rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
    min-width: 100px;
    height: 72px;
    font-size: 2.2rem;
}
.tactile-btn-white:hover {
    background: #eff6ff;
    box-shadow: 0 6px 0 #1d4ed8, 0 12px 24px rgba(59, 130, 246, 0.22);
}
.tactile-btn-white:active {
    box-shadow: 0 2px 0 #1d4ed8, 0 4px 8px rgba(59, 130, 246, 0.15);
}

@keyframes trophyBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-8px) scale(1.06); }
}

@keyframes fruitBounce {
    0% { transform: scale(1) translateY(0); }
    40% { transform: scale(1.3) translateY(-30px); }
    70% { transform: scale(0.9) translateY(0); }
    100% { transform: scale(1) translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(2, 132, 199, 0.4); border-color: #0284c7; }
    50% { box-shadow: 0 0 24px rgba(2, 132, 199, 0.85); border-color: #38bdf8; }
}

/* ==========================================================================
   RULETA DEL SABER - MINI-ETIQUETA LATERAL Y DESPLEGABLE DESLIZANTE
   Diseño infantil, limpio y dinámico con las 5 Zonas del Saber de Aula Aventura
   ========================================================================== */

/* 1. Mini-Etiqueta Lateral Flotante a la Derecha */
.map-side-roulette-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 950;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border: 2.5px solid #fef08a;
    border-right: none;
    border-radius: 20px 0 0 20px;
    padding: 0.75rem 0.85rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: -4px 6px 18px rgba(234, 88, 12, 0.45), 0 0 12px rgba(254, 240, 138, 0.35);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, opacity 0.3s ease;
    user-select: none;
    outline: none;
}

.map-side-roulette-tab:hover {
    transform: translateY(-50%);
    box-shadow: -4px 6px 20px rgba(234, 88, 12, 0.6), 0 0 16px rgba(254, 240, 138, 0.55);
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
}

.map-side-roulette-tab:active {
    transform: translateY(-50%);
    filter: brightness(0.95);
}

.map-side-roulette-tab.docked-hidden {
    transform: translateY(-50%) translateX(120%);
    pointer-events: none;
    opacity: 0;
}

.side-tab-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    animation: spinSlowly 12s linear infinite;
}

@keyframes spinSlowly {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.side-tab-text {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1.5px 3px rgba(120, 53, 15, 0.8);
}

/* 2. Fondo Oscuro Semitransparente con Desenfoque (Backdrop) */
.ruleta-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.ruleta-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* 3. Panel Lateral Deslizante (Slide-in Drawer) */
.ruleta-side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(440px, 94vw);
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.28);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3.5px solid #f59e0b;
    overflow: hidden;
}

.ruleta-side-drawer.open {
    transform: translateX(0);
}

/* Cabecera del Desplegable */
.ruleta-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.25rem;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-bottom: 3px solid #38bdf8;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.ruleta-drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ruleta-drawer-title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: 0.3px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.ruleta-drawer-subtitle {
    font-size: 0.78rem;
    color: #bae6fd;
    font-weight: 600;
    display: block;
}

.ruleta-drawer-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ruleta-drawer-close-btn:hover {
    background: #ef4444;
    border-color: #fca5a5;
    transform: scale(1.1) rotate(90deg);
}

/* Contenedor Interior del Desplegable */
.ruleta-drawer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 1.1rem 2.8rem 1.1rem;
    gap: 2.2rem;
}

/* Escenario Central de la Ruleta */
.ruleta-wheel-stage {
    position: relative;
    width: 350px;
    height: 350px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

#ruleta-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

/* Fila de Acción y Botón 3D Infantil de Girar */
.ruleta-action-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-spin-fun {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border: 3px solid #fef08a;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 0 #9a3412, 0 10px 22px rgba(234, 88, 12, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.15s ease;
    text-shadow: 0 2px 4px rgba(120, 53, 15, 0.7);
    user-select: none;
    outline: none;
}

.btn-spin-fun:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #9a3412, 0 14px 26px rgba(234, 88, 12, 0.55);
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
}

.btn-spin-fun:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #9a3412, 0 4px 12px rgba(234, 88, 12, 0.35);
}

.btn-spin-fun:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.25);
}

.spin-fun-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
    transform: translateY(2px);
}

/* 4. Contenedor y Partículas de Confeti Flotantes */
.ruleta-confetti-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1001;
}

.ruleta-confetti-particle {
    position: absolute;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1002;
    animation: confettiFall 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(350px) rotate(720deg) scale(0.6);
        opacity: 0;
    }
}
