/* Estilos generales y reset */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Montserrat:wght@300;400;500;700&display=swap');

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

/* Añade estos estilos a tu archivo styles.css */

/* Estilos para la entrada de datos del equipo */
.team-input {
    margin: 1rem auto;
    max-width: 400px;
    width: 100%;
}

.team-input input {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid var(--color-yellow);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    text-align: center;
}

.team-input input:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 10px rgba(0, 195, 137, 0.5);
}

/* Estilos para la selección de avatares */
.avatar-selection {
    margin: 20px 0;
    text-align: center;
}

.avatar-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.avatar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
}

.avatar-option:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(253, 218, 36, 0.5);
    border-color: var(--color-yellow);
}

.avatar-option.selected {
    border-color: var(--color-yellow);
    box-shadow: 0 0 20px rgba(253, 218, 36, 0.5);
    background-color: rgba(253, 218, 36, 0.1);
}

.avatar-option img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 5px;
}

.avatar-option span {
    font-size: 1.1em;
    color: var(--color-white);
}

/* Estilo para el botón de descarga en la pantalla final */
#download-team-data {
    background-color: var(--color-green);
    color: var(--color-primary);
    font-weight: bold;
    margin-top: 30px !important;
    margin-bottom: 10px !important;
    transition: all 0.3s ease;
}

#download-team-data:hover {
    background-color: #00d89a;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 195, 137, 0.5);
}

/* Corregir los estilos para la pantalla final */
#ending-screen {
    /* Eliminamos las reglas que fuerzan display: none !important */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Cambiamos !important por valor simple */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--color-white);
    text-align: center;
    transition: opacity var(--transition-medium);
    overflow-y: auto;
    z-index: 10;
}

#ending-screen.active {
    display: flex !important; /* Mantenemos !important aquí para asegurar que se muestre */
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}


/* Animaciones para los efectos visuales */
@keyframes pulse-glow {
    0% { opacity: 0; }
    50% { opacity: 0.8; }
    100% { opacity: 0; }
}

@keyframes glow-button {
    0% { box-shadow: 0 0 10px rgba(253, 218, 36, 0.8); }
    100% { box-shadow: 0 0 30px rgba(253, 218, 36, 1); }
}

@keyframes pulse-marker {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
}

/* Ajustes visuales para el ensamblaje */
#final-assembly h2 {
    color: var(--color-yellow);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(253, 218, 36, 0.5);
}

#final-assembly p {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    max-width: 800px;
}

.instructions-highlight {
    background-color: rgba(253, 218, 36, 0.2);
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid var(--color-yellow);
    margin: 1.5rem auto;
    font-weight: bold;
    font-size: 1.2rem !important;
    max-width: 800px;
}

#seal-container {
    margin: 2rem 0;
    padding: 2rem;
}

#seal-base {
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem auto;
}

.seal-component {
    transition: all 0.3s ease;
}

.seal-component.placed {
    opacity: 0.6;
    pointer-events: none;
}

#activate-seal {
    margin-top: 2rem;
    font-size: 1.4rem;
    padding: 1rem 2.5rem;
}

#activate-seal.ready {
    font-weight: bold;
}

/* Estilos para el mensaje de éxito */
.success-celebration-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.95) !important;
    z-index: 9999 !important;
}

.success-celebration-message img {
    filter: drop-shadow(0 0 20px rgba(253, 218, 36, 0.8));
    animation: totem-glow 3s infinite alternate;
}

.activation-effect {
    z-index: 9998 !important;
}

@keyframes totem-glow {
    0% { filter: drop-shadow(0 0 10px rgba(253, 218, 36, 0.6)); }
    100% { filter: drop-shadow(0 0 30px rgba(253, 218, 36, 1)); }
}

/* Estilo para las ondas de activación */
.seal-activation-wave {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid var(--color-yellow);
    transform: scale(1);
    opacity: 0.8;
    animation: wave-expand 2s ease-out forwards;
    pointer-events: none;
}

@keyframes wave-expand {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Estilo para el efecto de colocación */
.seal-placement-flash {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid;
    animation: flash-expand 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes flash-expand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

:root {
    /* Paleta primaria */
    --color-primary: #2c2a29; /* Negro */
    --color-white: #ffffff; /* Blanco */
    
    /* Paleta secundaria */
    --color-yellow: #FDDA24; /* Amarillo Macondo */
    --color-green: #00C389; /* Verde Andino */
    --color-purple: #9063CD; /* Violeta Orquídea */
    --color-orange: #FF7F41; /* Naranja Alba */
    
    /* Variables de tipografía */
    --font-primary: 'CIBFont Sans', sans-serif;
    --font-size-small: 0.875rem;
    --font-size-base: 1rem;
    --font-size-large: 1.25rem;
    --font-size-xlarge: 1.5rem;
    --font-size-xxlarge: 2rem;
    
    /* Variables de espaciado */
    --spacing-small: 0.5rem;
    --spacing-medium: 1rem;
    --spacing-large: 2rem;
    
    /* Variables de transición */
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
    --transition-slow: 0.5s;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-primary);
    color: var(--color-white);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

button {
    cursor: pointer;
    font-family: var(--font-primary);
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

/* Contenedor principal del juego */
#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('https://source.unsplash.com/random/1920x1080/?ancient-forest');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image var(--transition-slow);
}

#game-container.restored {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('https://source.unsplash.com/random/1920x1080/?vibrant-forest-sunlight');
}

/* Añadir estos estilos al archivo styles.css */

/* Contenedor del video de introducción */
#video-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

/* Estilo para el video */
#intro-video {
    max-width: 100%;
    max-height: 100%;
}

/* Indicador para saltar el video */
#skip-indicator {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s, transform 0.3s;
}

#skip-indicator:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

/* Ocultar la pantalla de inicio inicialmente hasta que termine el video */
#start-screen {
    display: none;
}

#start-screen.active {
    display: flex;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilos para pantallas */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    text-align: center;
    transition: opacity var(--transition-medium);
    overflow-y: auto;
    z-index: 10;
}

.screen.active {
    display: flex;
}

.screen.fading-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}

.screen.fading-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

/* Pantalla de inicio */
#start-screen {
    background-color: rgba(0, 0, 0, 0.7);
    padding-top: 50px; /* Añadir esta línea */
}

#start-screen h1 {
    font-size: 3.5rem;
    color: var(--color-yellow);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#start-screen h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-white);
}

.story {
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--color-yellow);
    margin-bottom: 2rem;
}

.continue-instructions-button {
    background-color: var(--color-yellow);
    color: var(--color-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.continue-instructions-button:hover {
    background-color: var(--color-orange);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.team-selection {
    max-width: 650px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.7rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.guardian-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.guardian-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guardian-input label {
    min-width: 100px;
    text-align: right;
}

.guardian-input input {
    flex: 1;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    font-family: var(--font-primary);
}

.guardian-input input:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 2px rgba(212, 167, 76, 0.3);
}

/* Botones principales */
.main-button {
    background-color: var(--color-yellow);
    color: var(--color-primary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    margin: 1rem 0;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    min-width: 200px;
}

.main-button:hover {
    background-color: var(--color-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.main-button:active {
    transform: translateY(1px);
}

.main-button:disabled {
    background-color: #667066;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.main-button.ready {
    background-color: var(--color-yellow);
    color: var(--color-primary);
    animation: pulse 1.5s infinite alternate;
}

/* Interfaz de juego */
#game-interface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    pointer-events: none;
    background-color: transparent;
    z-index: 100;
    display: none; /* Cambiar de display: flex a display: none */
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

/* Añadir esta regla nueva */
#game-interface.active {
    display: flex;
}

#plague-meter-container {
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--color-orange);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 101;
    min-width: 200px;
}

#rigour-progress, #opportunity-progress {
    position: fixed;
    top: 1rem;
    left: 25%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--color-yellow);
    box-shadow: var(--shadow-sm);
    z-index: 101;
    pointer-events: none;
    min-width: 100px;
    text-align: center;
}

#rigour-progress.hidden, #opportunity-progress.hidden {
    display: none;
}

#challenge-title-container {
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: 2px solid var(--color-yellow);
    box-shadow: var(--shadow-sm);
    pointer-events: none;
    z-index: 101;
    margin: 0 auto;
}

#timer-container {
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--color-yellow);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 101;
    min-width: 100px;
}

/* Indicadores de progreso */
#responsibility-progress {
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--color-yellow);
    box-shadow: var(--shadow-sm);
    z-index: 101;
    pointer-events: none;
    margin-right: 1rem;
}

#timer {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-yellow);
}

#plague-meter-label {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

#plague-meter {
    width: 100%;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

#plague-progress {
    height: 100%;
    width: 0%;
    background-color: var(--color-purple);
    transition: width var(--transition-medium), background-color var(--transition-medium);
}

#challenge-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--color-yellow);
}

#challenge-indicators {
    position: absolute;
    top: 5rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
    z-index: 20;
}

.challenge-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-medium);
}

.challenge-indicator.completed {
    border-color: var(--color-yellow);
    background-color: rgba(42, 114, 71, 0.7);
}

.indicator-icon {
    font-size: 1.2rem;
}

.indicator-label {
    font-size: 0.9rem;
}

/* Desafíos */
.challenge {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    text-align: center;
    transition: opacity var(--transition-medium);
    overflow-y: auto;
    z-index: 10;
}

.challenge.active {
    display: flex;
}

.challenge-intro {
    max-width: 800px;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    z-index: 10;
}

.start-challenge-button {
    background-color: var(--color-yellow);
    color: var(--color-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.start-challenge-button:hover {
    background-color: var(--color-orange);
    transform: translateY(-2px);
}

.challenge-gameplay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gameplay-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(44, 42, 41, 0.8);
    border: 1px solid var(--color-yellow);
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hidden {
    display: none;
}

/* Avatar del jugador */
.player-avatar {
    position: absolute;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease-out;
    z-index: 100;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.player-avatar.moving {
    animation: moveAnimation 0.3s ease-out;
}

@keyframes moveAnimation {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.player-avatar.bird {
    background-image: url('images/buho.png');
}

.player-avatar.butterfly {
    background-image: url('images/colibri.png');
}

.player-avatar.hawk {
    background-image: url('images/halcon.png');
}

.destination-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.8) 0%, rgba(74, 144, 226, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    animation: pulse-marker 1.2s infinite;
}

@keyframes pulse-marker {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.path-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 204, 0, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    animation: fade-dot 1s forwards;
}
.object-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;
}

@keyframes fade-dot {
    from {
        opacity: 0.6;
    }
    to {
        opacity: 0;
    }
}

.motivation-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 30px 40px; /* Aumentado el padding vertical y horizontal */
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--color-yellow);
    font-size: 1em; /* Aumentado tamaño de fuente base */
    line-height: 1.4; /* Mejorado el espacio entre líneas */
    animation: fadeIn 0.5s ease-in-out;
    backdrop-filter: blur(4px);
    min-height: 80px; /* Altura mínima para garantizar espacio */
    display: flex;
    align-items: center;
    justify-content: center;
}

.motivation-message p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 700;
}

/* Mantenemos los estilos específicos para mensajes de error y éxito */
.motivation-message.error-message {
    background-color: rgba(255, 0, 0, 0.4);
    border-color: var(--color-danger);
    color: white;
    font-size: 1em;
    font-weight: 700;
}

.motivation-message.success-message {
    background-color: rgba(0, 255, 0, 0.4);
    border-color: green;
    color: white;
    font-size: 2em;
    font-weight: 700;
}

.discovery-effect {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 35px 45px;
    border-radius: 25px;
    text-align: center;
    z-index: 1000;
    max-width: 800px;
    width: 98%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    border: 4px solid var(--color-yellow);
    font-size: 2em;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-in-out;
}

.discovery-effect h3 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: var(--color-yellow);
    font-weight: 800;
}

.discovery-effect p {
    font-size: 1.8em;
    margin: 20px 0;
    line-height: 1.7;
    font-weight: 700;
}

.discovery-effect .success-message {
    background-color: rgba(0, 255, 0, 0.4);
    border-color: green;
}

.discovery-effect .error-message {
    background-color: rgba(255, 0, 0, 0.4);
    border-color: var(--color-danger);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Desafío 1: Rigurosidad */
#forest-map {
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--color-primary);
}

.forest-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(42, 114, 71, 0.1) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.forest-fog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.4) 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: fog-move 20s infinite alternate;
}

@keyframes collect-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes fog-move {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Añade o reemplaza estos estilos en tu archivo styles.css */

.ancient-sign {
    position: absolute;
    font-size: 2.5em; /* Tamaño más pequeño */
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 2;
    opacity: 0.85; /* Menos brillante */
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.3)); /* Sombra más sutil */
}

.ancient-sign:hover {
    transform: scale(1.1); /* Escala más sutil al hacer hover */
    opacity: 1;
}

.ancient-sign.found {
    opacity: 0.5;
    pointer-events: none;
}

/* Añadir estos estilos para los efectos de color */
.ancient-sign.found[data-type="correct"] {
    filter: drop-shadow(0 0 5px rgba(0,255,0,0.7));
    border: 2px solid rgba(0,255,0,0.5);
    border-radius: 50%;
    padding: 5px;
    background-color: rgba(0,255,0,0.15);
}

.ancient-sign.found[data-type="incorrect"] {
    filter: drop-shadow(0 0 5px rgba(255,0,0,0.7));
    border: 2px solid rgba(255,0,0,0.5);
    border-radius: 50%;
    padding: 5px;
    background-color: rgba(255,0,0,0.15);
}

.tree-symbol {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--color-yellow);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-yellow);
    font-size: 1.2rem;
}

.tree-symbol:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

.tree-symbol.selected {
    background-color: var(--color-yellow);
    color: var(--color-primary);
}

.flower {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0;
    transform: scale(0);
}

.flower.bloomed {
    opacity: 1;
    transform: scale(1);
    animation: pulse 1s infinite alternate;
}

.obstacle {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.collection-effect {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 167, 76, 0.8) 0%, rgba(212, 167, 76, 0) 70%);
    transform: translate(-50%, -50%);
    animation: collect-pulse 1s ease-out forwards;
    pointer-events: none;
    z-index: 5;
}

.success-message {
    background-color: var(--color-primary);
    border: 2px solid var(--color-green);
    color: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 80%;
    text-align: center;
}

.error-message {
    background-color: var(--color-primary);
    border: 2px solid var(--color-orange);
    color: var(--color-white);
}

/* Desafío 2: Oportunidad */
#flowers-container {
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--color-purple);
}

.flower {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0.5;
    z-index: 3;
}

.flower.blooming {
    opacity: 1;
    box-shadow: 0 0 15px 5px currentColor;
    animation: pulse 1s infinite alternate;
}

.flower.golden {
    background-color: #ffd700;
    color: #ffd700;
}

.flower.blue {
    background-color: #4169e1;
    color: #4169e1;
}

.flower.red {
    background-color: #dc143c;
    color: #dc143c;
}

.flower.purple {
    background-color: #8a2be2;
    color: #8a2be2;
}

.flower-timer {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transform-origin: left;
}

.points-indicator {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    animation: float-up 1s forwards;
    pointer-events: none;
}

@keyframes float-up {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Desafío 3: Responsabilidad */
#riddles-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.riddle {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid var(--color-yellow);
}
/* Desafío 3: Responsabilidad */
#ancient-tree {
    background-color: rgba(0, 0, 0, 0.4);
    background-image: url('fondoacertijo.jpg'); /* Asegúrate de que esta ruta sea correcta */
    background-size: cover;
    background-position: center;
    border: 2px solid var(--color-yellow);
}
 
 .symbol {
    position: absolute;
    width: 80px; /* Aumentar el tamaño */
    height: 80px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--color-tertiary);
    border-radius: 10px;
    display: flex;
    flex-direction: column; /* Alineación vertical del emoji y la descripción */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 3;
    color: var(--color-yellow);
    font-size: 1.2rem;
    text-align: center; /* Centrar el texto */
    padding: 5px; /* Añadir un poco de espacio interno */
    box-shadow: 0 0 10px rgba(253, 218, 36, 0.5); /* Brillo sutil inicial */
}
 
 .symbol:hover {
    transform: scale(1.1);
    border-color: var(--color-yellow);
    box-shadow: 0 0 15px var(--color-yellow); /* Brillo más intenso al hacer hover */
    background-color: rgba(0, 0, 0, 0.9); /* Fondo más oscuro al hacer hover */
}
 
.symbol.selected {
    border: 4px solid var(--color-yellow) !important;
    box-shadow: none !important; /* Eliminar el box-shadow */
    background-color: rgba(253, 218, 36, 0.9) !important;
    color: var(--color-primary) !important;
    transform: scale(1.15) !important;
    z-index: 100 !important; /* Mayor z-index para estar al frente */
    
    /* Añadir un outline para mayor visibilidad */
    outline: 3px solid rgba(253, 218, 36, 0.7) !important;
    outline-offset: 2px !important;
}
 
 .symbol svg {
    width: 60%;
    height: 60%;
 }
 
 .symbol-emoji {
    font-size: 2em; /* Hacer los emojis más grandes */
    margin-bottom: 5px; /* Espacio debajo del emoji */
 }
 
 .symbol-description {
    font-size: 0.8em; /* Tamaño de la descripción */
    opacity: 0.8; /* Menos opaco */
 }
 
 /* Contenedor circular de símbolos (ajustado) */
 .symbols-circle {
    position: relative;
    width: 350px; /* Aumentar el tamaño del círculo */
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotate-slowly 40s linear infinite, pulse-subtle 4s ease-in-out infinite alternate;
 }
/* Estilo CSS para el botón de reinicio con transparencia */
.restart-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(253, 218, 36, 0.8); /* var(--color-yellow) con 80% de opacidad */
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px); /* Efecto de desenfoque para el fondo */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
}

.restart-button:hover {
    background-color: rgba(253, 218, 36, 0.9); /* Más opaco al pasar el cursor */
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}
 
 @keyframes rotate-slowly {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
 }
 
 @keyframes pulse-subtle {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
 }

 @keyframes float-symbol {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
 }

 @keyframes glow-symbol {
    0% { box-shadow: 0 0 5px rgba(253, 218, 36, 0.5); }
    100% { box-shadow: 0 0 15px rgba(253, 218, 36, 0.8); }
 }

 @keyframes symbol-appear {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
 }
 

/* Ensamblaje Final */
#seal-container {
    position: relative;
    width: 600px;
    height: 400px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#seal-base {
    width: 250px;
    height: 250px;
    background-color: rgba(212, 167, 76, 0.2);
    border: 2px solid var(--color-yellow);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-medium);
}

#seal-base.activated {
    background-color: rgba(212, 167, 76, 0.6);
    box-shadow: 0 0 30px var(--color-yellow);
    animation: glow 2s infinite alternate;
}

.seal-placement-flash {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid;
    animation: flash-expand 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes flash-expand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.seal-activation-wave {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid var(--color-yellow);
    transform: scale(1);
    opacity: 0.8;
    animation: wave-expand 2s ease-out forwards;
    pointer-events: none;
}

@keyframes wave-expand {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

#seal-components {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 2rem;
}

.seal-component {
    width: 120px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0.5rem;
}

.seal-component:hover {
    transform: scale(1.05);
}

.seal-component.used {
    cursor: default;
}

.component-description {
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.8;
}

#rigour-component {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

#opportunity-component {
    border-color: var(--color-purple);
    color: var(--color-purple);
}

#responsibility-component {
    border-color: var(--color-yellow);
    color: var(--color-yellow);
}

.placed-component {
    width: 100px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 2;
}

.placed-rigour {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.placed-opportunity {
    border-color: var(--color-purple);
    color: var(--color-purple);
}

.placed-responsibility {
    border-color: var(--color-yellow);
    color: var(--color-yellow);
}

.instructions-highlight {
    background-color: rgba(212, 167, 76, 0.2);
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid var(--color-yellow);
    margin: 1rem 0;
    font-weight: bold;
}

.help-text {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    font-style: italic;
    opacity: 0.8;
}

/* Pantalla final */
#final-animation {
    width: 300px;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.final-wave {
    position: absolute;
    inset: 0;
    background-color: transparent;
    border: 4px solid var(--color-yellow);
    border-radius: 50%;
    transform: scale(0);
    animation: final-wave 2s ease-out forwards;
}

@keyframes final-wave {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}



/* Estilos para el botón de ayuda */
.help-button {
    position: fixed;
    top: 75px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: rgba(253, 218, 36, 0.8);
    color: #2c2a29;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.help-button:hover {
    background-color: rgba(253, 218, 36, 0.9);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* Estilos para el modal de instrucciones */
.instructions-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    border: 3px solid var(--color-yellow);
    border-radius: 15px;
    padding: 2rem;
    z-index: 2000;
    text-align: left;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.instructions-modal h3 {
    color: var(--color-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.instructions-modal p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.instructions-modal .close-button {
    background-color: var(--color-yellow);
    color: var(--color-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.instructions-modal .close-button:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1999;
}




.final-seal {
    position: absolute;
    inset: 20px;
    background-color: rgba(212, 167, 76, 0.3);
    border: 3px solid var(--color-yellow);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--color-yellow);
    animation: float 3s infinite ease-in-out, glow 2s infinite ease-in-out;
}

.final-symbol {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 24px;
    color: var(--color-yellow);
}

.light-particle {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: particle-float 6s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes particle-float {
    0% {
        transform: translate(-50%, -50%) scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.5) translateY(-50px);
        opacity: 0.5;
    }
}

/* Estilos para animar la reflexión final */
.reflection {
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--color-yellow);
    margin: 1rem 0 2rem;
    animation: fadeIn 1s ease-in-out;
}

.reflection ul {
    text-align: left;
    margin: 1.5rem 0;
}

.reflection li {
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.reflection li:nth-child(1) {
    animation-delay: 0.5s;
}

.reflection li:nth-child(2) {
    animation-delay: 1.5s;
}

.reflection li:nth-child(3) {
    animation-delay: 2.5s;
}

/* Animación para el contenido final */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos para la animación final */
#final-animation {
    width: 300px;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(253, 218, 36, 0.5);
}

@keyframes finalGlow {
    0% { box-shadow: 0 0 20px rgba(253, 218, 36, 0.5); }
    50% { box-shadow: 0 0 50px rgba(253, 218, 36, 0.8); }
    100% { box-shadow: 0 0 20px rgba(253, 218, 36, 0.5); }
}

/* Pantalla de Game Over */
#game-over {
    background-color: rgba(0, 0, 0, 0.8);
}

#game-over h2 {
    color: var(--color-orange);
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(255, 127, 65, 0.5);
}

/* Efectos de la plaga */
.plague-mist {
    position: absolute;
    background-color: var(--color-purple);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.plague-mist.local-effect {
    z-index: 2;
}

/* Elementos de partículas del bosque */
#forest-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.forest-particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    animation: forest-particle-float 20s infinite linear;
    pointer-events: none;
}

@keyframes forest-particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Efectos de restauración del bosque */
.healing-light {
    position: absolute;
    background-color: rgba(212, 255, 200, 0.3);
    border-radius: 50%;
    filter: blur(10px);
    transform: scale(0);
    animation: healing-pulse 5s ease-out forwards;
    pointer-events: none;
    z-index: 5;
}

@keyframes healing-pulse {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Animaciones generales */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    100% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--color-yellow); }
    50% { box-shadow: 0 0 20px var(--color-yellow); }
    100% { box-shadow: 0 0 5px var(--color-yellow); }
}

/* Media Queries */
@media (max-width: 768px) {
    #start-screen h1 {
        font-size: 2.5rem;
    }
    
    #start-screen h2 {
        font-size: 1.5rem;
    }
    
    .story, .team-selection {
        padding: 1.5rem;
    }
    
    #plague-meter-container {
        width: 250px;
    }
    
    #seal-container {
        width: 100%;
        height: auto;
    }
    
    .seal-component {
        width: 90px;
        height: 50px;
        font-size: 0.9rem;
    }
    
    .gameplay-area {
        width: 95%;
    }
    
    #challenge-indicators {
        display: none;
    }

    #game-interface {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    #plague-meter-container,
    #challenge-title-container,
    #timer-container,
    #rigour-progress,
    #opportunity-progress,
    #responsibility-progress {
        margin: 0.25rem;
        min-width: auto;
        font-size: 0.9rem;
    }

    #return-to-world {
        left: 25%;
        top: 4rem;
    }
}

@media (max-width: 480px) {
    .guardian-input {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .guardian-input label {
        text-align: left;
    }
    
    #timer-container, #plague-meter-container {
        position: static;
        margin-bottom: 1rem;
    }
    
    .challenge {
        padding-top: 1rem;
    }
    
    #challenge-title-container {
        position: static;
        transform: none;
        margin-bottom: 1rem;
    }
    
    .challenge-intro, .success-message {
        padding: 1rem;
    }
    
    .player-avatar {
        width: 50px;
        height: 50px;
    }
    
    .symbol {
        width: 60px;
        height: 60px;
    }
}

/* Estilos para la selección de mundos */
.worlds-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.world-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    width: 80%;
    max-width: 600px;
    cursor: pointer;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.world-card:hover {
    transform: translateY(-5px);
}

#pradera {
    border: 2px solid #FF69B4;
}

#sauce {
    border: 2px solid #FFD700;
}

#laguna {
    border: 2px solid #00BFFF;
}

.world-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.world-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.world-difficulty {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

/* Botón Volver a Mundos */
#return-to-world {
    position: fixed;
    top: 1rem;
    left: 20%;
    transform: translateX(-50%);
    z-index: 101;
    pointer-events: auto;
    background-color: var(--color-purple);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

#return-to-world:hover {
    background-color: #8a5eb5;
    transform: translateX(-50%) translateY(-2px);
}

/* Estilos para el cuadro emergente de confirmación */
.confirmation-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 3px solid var(--color-yellow);
    border-radius: 15px;
    padding: 2rem;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    min-width: 300px;
}

.confirmation-dialog h3 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.confirmation-dialog p {
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.confirmation-button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.confirmation-button.accept {
    background-color: var(--color-yellow);
    color: var(--color-primary);
    box-shadow: 0 4px 8px rgba(253, 218, 36, 0.3);
}

.confirmation-button.accept:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
}

.confirmation-button.cancel {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.confirmation-button.cancel:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    backdrop-filter: blur(5px);
}

.modal-button.add-button {
    background-color: var(--color-yellow);
    color: var(--color-primary);
    border: 2px solid var(--color-yellow);
    box-shadow: 0 4px 8px rgba(253, 218, 36, 0.3);
}

.modal-button.add-button:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(253, 218, 36, 0.4);
}

.modal-button.cancel-button {
    background-color: var(--color-yellow);
    color: var(--color-primary);
    border: 2px solid var(--color-yellow);
    box-shadow: 0 4px 8px rgba(253, 218, 36, 0.3);
}

.modal-button.cancel-button:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(253, 218, 36, 0.4);
}

.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.audio-button {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-button:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

.audio-icon {
    font-size: 24px;
}

.audio-button.muted .audio-icon {
    opacity: 0.5;
}

/* Estilos para la selección de avatares */
.avatar-selection {
    margin: 20px 0;
    text-align: center;
}

.avatar-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.avatar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.avatar-option:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.5);
}

.avatar-option.selected {
    border-color: var(--color-tertiary);
    box-shadow: 0 0 20px rgba(183, 82, 102, 0.5);
}

.avatar-option img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.avatar-option span {
    font-size: 1.1em;
    color: var(--color-text);
}

/* Estilos para obstáculos */
.obstacle {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

/* Estilos para nubes */
.cloud {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 50%;
    filter: blur(8px);
    animation: cloudFloat 20s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.cloud.dark {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    filter: blur(10px);
}

.cloud.small {
    width: 120px;
    height: 80px;
    animation-duration: 25s;
}

.cloud.medium {
    width: 180px;
    height: 120px;
    animation-duration: 20s;
}

.cloud.large {
    width: 240px;
    height: 160px;
    animation-duration: 15s;
}

/* Efecto de ralentización del jugador */
.player-avatar.slowed {
    filter: blur(3px) brightness(0.7);
    transition: all 0.3s ease;
    animation: slowPulse 1s infinite ease-in-out;
}

@keyframes slowPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes cloudFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translate(50px, -20px) scale(1.05);
        opacity: 0.9;
    }
    50% {
        transform: translate(0, -40px) scale(1);
        opacity: 1;
    }
    75% {
        transform: translate(-50px, -20px) scale(0.95);
        opacity: 0.9;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
}

.team-input {
    margin: 0.5rem auto;
    max-width: 400px;
    width: 100%;
}

.team-input input {
    width: 100%;
    padding: 0.7rem;
    font-size: 1rem;
    border: 2px solid var(--color-yellow);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    text-align: center;
}

.team-input input:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 10px rgba(0, 195, 137, 0.5);
}