* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

.app-container {
    max-width: 430px;
    margin: 0 auto;
    height: 100vh;
}

.screen {
    background-color: #fff;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Pantalla de inicio */
#home-screen {
    background-color: #0066cc;
    color: white;
    text-align: center;
}

#home-screen h1 {
    margin-top: 60px;
    font-size: 2.2em;
    line-height: 1.2;
    margin-bottom: 40px;
}

.icon-container {
    margin: 40px 0;
}

.hacker-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.password-box {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    width: fit-content;
}

.lock-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.start-btn, .back-btn {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.start-btn:hover, .back-btn:hover {
    background-color: #ff8533;
}

.back-btn {
    background-color: #0066cc;
    margin-top: 10px;
}

.back-btn:hover {
    background-color: #0077e6;
}

/* Menú principal */
#menu-screen {
    background-color: white;
}

#menu-screen h2 {
    color: #0066cc;
    margin-bottom: 40px;
    font-size: 2em;
}

.menu-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.menu-btn {
    background-color: #f0f5ff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1em;
    color: #333;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.menu-btn:hover {
    background-color: #e0ebff;
}

.menu-btn img {
    width: 24px;
    height: 24px;
}

/* Pantalla de categorías */
#categories-screen {
    background-color: #0066cc;
    color: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    margin: 20px 0;
}

.category-card {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.category-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.category-card h3 {
    color: #0066cc;
    margin-bottom: 5px;
}

.category-card p {
    color: #666;
    font-size: 0.9em;
}

/* Pantalla de lecciones */
#lessons-screen {
    background-color: #0066cc;
    color: white;
}

#lessons-screen h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.lesson-card {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
}

.lesson-content {
    text-align: center;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.lesson-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.lesson-card p {
    color: #666;
    margin-bottom: 20px;
}

.lesson-steps {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

.lesson-steps li {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Pantalla de prueba */
#test-screen {
    background-color: #0066cc;
    color: white;
}

#test-screen h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.question-container {
    width: 100%;
}

.question-container h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2em;
    line-height: 1.4;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background-color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 1em;
    color: #333;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.option-btn:hover {
    background-color: #f0f0f0;
}

.option-btn:disabled {
    cursor: not-allowed;
}

/* Sección de progreso */
.progress-section {
    background-color: #f0f5ff;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    width: 100%;
}

.progress-stats {
    color: #333;
    font-size: 0.9em;
}

.category-progress {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.category-progress:last-child {
    border-bottom: none;
}

.category-progress h4 {
    color: #0066cc;
    margin-bottom: 5px;
}

.total-progress {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #0066cc;
}

.total-progress h4 {
    color: #0066cc;
    margin-bottom: 5px;
}

/* Pantalla de progreso */
#progress-screen {
    background-color: #0066cc;
    color: white;
}

.progress-details {
    width: 100%;
    margin-top: 20px;
}

.progress-card {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.progress-card h3 {
    color: #333;
    margin-bottom: 15px;
}

#detailed-progress {
    color: #666;
} 