/* styles/main.css - Estilos principales del juego */

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos del cuerpo */
body {
    background: linear-gradient(135deg, #87CEEB 0%, #F4A460 50%, #D2691E 100%);
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

/* Efecto de partículas en el fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #FFD700, transparent),
        radial-gradient(2px 2px at 40px 70px, #FFA500, transparent),
        radial-gradient(1px 1px at 90px 40px, #FFD700, transparent),
        radial-gradient(1px 1px at 130px 80px, #FFA500, transparent),
        radial-gradient(2px 2px at 160px 30px, #FFD700, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-30px) translateX(10px); }
    66% { transform: translateY(-60px) translateX(-10px); }
    100% { transform: translateY(-100px) translateX(0px); }
}

/* Contenedor del juego */
#gameContainer {
    position: relative;
    border: 3px solid #8B4513;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #F4A460;
    overflow: hidden;
    max-width: 98vw;
    max-height: 90vh;
}

/* Canvas del juego */
#gameCanvas {
    display: block;
    background: linear-gradient(to bottom, #87CEEB 0%, #F4A460 70%, #D2691E 100%);
    cursor: pointer;
}

/* Efecto de zoom inicial */
#introOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(244, 164, 96, 0.9) 0%, rgba(139, 69, 19, 0.95) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    animation: backgroundPulse 2.5s ease-in-out;
}

@keyframes backgroundPulse {
    0% {
        background: radial-gradient(circle, rgba(244, 164, 96, 0.7) 0%, rgba(139, 69, 19, 0.8) 100%);
    }
    50% {
        background: radial-gradient(circle, rgba(244, 164, 96, 0.95) 0%, rgba(139, 69, 19, 1) 100%);
    }
    100% {
        background: radial-gradient(circle, rgba(244, 164, 96, 0.9) 0%, rgba(139, 69, 19, 0.95) 100%);
    }
}

#introOverlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#introVideoContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#introVideo {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transform: scale(0.3);
    opacity: 0;
    animation: zoomInEffect 2.5s ease-out forwards;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    border-radius: 10px;
    transition: all 0.3s ease;
}

#introVideo:hover {
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
    transform: scale(1.02);
}

/* Fallback para la imagen cuando el video no esté disponible */
#introImageFallback {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transform: scale(0.3);
    opacity: 0;
    animation: zoomInEffect 2.5s ease-out forwards;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    display: none; /* Oculto por defecto */
}

#skipIntroText {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    animation: fadeInDelay 1s ease-in forwards;
    opacity: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-family: Arial, sans-serif;
}

@keyframes fadeInDelay {
    0% { opacity: 0; }
    100% { opacity: 0.8; }
}

@keyframes zoomInEffect {
    0% {
        transform: scale(0.3);
        opacity: 0;
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8)) brightness(1.3);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.7)) brightness(1.2);
    }
    70% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6)) brightness(1.1);
    }
    90% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5)) brightness(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4)) brightness(1);
    }
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    #introVideo, #introImageFallback {
        max-width: 90%;
        max-height: 70%;
    }
    
    #skipIntroText {
        font-size: 12px;
        bottom: 15px;
    }
    
    @keyframes zoomInEffect {
        0% {
            transform: scale(0.2);
            opacity: 0;
            filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) brightness(1.3);
        }
        30% {
            opacity: 1;
            transform: scale(1.1);
            filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7)) brightness(1.2);
        }
        70% {
            transform: scale(1.05);
            filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6)) brightness(1.1);
        }
        90% {
            transform: scale(1.02);
            filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)) brightness(1.05);
        }
        100% {
            transform: scale(1);
            opacity: 1;
            filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4)) brightness(1);
        }
    }
}

@media (max-width: 480px) {
    #introVideo, #introImageFallback {
        max-width: 95%;
        max-height: 60%;
    }
    
    #skipIntroText {
        font-size: 11px;
        bottom: 10px;
    }
}

/* Menú Principal - Rediseñado sin scroll */
#mainMenu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.95) 0%, rgba(244, 164, 96, 0.95) 50%, rgba(210, 105, 30, 0.95) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 15px;
}

/* Video de fondo del menú */
#menuBackgroundVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

#menuContent {
    text-align: center;
    animation: menuFadeIn 1s ease-out;
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efectos de brillo animado en el menú */
#menuContent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: menuShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes menuShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

/* Logo y título - Más prominente y a la izquierda */
#logoContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex: 1;
    justify-content: center;
}

#gameInitImage {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 8px 40px rgba(255, 215, 0, 0.7);
    transition: all 0.3s ease;
    animation: logoGlow 2s ease-in-out infinite alternate;
    border: 4px solid rgba(255, 215, 0, 0.3);
}

@keyframes logoGlow {
    from {
        box-shadow: 0 8px 40px rgba(255, 215, 0, 0.7);
        transform: scale(1);
    }
    to {
        box-shadow: 0 12px 60px rgba(255, 215, 0, 1);
        transform: scale(1.08);
    }
}

#gameInitImage:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 15px 80px rgba(255, 215, 0, 1);
}

#gameTitle {
    font-size: 38px;
    color: #8B4513;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.5),
        0 0 25px rgba(255, 215, 0, 0.4);
    margin: 0;
    font-weight: bold;
    letter-spacing: 4px;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

#gameSubtitle {
    font-size: 12px;
    color: #654321;
    font-style: italic;
    margin: 0;
    opacity: 0.8;
}

/* Sección de botones y créditos - A la derecha */
#menuRightSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex: 1;
    height: 100%;
}

/* Botones del menú - Más compactos y agrupados */
#menuButtons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.menu-btn {
    width: 180px;
    height: 55px;
    border: none;
    border-radius: 27px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.menu-btn:hover::before {
    left: 100%;
}

.menu-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.menu-btn:hover::after {
    width: 120px;
    height: 120px;
}

.menu-btn.primary {
    background: linear-gradient(45deg, #228B22, #32CD32, #90EE90);
    color: white;
    box-shadow: 
        0 4px 15px rgba(34, 139, 34, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    animation: primaryGlow 2s ease-in-out infinite alternate;
}

@keyframes primaryGlow {
    from { box-shadow: 0 4px 15px rgba(34, 139, 34, 0.4), inset 0 1px 0 rgba(255,255,255,0.3); }
    to { box-shadow: 0 6px 25px rgba(34, 139, 34, 0.6), inset 0 1px 0 rgba(255,255,255,0.5); }
}

.menu-btn.primary:hover {
    background: linear-gradient(45deg, #32CD32, #90EE90, #228B22);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(34, 139, 34, 0.7);
}

.menu-btn.secondary {
    background: linear-gradient(45deg, #D2691E, #F4A460, #DEB887);
    color: white;
    box-shadow: 
        0 4px 15px rgba(210, 105, 30, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.menu-btn.secondary:hover {
    background: linear-gradient(45deg, #F4A460, #DEB887, #D2691E);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(210, 105, 30, 0.7);
}

.btn-icon {
    font-size: 14px;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

/* Créditos del juego - Compactos */
#gameCredits {
    color: #654321;
    font-size: 10px;
    text-align: center;
    opacity: 0.8;
    flex-shrink: 0;
}

.version {
    font-size: 9px;
    opacity: 0.6;
    margin-top: 2px;
}

/* Modales - Rediseñados para mejor usabilidad */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: linear-gradient(135deg, #F4A460, #D2691E);
    margin: 20px auto;
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: #FFD700;
    transform: scale(1.1);
}

.modal h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    padding-right: 30px;
}

/* Instrucciones - Mejorado para scroll */
.instructions-content {
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar personalizada */
.instructions-content::-webkit-scrollbar {
    width: 8px;
}

.instructions-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.instructions-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.instructions-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.instruction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.key {
    background: #8B4513;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
    font-size: 12px;
}

.action {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.instruction-tip {
    text-align: center;
    color: #FFD700;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    font-size: 13px;
}

/* Puntuación máxima */
.score-display {
    text-align: center;
    margin: 20px 0;
}

.score-display span {
    font-size: 42px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.score-display p {
    color: white;
    font-size: 16px;
    margin-top: 5px;
}

.reset-btn {
    background: #FF4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    font-size: 14px;
}

.reset-btn:hover {
    background: #CC3333;
    transform: translateY(-2px);
}

/* UI del juego */
#ui {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    z-index: 10;
    display: none;
}

/* Pantalla de Game Over */
#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.9);
    padding: 30px;
    border-radius: 20px;
    display: none;
    z-index: 100;
    min-width: 280px;
    max-width: 90%;
    border: 2px solid #FFD700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Animación de Game Over */
@keyframes gameOverFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#gameOver h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #FF6B6B;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

#gameOver p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Botones de Game Over */
#restartBtn, #mainMenuBtn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px 8px;
    font-weight: bold;
}

#mainMenuBtn {
    background: #2196F3;
}

#restartBtn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

#mainMenuBtn:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

/* Responsive design mejorado */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    #gameContainer {
        max-width: 98vw;
        max-height: 90vh;
    }
    
    #gameCanvas {
        max-width: 100%;
        height: auto;
    }
    
    #ui {
        font-size: 20px;
        top: 15px;
        left: 15px;
    }
    
    /* Cambiar a diseño vertical en móviles */
    #menuContent {
        flex-direction: column;
        justify-content: space-evenly;
        padding: 15px;
    }
    
    #logoContainer {
        flex: none;
    }
    
    #menuRightSection {
        flex: none;
        gap: 20px;
    }
    
    #gameTitle {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    #menuButtons {
        flex-direction: column;
        gap: 10px;
    }
    
    .menu-btn {
        width: 160px;
        height: 45px;
        font-size: 10px;
    }
    
    #gameInitImage {
        width: 80px;
        height: 80px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px auto;
        padding: 20px;
        max-height: 85vh;
    }
    
    .instructions-content {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    #gameContainer {
        border-width: 2px;
    }
    
    #ui {
        font-size: 18px;
        top: 10px;
        left: 10px;
    }
    
    #gameOver {
        padding: 20px;
        margin: 10px;
        min-width: auto;
    }
    
    #gameOver h2 {
        font-size: 24px;
    }
    
    #restartBtn, #mainMenuBtn {
        padding: 10px 16px;
        font-size: 13px;
        margin: 3px;
        display: block;
        width: 100%;
        max-width: 200px;
    }
    
    .modal-content {
        width: 98%;
        margin: 5px auto;
        padding: 15px;
        max-height: 90vh;
    }
    
    #gameTitle {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    #gameSubtitle {
        font-size: 11px;
    }
    
    .menu-btn {
        width: 140px;
        height: 40px;
        font-size: 9px;
        gap: 3px;
    }
    
    .btn-icon {
        font-size: 12px;
    }
    
    #gameInitImage {
        width: 60px;
        height: 60px;
    }
    
    .instructions-content {
        max-height: 200px;
    }
    
    .instruction-item {
        padding: 6px;
        margin: 6px 0;
    }
    
    .key {
        min-width: 60px;
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .action {
        font-size: 12px;
    }
    
    .instruction-tip {
        font-size: 11px;
        padding: 8px;
    }
}

@media (max-height: 600px) {
    #menuContent {
        transform: scale(0.85);
        gap: 5px;
    }
    
    #gameTitle {
        font-size: 24px;
    }
    
    .menu-btn {
        height: 40px;
        width: 120px;
        font-size: 10px;
    }
    
    #gameInitImage {
        width: 50px;
        height: 50px;
    }
    
    #menuRightSection {
        gap: 15px;
    }
}

/* Media query adicional para pantallas muy anchas */
@media (min-width: 1200px) {
    #gameInitImage {
        width: 140px;
        height: 140px;
    }
    
    #gameTitle {
        font-size: 42px;
        letter-spacing: 5px;
    }
    
    .menu-btn {
        width: 200px;
        height: 60px;
        font-size: 13px;
    }
}

/* Controles táctiles para dispositivos móviles */
.touch-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Oculto por defecto, se muestra en dispositivos táctiles */
    gap: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.touch-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.touch-btn:active {
    transform: scale(0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.touch-left, .touch-right {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.touch-left:active, .touch-right:active {
    background: linear-gradient(135deg, #1976D2, #1565C0);
}

.touch-jump {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.touch-jump:active {
    background: linear-gradient(135deg, #F57C00, #E65100);
}

.touch-attack {
    background: linear-gradient(135deg, #FF6347, #FF4500);
}

.touch-attack:active {
    background: linear-gradient(135deg, #FF4500, #DC143C);
}

.touch-shield {
    background: linear-gradient(135deg, #00BFFF, #0080FF);
}

.touch-shield:active {
    background: linear-gradient(135deg, #0080FF, #0040FF);
}

/* Mostrar controles táctiles en dispositivos móviles */
@media (max-width: 768px) and (pointer: coarse) {
    .touch-controls {
        display: flex;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .touch-controls {
        bottom: 10px;
        gap: 15px;
        padding: 10px;
    }
    
    .touch-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}