* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(88, 28, 135, 0.3);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.title {
    color: #c084fc;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
}

/* ===== DESCRIPTION STYLING ===== */
.description {
    color: #e9d5ff;
    font-size: 15px;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.95;
}

.progress-section {
    background: rgba(88, 28, 135, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.progress-icon {
    width: 20px;
    height: 20px;
}

.progress-text {
    color: #d8b4fe;
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
}

.progress-bar-container {
    background: rgba(30, 27, 75, 0.6);
    border-radius: 12px;
    height: 12px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #a855f7 0%, #c084fc 100%);
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}

/* ===== TASK ITEM - CLICKABLE EVERYWHERE ===== */
.task-item {
    background: rgba(30, 27, 75, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.task-item:hover {
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.task-item.completed {
    opacity: 0.7;
    border-color: rgba(34, 197, 94, 0.5);
    cursor: default;
}

.task-item.completed:hover {
    transform: none;
}

.task-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.task-item.completed .task-icon-wrapper {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.task-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.task-content {
    flex: 1;
}

.task-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-description {
    color: #a78bfa;
    font-size: 14px;
}

/* ===== TASK ACTION BUTTON - VISIBLE BUT NOT REQUIRED ===== */
.task-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    pointer-events: none; /* No interfiere con el click del task-item */
}

.task-item:hover .task-action-btn {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.task-item.completed .task-action-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.external-icon {
    width: 20px;
    height: 20px;
    color: white;
}

.unlock-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.unlock-btn:disabled {
    background: rgba(107, 114, 128, 0.5);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.unlock-btn:not(:disabled) {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    color: white;
}

.unlock-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.checkmark {
    color: #22c55e;
    margin-left: 8px;
}

.timer-badge {
    background: rgba(168, 85, 247, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #c084fc;
    font-weight: 600;
}

/* ===== BANNER IMAGE ===== */
.banner-container {
    width: calc(100% + 60px);
    margin: -40px -30px 20px -30px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 250px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .banner-container {
        width: calc(100% + 60px);
        margin: -40px -30px 16px -30px;
        border-radius: 16px 16px 0 0;
    }
    
    .banner-image {
        max-height: 180px;
    }
}

/* ===== UNLOCK BUTTON COMPLETED STATE ===== */
.unlock-btn.completed {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: white !important;
    cursor: pointer !important;
}

.unlock-btn.completed:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

/* Para iconos que usan stroke (líneas) */
.task-icon[stroke] {
    stroke: white;
}

/* Para iconos que usan fill (relleno) */
.task-icon[fill] {
    fill: white;
}